[Users] How to force the zoom action to execute just once?
Robert Buckley
robertdbuckley at yahoo.com
Tue Mar 20 15:17:27 CET 2012
Hi
I have a toolbar in my panpanel which contains the usual actions......zoom in / zoom out / Pan / measure etc. I also have a tree with the radionode plugin to alllow the user to
pick which layers should be queried.
My problem is the following...When one of the actions in the toolbar is currectly active (depressed: true) then the wmsGetFeatureInfo will not be activated.
I am trying to find a user friendly way of enabling the wmsGetFeatureInfo tool. My thought was that I should allow the actions to be depressed for exactly one event...ie that after the map has been zoomed once, the tool is then reset to "depressed:false".In that way, the user cannot forget that the tool is still activated and will be able to use the wmsGetFeatureInfo tool which is always activated when the treenode is activated.
So to cut a long story short, I am looking for a way to set the zoomcontrol action in my tool bar to depressed:false after the user has zoomed once, but the action does not have an afterzoom listener....and my javascript is not good enough to create one....
Is anyone able to help me with this after-event, or suggest a better way for the user to be able to use the WMSGetFeatureInfo tool with the toolbar?
yours,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120320/5c999997/attachment.htm
More information about the Users
mailing list