I am using a gscreenoverlay to display a notification to the user (a
graphic that appears when appropriate).
However, when the map is resized, the graphic needs to be moved to
keep it nicely laid out. There doesn't appear to be a method for
moving the gscreenoverlay, so at the moment I am trying to do this by
removing the overlay from the map, then re-assigning the variable used
to a new goverlay with a new position, then adding it back to the map.
e.g.
map.removeOverlay(prompt);
prompt = new GScreenOverlay("/images/prompts/
myprompt.png",promptScreenXY,promptOverlayXY,promptSize);
map.addOverlay(prompt);
This has the right effect, but I get a bunch of script errors from the
API (notification varies depending on the browser).
Can anyone advise me if there is a better method, or if this is a bug
that will be fixed?
Thanks,
Will
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---