Hi dear,
I use for my website PdMarker and I have a problem with the
GEvent.addListener function. I have in my map on my site different
countries of Europe and these must by on click redirect to the page,
but I don't know how I duplicate the function.
I hope so that you would like help with my problem.
Example my code:
---------------------------------------------------------------------------------
marker = new PdMarker(new GLatLng(52,5));
marker.setTooltip("Nederland (<?=$aantal?>)");
GEvent.addListener(map, "click", function() {
document.location="netherlands";
});
map.addOverlay(marker);
---------------------------------------------------------------------------------
And I have a mysql while loop with this code:
---------------------------------------------------------------------------------
marker = new PdMarker(new GLatLng('.$maps['latitude'].','.$maps
['longitude'].'));
marker.setTooltip("'.$maps['language'].' ('.$maps['counter'].')");
map.addOverlay(marker);
---------------------------------------------------------------------------------
If the visitor of the website click on the marker, than goes the
visitor always to page netherlands. But I would like that if the
vistor click on France that the visor goes to page france.
But I don't know how, help me please.
Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---