On Jan 6, 12:11 am, Darko1984 <[email protected]> wrote:
> No,it doesn't work :-(
> This is the my map page 
> http://meteocecchina.altervista.org/script/gmapdbv2.php

There's no map listener in that page, so I can't see where you were
adding it.

However, the issue is this:

  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map"));

which should be

  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));

To get that to work, you need to declare "map" as a global variable,
probably here:

  var gmarkers = [];
  var map;

That will mean that the reference to your map persists after the
function load() has completed, and you can add and trigger listeners
on it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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