Change the Google Map Cluster Icon in Divi Machine Multi-Pin Maps

Easy

CSS

Machine

Details

Google Map Clusters are a great feature in Google Maps which can enrich your Divi Machine Maps with multiple pins in a cluster. This snippet shows you how to change the look of your Google Map Clustered Pins in Divi Machine. We use a combination of images and CSS filters to customize the look, so dig in below for more details on how to use this Divi Snippet.

CSS for various filters can be found here: https://developer.mozilla.org/en-US/docs/Web/CSS/filter#syntax

Snippets Demo

Code

1

Description:
This code will change the image. Change the example image URL in the code with one that you have uploaded in your media library.

Language: CSS

Where to add: Divi Theme Options

                        .et_pb_map div[style*="background-image"][style*="markerClusterer/m"][style*=".png"] {
    background-image: url(https://picsum.photos/56) !important;
}
                    
2

Description:
This CSS will keep the same icon but will change the hue of it.

Language: CSS

Where to add: Divi Theme Options

                        .et_pb_map div[style*="background-image"][style*="markerClusterer/m"][style*=".png"] {
    filter: hue-rotate(73deg);
}
                    
3

Description:
You can combine multiple filters like this.

Language: CSS

Where to add: Divi Theme Options

                        .et_pb_map div[style*="background-image"][style*="markerClusterer/m"][style*=".png"] {
    filter: hue-rotate(73deg) grayscale(5%) contrast(10) saturate(.8);
}
                    
4

Description:
This CSS lets you change the color of the number to white. Change "white" to any hexadecimal or accept CSS colors.

Language: CSS

Where to add: Divi Theme Options

                        .et_pb_map div[style*="background-image"][style*="markerClusterer/m"][style*=".png"] {
    color: white !important;
}
                    
5

Description:
You can combine the filters and text color in a single CSS block.

Language: CSS

Where to add: Divi Theme Options

                        .et_pb_map div[style*="background-image"][style*="markerClusterer/m"][style*=".png"] {
   filter: hue-rotate(73deg) grayscale(5%) contrast(10) saturate(.8);
    color: white !important;
}
                    

Related Snippets

Explore more from Divi Engine