Adding up next image link
http://google-maps-api.googlegroups.com/web/GarbagePolylineAtNextZoom.JPG?gda=usbcjk8AAAD2QBbUKXEWvOZ2DJrBJujSREvSvfM-wBm2E4H4LleMILv7WOIj5ENaZICijmWjyi4qRyi2O8Uksdqu5gDxI5eLnHMhSp_qzSgvndaTPyHVdA&gsc=JwEQJQsAAACJTJwaHlP-a0_1HOvRfJnv

I missed this in my previoous post. This is the link for image 2.

On Mar 4, 8:57 pm, JimmY <[email protected]> wrote:
> Thanks Andrew for the quick response.....i was busy setting up for the
> reply.
> Unfortunately I can’t provide you the link of my website, since it’s
> under construction at the moment. What I can help you with algorithm
> and images describing my case:
>
> Image :
>
> http://google-maps-api.googlegroups.com/web/GarbagePolylineAppearonDi...
>
> In image Gpolyline1 the blue rectangle is drawn when you click on
> Select from the context menu and the polylines in the blue rectangle
> are the  active ones. The polylines on left and out of the blue
> rectangle are the ones which are  trash. These lines are like garbage
> images which keeping moving across the map but are not gone.
>
> Image :
> Image shows the trace image at next zoom level, shifting its position
> though clearing off the previously selected polyline in image1
>
> Steps considered while drawing polyline are (javascript code): when
> you "select area" from context menu
>
> 3.> function SelectArea()
>         {
>                 map.clearOverlays();
>                 .......
>                 ..........
>                 ............
>                 DrawRectangle() // the blue selected area
>                 ....
>                 .......
>                 // AJax call to DB to fetch
>                 var polylineString = GetCommaSeperatedPolylineCoordinates
> (selectedrectangleboundaries);
>
>                 foreach(polylinedata in polylinestring)
>                 {
>                 var polylineCoords = Parse(polylinedata);  // gets the 
> polyline
> coordinates from lylinedata
>                Foreach(coords in polylinecoords) // collect each
> coordinates into an array
>                 {
>                                 // add to polyline array
>                                 var polylinePoints = new GLatLng
> (polylinecoords.start,polylinecoords.end);
>                                 polyLineArray.push(polylinePoints);
>                         }
>                         //Create new polyline
>                         var polyline = new GPolyline(polyLineArray, "#0000ff",
> DefaultPolyLineWeight, 1);
>                         map.addOverlay(polyline);
>                 }
>         }
>
> The garbage image comes when I click 2 different areas on map too quick
> (almost simultaneously) for a map to plot the polylines in previously
> selected area. As a result the new area gets selected with fresh set
> of polylines and the old area has garbage images.
>
> Hope I m putting my case correctly!
>
> JimmY
>
> On Mar 4, 3:46 pm, Andrew Leach <[email protected]> wrote:
>
> > On Mar 4, 10:05 am, JimmY <[email protected]> wrote:
>
> > > Have any one come across this issue before? A little help here would
> > > be appreciated. Thanks
>
> > There have been instances of problems with overlays meaning that a
> > Javascript error occurs and they're not removed. So the graphics
> > remain on the map -- they might move around, but they are not removed
> > and redrawn on zooming.
>
> > As you say, a little help here would be appreciated. Perhaps you could
> > provide a link and details of how to reproduce the problem? That would
> > enable more concrete guidance to be forthcoming.
>
> > Andrew
--~--~---------~--~----~------------~-------~--~----~
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