[OpenLayers-Users] how to show vector features in OpenLayers afterhiding it?
Arnd Wippermann
arnd.wippermann at web.de
Sat Sep 29 08:41:03 PDT 2012
Try features[i].style.display = 'none' or '';
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Shadin
Gesendet: Samstag, 29. September 2012 12:40
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] how to show vector features in OpenLayers
afterhiding it?
I did change some features style (through check-boxes) using style property
:
*var features = layer.features;
for( var i = 0; i < features.length; i++ ) {
//features[i].style = { visibility: 'hidden' };
features[i].style = 'none';
}*
layer.redraw();
Now if I check the box again, it supposed to display again but nothing
happens! I tried:
* features[i].style = 'block';
OR
features[i].style = 'delete'; *
then redraw the layer.. but this doesn't work
Any Idea ?
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/how-to-show-vector-features-in-OpenLayer
s-after-hiding-it-tp5005307.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list