2.0_beta sync to rsa
[framework/web/web-ui-fw.git] / libs / js / jquery-geo-1.0a4 / docs / geomap / measureLabels.html
1 <!doctype html>  
2
3 <html lang="en" class="no-js">
4 <head>
5   <meta charset="utf-8">
6
7   <title>measureLabels | geomap</title>
8   <meta name="description" content="geomap measureLabels option">
9   <meta name="author" content="Ryan Westphal">
10
11   <meta name="viewport" content="width=device-width, initial-scale=1.0">
12
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" />
15 </head>
16
17 <body>
18
19   <div id="measureLabels" data-role="page">
20     <div data-role="header" data-theme="f">
21       <h1>measureLabels</h1>
22     </div>
23     
24     <div data-role="content">
25       <table>
26         <tr>
27           <th>type</th>
28           <td>Object</td>
29         </tr>
30         <tr>
31           <th>default</th>
32           <td><pre><code>{
33   length: &quot;{{=length}} m&quot;,
34   area: &quot;{{=area}} sq m&quot;
35 }</code></pre></td>
36         </tr>
37         <tr>
38           <th>init</th>
39           <td><code><pre>$( <i>selector</i> ).geomap( { measureLabels: { length: &quot;{{=length}} meters&quot; } } );</pre></code></td>
40         </tr>
41         <tr>
42           <th>get</th>
43           <td><code><pre>var measureLabels = $( <i>selector</i> ).geomap( &quot;option&quot;, &quot;measureLabels&quot; );</pre></code></td>
44         </tr>
45         <tr>
46           <th>set</th>
47           <td><code><pre>$( <i>selector</i> ).geomap( &quot;option&quot;, &quot;measureLabels&quot;, { area: &quot;{{=area}} square meters&quot; } );</pre></code></td>
48         </tr>
49       </table>
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>
53     </div>
54   </div> <!-- end of #container -->
55
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>
60 </body>
61 </html>
62