1 | ---
|
2 | layout: example.html
|
3 | title: Geolocation
|
4 | shortdesc: Using geolocation to control a map view.
|
5 | docs: >
|
6 | This example uses the Geolocation API to control the view.
|
7 | tags: "geolocation, openstreetmap"
|
8 | ---
|
9 | <div id="map" class="map"></div>
|
10 | <div id="info" style="display: none;"></div>
|
11 | <label for="track">
|
12 | track position
|
13 | <input id="track" type="checkbox"/>
|
14 | </label>
|
15 | <p>
|
16 | position accuracy : <code id="accuracy"></code>
|
17 | altitude : <code id="altitude"></code>
|
18 | altitude accuracy : <code id="altitudeAccuracy"></code>
|
19 | heading : <code id="heading"></code>
|
20 | speed : <code id="speed"></code>
|
21 | </p>
|