Bug 412 - [Chameleon] Clicking on Keymap changes scale of extent
: [Chameleon] Clicking on Keymap changes scale of extent
Status: CLOSED INVALID
: Chameleon
Core
: 1.99
: PC Windows 98
: P3 normal
: 1.99 beta 3
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-05-26 12:59 by
Modified: 2004-10-28 10:25 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-05-26 12:59:21
This occurs in the Enhance widget sample:

http://localhost/chameleon/samples/sample_enhanced.phtml

but not in the Base widget samples.

Do the following: 

1. Open the Enhanced widget sample. 
2. Select Zoom In tool
3. Select an area on the main map about the size of SW-Ontario. (Note Ground 
Scale changes from ~42,000,000 to ~3,300,000.)
4. On Keymap, click near middle of Alberta/Sask border. (Note that scale is now 
~21,000,000.)

Why did the scale change?
------- Comment #1 From 2004-07-08 11:21:45 -------
Changed target to 1.99 Beta 3.
------- Comment #2 From 2004-08-10 15:36:49 -------
Changing Version to 1.99 (2.0 not being worked on yet).
------- Comment #3 From 2004-10-07 15:16:34 -------
Darren, the enhanced sample uses the KeyMapDHTML widget, by default the mode of
this widget is zoom.  If you simply click on the keymap, it will recenter AND
zoom in by a factor (default is two).  If you want this to work the way you
think it should, switch the keymap mode to recenter :)
------- Comment #4 From 2004-10-25 08:42:50 -------
Oh, OK. Thanks for the info. I'm not 100% sure I like that as the default 
behaviour, but that;s a design issue for another day. Marking as VERIFIED.
------- Comment #5 From 2004-10-25 13:56:00 -------
I am on both Darren and Paul side regarding how the DHTMLKeymap was designed.

I can see from darrens point of view how a keymap should allow recentering as
the default, because this is how the simple keymap widget works.

At the same time I understand why Paul set the default to the zoomin button:
* there is no point recentering a full extent map.
* that the intention of this keymap is to allow a "mini" duplication of the main
map view. 
* Since the main map view navtools are defaulted to use the zoomin tool. 

Maybe to solve this is to have a new default navigation function parameter
option (choose between recenter and zoomin). Darren I will let you decide
weather this is justifiable to have a new enhancement bug.

Once this is decided than we can close this bug.




Verified on Windows: that this is how the DHTMLKey works.
------- Comment #6 From 2004-10-27 08:57:23 -------
the ability to choose the default navigation mode already exists.  There are two
instances of the KeyMapDHTMLMode widget used, they are part of a toolset and you
can set one or the other as the default.  If you don't like the zoomin tool
being the default one, you can change it in the template.  But that is an
application design and documentation/user help issue, not a bug or enhancement.
------- Comment #7 From 2004-10-28 10:25:04 -------
Verified on Fedora Core 2.  Not a bug.