MapTools.org

[Chameleon] mouse events, active tool

Bart van den Eijnden bartvde@xs4all.nl
Mon, 12 Jan 2004 00:34:21 +0100
Hi list,

I want to address 2 issues in this e-mail, which are slightly related.

First of all I have noticed that the navigational tools work with all 
mouse buttons, i.e. also when pressing the right mouse button the map 
zooms in etc. This complicates things when a user wants to save the map 
image using the "save image as" browser functionality. Chameleon will act 
on the active navigational command, instead of presenting the browser 
popup menu. Also there is no way to clear the active navigational tool as 
far as I have noticed. You can change it by clicking on another 
navigational tool, but not "clear" it.

Secondly, a previously noted issue came to my mind, the problem when a 
user selects an item from the locations picklist (quickview), that 
Chameleon also processes according to the current/active navigational 
command. E.g. if the Query tool is the active tool, you also get the Query 
results presented when selecting a location to zoom to. BTW I don't know 
for sure if the Query tool also works through the NAV_CMD variable.

In my opinion, some of this behaviour could be corrected by:

a) do not let navigational tools work on a right mouse button press
b) when selecting/using another widget, put the NAV_CMD to an empty 
string, so that there is no active navigational tool on the map. E.g. on 
the OnEnter event of the select box of the quickview, set NAV_CMD to an 
empty string.

Any thoughts on this?

Best regards,
Bart


This archive was generated by Pipermail.