sg

Çarşamba, Kasım 23, 2005

Re: Fine Tuning Question


I can't be certain without a link to your map (I can't see a map at
http://cpgnuke.com) but both your marker event and map event are being
triggered when you click on a marker.

What you need to do is to test whether your map click event is returning
overlay or point. If it's returning an overlay, then the "point"
variable is void and you try to create a marker with a void point
marker = new GMarker(point, icon1);

Try this
GEvent.addListener(map, 'click', function(overlay, point) {
if (point) {
icon1.image = "modules/MemGooMap/images/admin.png";
marker = new GMarker(point, icon1);
map.addOverlay(marker);
. . .
}
});

--
The Blackpool Community Church Javascript Team
http://www.econym.demon.co.uk/googlemaps/

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık