I used setImage like this -

      GEvent.addListener(marker, 'mouseover', function() {
                  var fdim = parseFloat(daysinmarket);
                  if (fdim >= 1 && fdim <= 7)
                        micon = "http://www.bank-owned-bargains.com/images/
redhouseiconmover.png";
                  else if (fdim >= 8 && fdim <= 59)
                        micon = "http://www.bank-owned-bargains.com/images/
bluehouseiconmover.png";
                  else if (fdim >= 60)
                        micon = "http://www.bank-owned-bargains.com/images/
greenhouseiconmover.png";

                  marker.setImage(micon);
      });


It worked fine. But in a clustering scenario...I am generating cluster
icons through a php page like this -

                var icon = new GIcon();
                icon.image = "icon.php?n=" + cluster.markerCount;
                marker = new GMarker( location, { icon: icon } );

I want to show a different icon in Mouseover event -

                GEvent.addListener( marker, 'mouseover', 
marker.setImage("iconmo.php?
n=" + cluster.markerCount));
                GEvent.addListener( marker, 'mouseout', 
marker.setImage("icon.php?
n=" + cluster.markerCount));

The icon.php page generates a gif image. But the code is not working.

Any ideas?

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to