Oh-map-marker icon and color options


I’m creating a geo map (oh-map-page) of all kind of outdoor devices. Kids phone location, Tesla location, other GPS tracker systems ext. Currently you can only seem to use oh icons which are very limit as they are only internal home oriented. Secondly, when using the default icon there’s no option to change the color.

Are my findings correct? Is there some other way to use other icons/colors?

Thanks in advance,

This post has some links to the underlying libraries that the map uses.

You can see if you look through those that the icon property for the mark accepts any generic url. The oh-mapmarkerhas been wrapped to also accept oh icons, but you should still be able to seticon` to any viable url.

So, if you put the icons you want in html in your conf folder, then you can use the /static/nameOfIconFile url to access it.

1 Like