Re: [OpenLayers-Users] Query Tool?

2008-12-24 Thread jvanulde
Thanks Bart! That worked perfectly! In case anyone else is interested, below is a solution (code) for adding a horizontal (or vertical toolbar) that includes navigation history, query, pan, zoom, and zoom-to-extent controls: --- Here are the CSS classes needed:

Re: [OpenLayers-Users] Query Tool?

2008-12-24 Thread jvanulde
Thanks Bart! That worked perfectly! In case anyone else is interested, below is a solution (code) for adding a horizontal (or vertical toolbar) that includes navigation history, query, pan, zoom, and zoom-to-extent controls: --- Here are the CSS classes needed:

Re: [OpenLayers-Users] Query Tool?

2008-12-24 Thread jvanulde
Thanks Bart! That worked perfectly! In case anyone else is interested, below is a solution (code) for adding a horizontal (or vertical toolbar) that includes navigation history, query, pan, zoom, and zoom-to-extent controls: --- Here are the CSS classes needed:

[OpenLayers-Users] Query Tool?

2008-12-23 Thread Semantica
Hi all, Does anyone have an example of adding a query button to a control panel? I want to add a button that when clicked toggles query mode (e.g. maps single-click event to a function that will do a getFeatureInfo). Clicking again will deactivate query mode. I have the getFeatureInfo working

Re: [OpenLayers-Users] Query Tool?

2008-12-23 Thread Bart van den Eijnden (OSGIS)
Hi, maybe the following sandbox is informative: http://dev.openlayers.org/sandbox/bartvde/wmsgetfeatureinfo/openlayers/examples/featureinfo-control.html the proxy is not setup correctly in the sandbox so it won't actually work, but if you run it locally with a local proxy.cgi script it should

Re: [OpenLayers-Users] Query Tool?

2008-12-23 Thread Semantica
Hi Bart thanks for the link. It did help me with another issue but I still can't seem to figure out how to add events to my query button: var featureInfo = new OpenLayers.Control({ displayClass: olControlFeatureInfo }); I simply want to register an

Re: [OpenLayers-Users] Query Tool?

2008-12-23 Thread Semantica
Hi Bart, So I am about 80 percent there now: http://dev.openlayers.org/sandbox/jvanulden/openlayers/examples/extended-layerswitcher.html The only thing to so now is disable the drag handler on the map when the user selects the query tool. Any idea on how I can achieve this??? bartvde wrote:

Re: [OpenLayers-Users] Query Tool?

2008-12-23 Thread bartvde
Hi Joost, is this not because your map also has the default Navigation Control? Since you have separate buttons for pan/zoom etc. I think you should not use the Navigation Control. So instead instantiate your map with an empty controls array: var mapOptions = {controls: []}; Then you also