[OpenLayers-Users] Visibility of features in vector layer
djud
djud at bas.ac.uk
Tue May 5 09:52:52 EDT 2009
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.
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.
More information about the Users
mailing list