UNPKG

646 BHTMLView Raw
1---
2layout: example.html
3title: Geolocation
4shortdesc: Using geolocation to control a map view.
5docs: >
6 This example uses the Geolocation API to control the view.
7tags: "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>&nbsp;&nbsp;
17 altitude : <code id="altitude"></code>&nbsp;&nbsp;
18 altitude accuracy : <code id="altitudeAccuracy"></code>&nbsp;&nbsp;
19 heading : <code id="heading"></code>&nbsp;&nbsp;
20 speed : <code id="speed"></code>
21</p>