shawnshuailin / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Marker Clusterer Plus change icon on hover #284

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** Cluster in Marker Clusterer Plus ***

How can I dynamically change the Icon used for a specific Cluster in Marker 
Clusterer Plus for Google Maps V3?

The markers do not seem to expose any methods at all to modify them. I need to 
do something like this (or equivalent).

    google.maps.event.addListener(markerCluster, "mouseover", function (c) {
      c.setIcon(hoverIcon);
    });
    google.maps.event.addListener(markerCluster, "mouseout", function (c) {
      c.setIcon(normalIcon);
    });

Original issue reported on code.google.com by nwaissbl...@gmail.com on 8 Dec 2013 at 8:24

GoogleCodeExporter commented 8 years ago

Original comment by garylitt...@gmail.com on 9 Dec 2013 at 9:51

GoogleCodeExporter commented 8 years ago
An approach for a patch-solution: 
http://stackoverflow.com/questions/20454582/marker-clusterer-plus-change-icon-on
-hover

Original comment by nwaissbl...@gmail.com on 10 Dec 2013 at 12:45