Hello all,
First of all, I need to draw circles around markers. Since there is no
direct circle support in gmaps api I have to use GPolygon and
calculate circle vertices manually. It all works well, except that
other than simply drawing the circles I also need them to be
draggable. I.e. if a marker is dragged the circle has to follow the
marker.
Since there is no such method like GPolygon.offsetBy(lat_offset,
lon_offset) I had to manually implement such method. To implement it I
had two choices. First alternative: to modify vertices using
deleteVertex and insertVertex. Doing so makes moving my polygon
exceptionally slow, basically it doesn't work. Other alternative is to
removeOverlay, create another one at another place and add the new
overlay! That's the only thing that seem to work. But still moving the
marker around with a circle attached to it makes browser hog the cpu.
On IE it's even worse than on firefox.
all in all, I'm really thinking that I'm done playing with GPolygon
and want to completely abandon it and try to mash up my own stuff
based on svg (similar to this page: http://swa.ethz.ch/googlemaps/  !
firefox only!)

So... did I miss anything? Maybe someone from gmap developers can
suggest me what cryptic internal function (like Fu(...) or cK(...)) I
need to use to move a GPolygon. I'm sure that something like that
shouldn't be difficult.

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

Reply via email to