Files
openlayers/examples/geolocation.html
2015-11-18 09:56:15 -07:00

22 lines
646 B
HTML

---
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>