Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HEREMap.prototype.updateMyPosition = function(event) {
this.position = {
lat: event.coords.latitude,
lng: event.coords.longitude
// Remove old location marker if it exists
this.updateMarker('myLocation', this.position)
// Draw the route from current location to HERE HQ if not yet drawn
this.drawRoute(this.position, HEREHQcoordinates);;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.