Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created September 22, 2016 10:15
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/35a2bfad59a9392808ce181dcc2eb888 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/35a2bfad59a9392808ce181dcc2eb888 to your computer and use it in GitHub Desktop.
var iconUrl = ‘./images/marker-gelato.svg’;
var iconOptions = {
// The icon's size in pixel:
size: new H.math.Size(26, 34),
// The anchorage point in pixel,
// defaults to bottom-center
anchor: new H.math.Point(14, 34)
};
var markerOptions = {
icon: new H.map.Icon(iconUrl, iconOptions)
};
var marker = new H.map.Marker(coordinates, markerOptions);
map.addObject(marker);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment