Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created November 7, 2016 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save here-devblog-gists/62662752b29d82f390778ec17cc9b01c to your computer and use it in GitHub Desktop.
Save here-devblog-gists/62662752b29d82f390778ec17cc9b01c to your computer and use it in GitHub Desktop.
HEREMap.prototype.updateMarker = function(markerName, coordinates) {
if (this.markers[markerName]) {
this.removeMarker(this.markers[markerName]);
}
this.markers[markerName] = this.addMarker(coordinates, markerName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment