On Tuesday, May 5, 2009, djud <d...@bas.ac.uk> wrote: > > Thanks Heidtmare, > > you're suggestion has fixed the problem! I now set the display style before > calling drawfeature : > > feature.style.display = 'none'; > layer.drawFeature(feature); > > This is now correct for all OL's internal redraws. I re-enable the feature's > display setting by: > > feature.style.display = true; > > Not sure this is the correct setting but I think anything other than 'none' > will work.
Indeed. display: "" may be somewhat preferred. Cheers, > > Cheers, > Dave > > > > > > > > > > djud wrote: >> >> Thanks again Heidtmare, >> >> I think you're right, the "display: none" is only getting set for the >> redraw. I'll experiment with making that style setting more permanent. >> >> Cheers >> >> >> >> > > -- > View this message in context: > http://n2.nabble.com/Visibility-of-features-in-vector-layer-tp2792029p2795272.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users