[ka-Map-users] auto query

Pete Giencke pgiencke at glc.org
Tue Jan 10 16:15:17 EST 2006


Paul et al.,

Those key mapping look real good. Jumping the gun a little (lot) bit, here
are some suggestions for contextual right-click menu items, if ever we reach
that stage:

Back (previous view/extent)
Forward (see above)
Turn on/off [all] layers
Download Layer(s)
Print View/Layers (did I get this into the cvs?)
Link to View/Layers (see above)
Add [OGC] layer (wmslayer.js)

-pete

-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Paul Spencer
Sent: Tuesday, January 10, 2006 3:51 PM
To: Josh Livni
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] auto query

proceeding down the key-modifier path, it is possible to detect shift/
ctrl/alt keys when the mouse events happen, so a possibility is to detect
ctrl-click or ctrl-drag as query mode making it reasonably seamless

On the same note, we could use shift-drag as a zoom box and right click as
zoom out.

What about:

                       |   none    |   shift   |   ctrl      |    alt
----------------------+-----------+-----------+-------------+----------
left click            |           | zoom      | query point |
----------------------+-----------+-----------+-------------+----------
left double click     | recenter  |           |             |
----------------------+-----------+-----------+-------------+----------
left click-and-drag   | pan       | zoom box  | query rect  |
----------------------+-----------+-----------+-------------+----------
right click           | menu?     |           |             |
----------------------+-----------+-----------+-------------+----------
right double click    |           |           |             |
----------------------+-----------+-----------+-------------+----------
right click-and-drag  |           |           |             |
----------------------+-----------+-----------+-------------+----------

The intention would be to have all this in kaNavigator so that kaQuery would
not be required, but possibly make the query actions optional.

I think we should reserve the right click stuff for a possible context menu.

Further discussion required :)

Paul

On 10-Jan-06, at 2:56 PM, Josh Livni wrote:

> Personally, I actually like the double-click recentering and zooming 
> in, a la virtual earth.
>
> Also in VE (now http://local.live.com) they have right-click options. 
> While I know most users never touch the right mouse button, I know I'd 
> love the ability to switch between things (eg query and pan) with a 
> button, rather than needing to mouse over and click some icon.
>
> Even better:  The default is panning, but when you hold the space key, 
> it queries.
>
> My ulterior motive here is that while I know the idea is to get the 
> interface as intuitive as possible (keeping in mind 'Google Maps 
> compatibility'), I also like the current ability to query areas with 
> the rubber-band box, for queries where you might want results back for 
> many shapes at a time.
>
> Anyway, given I'm not contributing the code here, I'll just end by 
> saying I'm happy with whatever you guys choose - keep up the fine 
> work!
>
>   -Josh
>
>
> Dean Gadoury wrote:
>> I think the double click should recenter, just like Google Maps.
>> Tim Schaub wrote:
>>> I like the idea of-
>>>
>>> Pan: click-n-drag Zoom: roll (or buttons)
>>> Query: double-click
>>>
>>> Seems fast and intuitive.
>>>
>>> Tim
>>>
>>>
>>>> -----Original Message-----
>>>> From: ka-map-users-bounces at lists.maptools.org [mailto:ka-map- 
>>>> users-bounces at lists.maptools.org] On Behalf Of Paul Spencer
>>>> Sent: Tuesday, January 10, 2006 10:16 AM
>>>> To: Brent Pedersen
>>>> Cc: ka-map-users at lists.maptools.org
>>>> Subject: Re: [ka-Map-users] auto query
>>>>
>>>> Comments requested from community on desirability of this feature 
>>>> being made part of ka-map cvs please :)
>>>>
>>>> If I get some generally positive responses then I'll negotiate with 
>>>> Brent to get this into cvs.
>>>>
>>>> Cheers
>>>>
>>>> Paul
>>>>
>>>> On 10-Jan-06, at 12:14 AM, Brent Pedersen wrote:
>>>>
>>>>
>>>>> hmmm, you're right--i wonder if that will be the case without the 
>>>>> alert(). i was keying off mousedown and mouseup, but maybe
>>>>
>>>> i can just
>>>>> use onclick??
>>>>>
>>>>>
>>>>> On 1/9/06, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:   
>>>>> Looks nice, but it has broken the double click to recenter.
>>>>>
>>>>> -Steve
>>>>>
>>>>> Brent Pedersen wrote:
>>>>>
>>>>>> hi,
>>>>>> the new updates to kaMap are looking great, thanks all!
>>>>>>
>>>>>> the main issue i hear from users of kaMap is that it's not
>>>>>
>>>>> intuitive to
>>>>>
>>>>>> switch between navigate and query mode (darned google maps!).
>>>>>> so i added a check in kaNavigator.  if the mouseup event occurs
>>>>>
>>>>> near a
>>>>>
>>>>>> mousedown event (within 3 pixels, but easily changed),
>>>>
>>>> assume its a
>>>>
>>>>>> query, and send the coords to the myQuery function. else the
>>>>>
>>>>> mouseup and
>>>>>
>>>>>> mousedown events are far apart, it must be a drag, so
>>>>
>>>> carry on as
>>>>> usual.
>>>>>
>>>>>> obviously this only works for point queries, but it avoids 
>>>>>> turning kaNavigator on and off to do simple queries.
>>>>>>
>>>>>> it only requires one extra line in startUp.js:
>>>>>>
>>>>>> myKaNavigator.setAutoQuery(1,myQuery);
>>>>>>
>>>>>> where myQuery is the function that is called if the
>>>>
>>>> mouseup/down are
>>>>
>>>>>> near.  if that function is not called or it is recalled
>>>>
>>>> with 0, the
>>>>
>>>>>> kaMap navigation will behave as before.
>>>>>>
>>>>>> a working example (with the default alert() in myQuery) and the
>>>>>
>>>>> modified
>>>>>
>>>>>> kaTool.js are currently at:
>>>>>>
>>>>>> http://mul-115-1.cnr.berkeley.edu/fire/geoFRAP/map/htdocs/
>>>>>>
>>>>>> may be useful.
>>>>>> -brent
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --------------------------------------------------------------
>>>> --------
>>>>> --
>>>>>
>>>>>> _______________________________________________
>>>>>> ka-Map-users mailing list
>>>>>> ka-Map-users at lists.maptools.org
>>>>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>>>
>>>>> _______________________________________________
>>>>> ka-Map-users mailing list
>>>>> ka-Map-users at lists.maptools.org
>>>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>>>
>>>>> _______________________________________________
>>>>> ka-Map-users mailing list
>>>>> ka-Map-users at lists.maptools.org
>>>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>>
>>>> +-----------------------------------------------------------------+
>>>> |Paul Spencer                           pspencer at dmsolutions.ca   |
>>>> +-----------------------------------------------------------------+
>>>> |Applications & Software Development                              |
>>>> |DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>>> +-----------------------------------------------------------------+
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ka-Map-users mailing list
>>>> ka-Map-users at lists.maptools.org
>>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> ka-Map-users mailing list
>>> ka-Map-users at lists.maptools.org
>>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+




_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users




More information about the ka-Map-users mailing list