Hallo,
this is my code
var bettIcon = new GIcon(G_DEFAULT_ICON);
bettIcon.image = "http://www.altmark-rundkurs.de/pics/bett-dot.png";
bettIcon.iconSize = new GSize(32, 32);
function createMarker(points, bettIcon, gtitle) {
markerOptions = { icon:bettIcon, title:gtitle };
var marker = new GMarker(points, markerOptions);
GEvent.addListener(marker, "click", function()
{marker.openInfoWindowHtml(gtitle);});
return marker;
}
function showGast() {
map.addOverlay(createMarker(new GLatLng(52.8205491, 12.07183),
bettIcon, "Elb-Havel-Pension Havelberg"));
map.addOverlay(createMarker(new GLatLng(52.8306829, 12.06769),
bettIcon, "Bettina Ermer Havelberg"));
map.addOverlay(createMarker(new GLatLng(52.8322501, 12.07701),
bettIcon, "Pension Andre Dürkop Havelberg"));
}
function hideGast() {
map.removeOverlay(createMarker(new GLatLng(52.8205491, 12.07183),
bettIcon, "Elb-Havel-Pension Havelberg"));
map.removeOverlay(createMarker(new GLatLng(52.8306829, 12.06769),
bettIcon, "Bettina Ermer Havelberg"));
map.removeOverlay(createMarker(new GLatLng(52.8322501, 12.07701),
bettIcon, "Pension Andre Dürkop Havelberg"));
}
var TinfoIcon = new GIcon(G_DEFAULT_ICON);
TinfoIcon.image = "http://www.altmark-rundkurs.de/pics/info-dot.png";
TinfoIcon.iconSize = new GSize(32, 32);
function showInfo() {
hideGast();
map.addOverlay(createMarker(new GLatLng(52.5404129, 11.9718648),
TinfoIcon, " Tangermünde"));
map.addOverlay(createMarker(new GLatLng(52.8833882, 11.4927385),
TinfoIcon, " Arendsee"));
}
This is the Link <a href="http://altmark-rundkurs.de/karte.php"
target="new">click</a>
First call Navigation->Gastgeber, you see many Markers.
Then call Navigation->Touristinfo, you see two more Markers ,but the
old are not hide.
It should be working? Where is the problem?
Thanks bernd
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---