[OpenLayers-Users] mousedown
Alexandre Dube
adube at mapgears.com
Tue Jan 13 08:36:31 EST 2009
Hi Stéphane,
You could use a Click Handler to do this. See the example :
http://openlayers.org/dev/examples/click-handler.html
You could use the mousedown property in OpenLayers/Handler/Click.js to
do what you want.
Alexandre
stephane.poirier at usherbrooke.ca wrote:
>
> Hi All,
>
> I would like to detect when the mouse left button is down over the map.
>
> I can detect mouseup and mousemove using
> map.events.register("mouseup", this, function(e){ ... });
> and map.events.register("mousemove", this, function(e){ ... }); but
> not when the mouse left button is clicked down.
>
> Any tricks?
>
> Stephane
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list