[OutSystems Maps] Cluster Icon change
outsystems-maps
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive

Using the clustering options on the map, there is no ability to define the clustering icon. It changes colours depending on the number of items in the cluster.
Blue = single digit

Yellow = Double digit

Red = triple digit


Is there a way to change the icon and/or the colour of the current icon?

Solution

Hi @André Pinho,

You can customise the cluster icon with css, currently these are just css vars that customize a background.

So you can overide these vars like: 

.custom-clustericon{

--cluster-default-image-1:url('data:image/png;base64,....');
--cluster-default-image-2:url('data:image/png;base64,....');
--cluster-default-image-3:url('data:image/png;base64,....');

}

Let me know if this helps you,

Best Regards,
João Ferreira


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.