Mekrer clustering – color of markers

New home Forums Gold Add-on General queries Mekrer clustering – color of markers

This topic contains 3 replies, has 2 voices, and was last updated by  SupportTeam 3 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21042

    trevi
    Member

    I enable marker clustering and appears markers clustering in different colors. I think it is not correct, should be one the color of the marker for the category? I have 9 categories and for each category assigned a different icon (logo)

    #21045

    SupportTeam
    Moderator

    Hi there

    The marker icons can be adjusted according to a category, however the clustering icons default to different colors based on the number of markers they are clustering at the time.

    Should you wish to change the cluster images, this would require changes in the plugin’s code – would you be comfortable in doing that?

    #21100

    trevi
    Member

    yes, can I get instructions?

    #21110

    SupportTeam
    Moderator

    Hi there

    The cluster images can be changed by going to wp-google-maps-pro/js/core.js and scrolling down to approximately line 1587 where you’ll find a block of code similar to the below example:

    var mcOptions = {
        gridSize: 20,
        maxZoom: 15,
        styles: [{
            height: 53,
            url: "//ccplugins.co/markerclusterer/images/m1.png",
            width: 53
        },
        {
            height: 56,
            url: "//ccplugins.co/markerclusterer/images/m2.png",
            width: 56
        },
        {
            height: 66,
            url: "//ccplugins.co/markerclusterer/images/m3.png",
            width: 66
        },
        {
            height: 78,
            url: "//ccplugins.co/markerclusterer/images/m4.png",
            width: 78
        },
        {
            height: 90,
            url: "//ccplugins.co/markerclusterer/images/m5.png",
            width: 90
        }] 
    };

    You can change the URLs in this object to the preferred image URLs.

    I hope this helps.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.