3 <html lang="en" class="no-js">
7 <title>measureLabels | geomap</title>
8 <meta name="description" content="geomap measureLabels 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="measureLabels" data-role="page">
20 <div data-role="header" data-theme="f">
21 <h1>measureLabels</h1>
24 <div data-role="content">
33 length: "{{=length}} m",
34 area: "{{=area}} sq m"
39 <td><code><pre>$( <i>selector</i> ).geomap( { measureLabels: { length: "{{=length}} meters" } } );</pre></code></td>
43 <td><code><pre>var measureLabels = $( <i>selector</i> ).geomap( "option", "measureLabels" );</pre></code></td>
47 <td><code><pre>$( <i>selector</i> ).geomap( "option", "measureLabels", { area: "{{=area}} square meters" } );</pre></code></td>
50 <p>The measureLabels option controls how the length or area text is formatted when displayed on the map during measuring.</p>
51 <p>In the label strings, the {{= }} syntax is used as a placeholder for the current length or area. All other text is displayed verbatim.</p>
52 <p>The developer may change each measureLabels property separately during both initialization of the widget or any time after.</p>
54 </div> <!-- end of #container -->
56 <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
57 <script src="http://code.jquerygeo.com/jquery.geo-1.0a4.min.js"></script>
58 <script src="../js/script.js"></script>
59 <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>