I can't find any documentation or examples for setting a markers colour in version 3.0 API. you could do this with the 2.5, do any one know if marker colour is supported anymore
function addMarkersToMap(map) {
var parisMarker = new H.map.Marker({ lat: 55.560789, lng: 12.981141 });
map.addObject(parisMarker);
}
Just in case if any one needed deafult marker icon in svg with text inside it.
As stated in the example in the API Explorer, creating an
H.map.Marker
without specifying anicon
results in a default image. If you need to have different colored icons, you will need to create them using SVG Graphics.To update the color, just create a new
H.map.Icon
replace theicon
attribute of the marker.