UNPKG

openlayers

Version:

Build tools and sources for developing OpenLayers based mapping applications

22 lines (21 loc) 646 B
--- layout: example.html title: Geolocation shortdesc: Using geolocation to control a map view. docs: > This example uses the Geolocation API to control the view. tags: "geolocation, openstreetmap" --- <div id="map" class="map"></div> <div id="info" style="display: none;"></div> <label for="track"> track position <input id="track" type="checkbox"/> </label> <p> position accuracy : <code id="accuracy"></code>&nbsp;&nbsp; altitude : <code id="altitude"></code>&nbsp;&nbsp; altitude accuracy : <code id="altitudeAccuracy"></code>&nbsp;&nbsp; heading : <code id="heading"></code>&nbsp;&nbsp; speed : <code id="speed"></code> </p>