[OpenLayers-Trac] [OpenLayers] #3452: Panning doesn't redraw map vectors (linestrings) in Firefox

OpenLayers trac-20090302 at openlayers.org
Sun Aug 7 06:08:45 EDT 2011

#3452: Panning doesn't redraw map vectors (linestrings) in Firefox
 Reporter:  imanfafa      |       Owner:  crschmidt       
     Type:  bug           |      Status:  new             
 Priority:  critical      |   Milestone:  2.11 Release    
Component:  Layer.Vector  |     Version:  2.10            
 Keywords:                |       State:  Needs Discussion
 I want to dynamically draw a path as a lineString vector, but when I pan
 the map by mouse dragging to see the path outside the current view of the
 map, it doesn't redraw the vector and other pieces of the line which has
 not been viewed in the last ZoomChanged event has shown cleared. If I pan
 the map with PanZoomBar, the missing part of the line is being draw and
 everything is fine.

 I have encountered this problem just in Firefox, though IE is fine for
 this and doesn't have this bug.

 This is my code:[[BR]]

 polylines = new OpenLayers.Layer.Vector('Routes');

 var style_line = { strokeColor: '#0000FF', strokeOpacity: 0.5,
 strokeWidth: 4};
 for (i=0; i<result.Polylines.length; i++)
    var polypoints = new Array();
    for (j=0; j<result.Polylines[i].Points.length; j++)
    { polypoints.push(GetWGSPoint(result.Polylines[i].Points[j].Longitude,

    var line = new OpenLayers.Geometry.LineString(polypoints);
    var lineFeature = new OpenLayers.Feature.Vector(line, null,


Ticket URL: <http://trac.openlayers.org/ticket/3452>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer

More information about the Trac mailing list