sg

Perşembe, Kasım 24, 2005

Re: Fine Tuning Question


You'd need to capture the information about when the perform such a
removeOverlay().

You need to set a global variable to hold a reference to the unconfirmed
marker.
var unconfirmed_marker = false;

. . .

marker = new GMarker(point, icon1);
map.addOverlay(marker);
unconfirmed_marker = marker;

Then set up an event listener on infowindowclose to remove the
unconfirmed marker
GEvent.addListener(map, "infowindowclose", function () {
if (unconfirmed_marker) {
map.removeOverlay(unconfirmed_marker);
}
});

But then you also need to spot when the user does submit the contents
and the marker does become confirmed. I'm not sure if a <form> can
perform the
action='MemGooMap/oper=UpdateMember.html'
and simultaneously have an onclick on the submit button
onclick="confirmMarker()"
with
function confirmMarker() {
unconfirmed_marker = false;
}

--
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