I have a map with a "wall-to-wall" vector layer. I want to be able to have
popups but I also want to be able to pan by using the mouse.

Here are links to my attemps, but none of them are very good I think (basic
code produced by the OGR2Layer plugin in QGis):

* Basic one: Select a feature and get a popup by clicking - but you can not
pan by clicking (inside the vector areas) and moving the mouse:
http://byogtrafik.ramboll.dk/SandBox/pan_select/index.html

* So I added the navtoolbar: Get a popup by clicking, click on the hand
symbol and you can pan. But you can't get back to selecting a feature!
http://byogtrafik.ramboll.dk/SandBox/pan_select/index_navtoolbar.html

* Instead of navtoolbar I have modified the Navigation control, so click
will select and CTRK+click will pan, but it takes two hands:
http://byogtrafik.ramboll.dk/SandBox/pan_select/index_CTRL.html

Anybody have a nicer solution?

==========================
OOps: Just realized it doesn't work at all in IE (but as usual fine in
Chrome and Firefox)

Message: 'selectedFeatures' is null or not an object
Line: 1827
Char: 210
Code: 0
URI: http://www.openlayers.org/api/OpenLayers.js

Anybody got a clue on that???
=========================


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Conflict-Select-feature-vs-pan-tp5935040p5935040.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to