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 [email protected] 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 > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
