[OpenLayers-Users] activate / deactivate events

Stefanie24 carag at gmx.net
Mon Jul 29 11:43:57 PDT 2013


Hello Forum,
since three days i try different ways to get popups activatet from one whole
layer at once.
As i gave up i found a link to this forum full of people knowing how to
handle OpenLayer.
So i hope to get some help here.
My problem:
I have three Maps as Base Layer and five layers above them.
At the moment i can click on one marker and get a popup. If i click
elsewhere the popup disappears.

with some code in the front i do this with every layer with this code:
<code>markerlayer4.events.on({'featureselected':
onFeatureSelect,'featureunselected': onFeatureUnselect});
            selectControl = new
OpenLayers.Control.SelectFeature(markerlayer4);
            map.addControl(selectControl);
            selectControl.activate();</code>

But thats not what i want.
I would love to klick on Text from Layerswitcher (not the checkbox for
visbility) to show / hide ALL Popups from this Layergroup.
Does anybody know how to do this?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/activate-deactivate-events-tp3913790p5069446.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list