Re: how to change polyline points on the fly?
I'm getting the memory hogging when the map is zoomed in and panned.
I have this in a function called by a mouseover addListener:
map.addOverlay(new GPolyline(points, linecolor, linewid, 1));
funny, but the memory doesn't pile up on mousovers, just on zoom/pan.
can it be that bogus mouseovers are sent when zoom/panning?
BTW, I tried stuffing points into a global polyline, unsuccesfully
(crash):
var aPolyline = new GPolyline();//global scope
...
aPolyline.points[0] = office.m_longit * 100000.0; //CRASH
aPolyline.points[1] = office.m_latit * 100000.0;
is this bogus?
don't you need to keep a global polyline around in order to do the
removeOverlay?
thanx...Ben
0 Comments:
Yorum Gönder
<< Home