Created
October 7, 2016 10:07
-
-
Save here-devblog-gists/8da303c7d9fe3323268879140c9394e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updatePosition (event) { | |
var HEREHQcoordinates = { | |
lat: event.coords.latitude, | |
lng: event.coords.longitude | |
}; | |
var marker = new H.map.Marker(HEREHQcoordinates); | |
map.addObject(marker); | |
map.setCenter(HEREHQcoordinates); | |
} | |
navigator.geolocation.watchPosition(updatePosition); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment