[OpenLayers-Users] drag map with vectorlayers, openlayers 2.12

Christian Ledermann christian.ledermann at gmail.com
Tue Feb 26 22:48:05 PST 2013


Hello,

With openlayers 2.11 I was able to drag a map with vectorlayers on it by

adding the code (snippet):

var kmls = map.getLayersByClass('OpenLayers.Layer.Vector');

  var selectControl = new OpenLayers.Control.SelectFeature(
                kmls,
                {
                    clickout: true,
                    toggle: true,
                    multiple: false,
                    hover: false
                }
            );
        selectControl.handlers.feature.stopDown = false;
        selectControl.handlers.feature.stopDown = false;
        selectControl.handlers.feature.stopUp = false;
        selectControl.handlers.feature.stopClick = false;

        map.addControl(selectControl);
        selectControl.activate();


for (var i=0; i<kmls.length; ++i){
             kmls[i].events.fallThrough = true;
        };


-> http://iwlearn.net/iw-projects/@@project-map-view.html

with openlayers 2.12 this does not work anymore.

How do i get this feature in 2.12?


--
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 702978914

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>


More information about the Users mailing list