[OpenLayers-Users] Sort of Feature switcher
Eric Lemoine
eric.c2c at gmail.com
Sat Oct 18 08:31:06 EDT 2008
If you permit: yes I think this is the straight and right way to
change feature visibility. Eric
2008/10/17, Arnd Wippermann <arnd.wippermann at web.de>:
> Hi Pascal,
>
> Interesting problem. I have added some functionality to the last example.
> Perhaps it helps.
>
> I use a stylemap with addUniqueValueRules for the gml layer with a rule for
> attribute visibility.
> If the attribute visibility = "visible" the feature is visible.
> To change the visibility, I change the attribute of the feature to "hidden"
> and redraw the feature.
>
> I'm not sure, if it's the straight way, to change the visibility of
> features.
>
> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/select-feature-with
> -function.html
>
> Arnd Wippermann
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
> Auftrag von darrepac
> Gesendet: Donnerstag, 16. Oktober 2008 20:48
> An: users at openlayers.org
> Betreff: [OpenLayers-Users] Sort of Feature switcher
>
>
> Hello,
>
> Thanks to Arnd, I have implemented a GML layer with some polygons on top of
> an other layer (now WMS). Some polygons are one over an other and sometimes,
> it is simply not possible to select one polygon as it is behind some others.
> For this reason and also to ease the User Experience, I would like to have a
> sort of Feature Switcher:
> Like the current layer switcher but instead of just viewing/uviewing the
> different layer, I would like also to view/unview each feature of my GML
> file.
> So the user would be able to view only some specific polygon features.
>
> Is there some way to do this?
> thanks
> --
> View this message in context:
> http://www.nabble.com/Sort-of-Feature-switcher-tp20016172p20016172.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list