[OpenLayers-Users] features vanish on zoom
christopher.schmidt at nokia.com
christopher.schmidt at nokia.com
Fri Jul 23 14:34:00 EDT 2010
On Jul 23, 2010, at 2:27 PM, ext ulao wrote:
>
> I do something like:
>
> var obj = new OpenLayers.Geometry.LineString(points);
> var polygonFeature = new OpenLayers.Feature.Vector( obj );
>
> It shows up find but goes away on zoom and does not come back, even on the
> same zoom level. Do You have to redraw them?
You didn't share enough code to know, but my guess is that you call
drawFeature, rather than addFeatures(). addFeatures adds it to the
layer + tracks it going forward; drawFeature just draws it once.
-- Chris
More information about the Users
mailing list