*Well , it's really not a clustered makers cause I just need to keep an eye
when a marker is overlapping at the same point.*



I think It's something like this
**

*function createMarker(point,name,html) {
      comentarios[i]=html;
       for (var x = 1; x<i; x++) {
             if (gmarkers[x].getPoint().x==point.x &&
gmarkers[x].getPoint().y==point.y && x != i) {
                               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);
                              html=comentarios[x]+ " <br> "+ html;
            }
      }
var marker = new GMarker(point,icono);
GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });

           gmarkers[i] = marker;
            gmarkers[i].label = name;
           map.addOverlay(marker,icono);
        }

*

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 at the same point.



If I have a marker with a description "Hello 1" and new one comes overlapped
with description "Hello 3" the final new description is :


*Hello 1*
*Hello 3*

That works for me , but I have a big problem cause I tried to change
the icon to notice to everybody 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 the new one ,
I mean it appears "Hello 1" instead of "Hello 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to