You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to create an application to show a different icon for each location, or change the color of the icon depending on location conditions, is that possible?
I looked at thisdrawPoints - markerImageElement example but it looks that the same icon will be applied to all icons on the map.
Is there a sample code available?
The text was updated successfully, but these errors were encountered:
narutaro
changed the title
Marker image or color for each place
Change marker icons or colors for different locations
Apr 16, 2023
The drawPoints functionality only accepts an array of coordinate data of markers and options to configure marker elements, but as of now, there is no way to set icons/colors to each marker/location.
You could try creating a custom marker with specific icons/colors using maplibregl marker and add it to a map.
I like to create an application to show a different icon for each location, or change the color of the icon depending on location conditions, is that possible?
I looked at this
drawPoints
-markerImageElement
example but it looks that the same icon will be applied to all icons on the map.Is there a sample code available?
The text was updated successfully, but these errors were encountered: