[OpenLayers-Users] OpenLayers equivalent of ka-map pause event?

Mike Quentel mquentel at rim.com
Thu Dec 20 00:24:13 EST 2007


As far as the mouse events go, you might consider using a timer to
detect if user has paused for the amount of time over the map feature.
onmouseover could start the timer.  If user does not move (mousemove)
after a certain amount of time, then show the pop-up window if over a
map feature.

I had to make timer functionality to ignore mouse wheel events that were
too fast.  I've attached a simpler example of using a timer.  This is
not the same as using the javascript setTimeout function.

Cheers,
 
Mike Quentel


-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
On Behalf Of Steve Lime
Sent: Wednesday, 19 December 2007 16:12
To: Eric Lemoine
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] OpenLayers equivalent of ka-map pause
event?

I'd just want a callback run with the x,y of the pause. In my case I do
pure MapServer query requests with JSON or HTML responses. I ported the
ka-map approach to my own non-tiled framework (for example,
http://www.dnr.state.mn.us/waters/csg/index.html) and want to use a
similar approach with OpenLayers clients I'm working on. 

Steve

>>> On 12/19/2007 at 2:47 PM, in message
<5ec103de0712191247m1c7576b2vb63a50b0dbe0059d at mail.gmail.com>, "Eric
Lemoine"
<eric.c2c at gmail.com> wrote:
> On Dec 19, 2007 9:37 PM, Steve Lime <Steve.Lime at dnr.state.mn.us>
wrote:
>> Folks familiar with ka-map might also be familiar with a mouse pause 
>> event
> that has proven
>> to be really useful (for me anyway). I fires if the mouse has been
> stationary a certain
>> amount of time. I grep'd the source but didn't find anything obvious.

>> Does
> anything like it
>> exist? Thanks.
> 
> Steve
> 
> What kind of request would you like to see triggered? WMS
GetFeatureInfo?
> 
> FYI, we implemented this in MapFish, using our own REST-based protocol

> between the client and the server.
> 
> --
> Eric

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071220/e49cbdd0/wheeltest4.htm


More information about the Users mailing list