*Well , it's really not a clustered makers cause I just need to controlate when a marker is overlapping at the same point.*
On Tue, Jan 6, 2009 at 7:51 PM, Xavi <[email protected]> wrote: > > I think I get something like that. > > function createMarker(point,name,html) { > for (var x = 1; x<i; x++) { > if (gmarkers[x].getPoint().x==point.x && gmarkers[x].getPoint > ().y==point.y && x != i) { > html=html+"1"; > } > } > var marker = new GMarker(point); > GEvent.addListener(marker, "click", function() { > marker.openInfoWindowHtml(html); > }); > > gmarkers[i] = marker; > gmarkers[i].label = name; > map.addOverlay(marker); > > } > > I detect when a new marker is overlapped then I'll get its html > description and I will add to the new overlapped marker, so I get a > marker overlapped. > > If I have a marker with a description "3" and new one comes overlapped > with description "1" the final new description is "31". > > That works for me , but I have a big problem cause I tried to change > the icon to inform about the overlapped marker and I don't get to show > properly the infowindow. > > I used this code: > > var icono = new GIcon(); > icono.image = "blue-dot.png"; > icono.iconSize = new GSize(35, 34); > icono.iconAnchor = new GPoint(10, 34); > icono.infoWindowAnchor = new GPoint(16, 4); > icono.infoShadowAnchor = new GPoint(16, 4); > > But unfortunately for me it doesn't work cause it appears the > infowindow under , I mean it appears "1" not "3" , but if I remove the > icon code all works fine. > > Any suggestion ? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
