How to display different custom images on endpoints of cluster in Mapbox

183 Views Asked by At

Like the image below I want to display different custom images on the endpoints of cluster in Mapbox. Is there someone who can help because it is really confusing and I don't know if it even is possible?

Example image

I've looked everywhere but can't find an example of explanation.

1

There are 1 best solutions below

1
luis.mazoni On

this seem to explain how to do it with Mapbox:

https://docs.mapbox.com/mapbox-gl-js/example/custom-marker-icons/

Additionally not sure if you're married to Mapbox, but Google seem to have a more robust offering on the customization side of Markers:

https://developers.google.com/maps/documentation/javascript/markers#simple_icons