Created
September 22, 2016 10:15
-
-
Save here-devblog-gists/35a2bfad59a9392808ce181dcc2eb888 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
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