3 <html lang="en" class="no-js">
7 <title>drawStyle | geomap</title>
8 <meta name="description" content="geomap drawStyle option">
9 <meta name="author" content="Ryan Westphal">
11 <meta name="viewport" content="width=device-width, initial-scale=1.0">
13 <link rel="stylesheet" href="../css/style.css?v=2">
14 <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
19 <div id="drawStyle" data-role="page">
20 <div data-role="header" data-theme="f">
24 <div data-role="content">
28 <td>Object ( geomap style )</td>
33 borderRadius: "8px",
34 color: "#7f0000",
36 height: "8px",
39 strokeWidth: "2px",
40 visibility: "visible",
41 width: "8px"
47 <td><pre><code>$( <i>map selector</i> ).geomap( { drawStyle: { color: "green" } } );</code></pre></td>
51 <td><pre><code>var drawStyle = $( <i>map selector</i> ).geomap( "option", "drawStyle" );</code></pre></td>
55 <td><pre><code>$( <i>map selector</i> ).geomap( "option", "drawStyle", { strokeWidth: "4px" } );</code></pre></td>
58 <p>The drawStyle option retrieves or updates the style of incomplete lines and polygons <b>as they are being drawn</b>. This differs from the shapeStyle option which updates the style of shapes that you've appended to the map.</p>
59 <p>This option affects both the draw modes (drawPoint, drawLineString, and drawPolygon) and the measure modes (measureLength, and measureArea).</p>
60 <p>This option changes specific properties of the internal style object. If you init or set an incomplete style object, only the style properties you reference are updated.</p>
61 <p>Please see the style section at the bottom of the <a href="#" onclick="javascript:window.history.back();">geomap widget</a> page for more information about the style object.</p>
63 </div> <!-- end of #container -->
65 <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
66 <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
67 <script src="../js/script.js"></script>
68 <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>