Re: [OpenLayers-Users] mousedown

2009-05-06 Thread Greg Ederer
I just tried your suggestion. No luck. I've also tried: this.map.events.register('mousedown', this, function() { alert('foo'); } ); But this doesn't do it either. I'm now considering just adding an event listener to the Map's outermost div, and managing the mousedown event myself. Do

Re: [OpenLayers-Users] mousedown

2009-05-06 Thread Eric Lemoine
On Tuesday, May 5, 2009, Greg Ederer wrote: > Is there some way to register a callback to handle mousedown?  I really need > this to get my user interface working properly. Have you tried something like: map.events.on({ "mousedown": function(e) { // do something on mousedown } });

Re: [OpenLayers-Users] mousedown

2009-05-05 Thread Greg Ederer
Is there some way to register a callback to handle mousedown? I really need this to get my user interface working properly. Cheers, Greg On May 5, 2009, at 9:59 AM, Eric Lemoine wrote: > On Monday, May 4, 2009, Greg Ederer wrote: >> For reference, here's my code so far: >> >> OpenLay

Re: [OpenLayers-Users] mousedown

2009-05-05 Thread Eric Lemoine
On Monday, May 4, 2009, Greg Ederer wrote: > For reference, here's my code so far: > >       OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { >         defaultHandlerOptions: { >           'single': true, >           'double': false, >           'mousedown' : false, >      

Re: [OpenLayers-Users] mousedown

2009-05-04 Thread Greg Ederer
Hmm. Nope, mine's local 2.7. Thanks! Greg On May 4, 2009, at 11:17 AM, Stefan Lischke wrote: >> Hi, >> >> I need to capture mousedown events on a Map. I'm using a >> custom OpenLayers.Control.Click for click and dblclick. But, >> Click does not appear to handle mousedown events. Any suggest

Re: [OpenLayers-Users] mousedown

2009-05-04 Thread Stefan Lischke
> Hi, > > I need to capture mousedown events on a Map. I'm using a > custom OpenLayers.Control.Click for click and dblclick. But, > Click does not appear to handle mousedown events. Any suggestions? Crazy, just as i wanted to answer you, my code handling mouse events also did not work. Are

Re: [OpenLayers-Users] mousedown

2009-05-04 Thread Greg Ederer
For reference, here's my code so far: OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'mousedown' : false, 'pixelTolerance': 0, 'stopSingle': false,

[OpenLayers-Users] mousedown

2009-05-04 Thread Greg Ederer
Hi, I need to capture mousedown events on a Map. I'm using a custom OpenLayers.Control.Click for click and dblclick. But, Click does not appear to handle mousedown events. Any suggestions? Thanks! Greg ___ Users mailing list Users@openlayers.org

Re: [OpenLayers-Users] mousedown

2009-01-13 Thread Alexandre Dube
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.poir...@usherbrooke.ca wrote: > > Hi All, > > I would

[OpenLayers-Users] mousedown

2009-01-12 Thread stephane.poirier
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.

Re: [OpenLayers-Users] mousedown on marker and editingtoolbar

2008-08-13 Thread Walter Lorenzetti
Eric Lemoine ha scritto: > I cant check right now but i thought only the temporary layer's > z-index was changed. May be completely wrong here. Eric > > 2008/8/12, Christopher Schmidt <[EMAIL PROTECTED]>: > >> On Tue, Aug 12, 2008 at 05:55:41PM +0200, Eric Lemoine wrote: >> >>> Someone will

Re: [OpenLayers-Users] mousedown on marker and editingtoolbar

2008-08-12 Thread Eric Lemoine
I cant check right now but i thought only the temporary layer's z-index was changed. May be completely wrong here. Eric 2008/8/12, Christopher Schmidt <[EMAIL PROTECTED]>: > On Tue, Aug 12, 2008 at 05:55:41PM +0200, Eric Lemoine wrote: >> Someone will correct me if i'm telling sh^W: if there's a v

Re: [OpenLayers-Users] mousedown on marker and editingtoolbar

2008-08-12 Thread Christopher Schmidt
On Tue, Aug 12, 2008 at 05:55:41PM +0200, Eric Lemoine wrote: > Someone will correct me if i'm telling sh^W: if there's a vector layer > above the markers layer browser events on the latter won't work. This > is the same problem that makes feature selection not work when > features are in multiple

Re: [OpenLayers-Users] mousedown on marker and editingtoolbar

2008-08-12 Thread Eric Lemoine
Someone will correct me if i'm telling sh^W: if there's a vector layer above the markers layer browser events on the latter won't work. This is the same problem that makes feature selection not work when features are in multiple vector layers. How's the editing toolbar behave if you make sure the m

[OpenLayers-Users] mousedown on marker and editingtoolbar

2008-08-12 Thread Walter Lorenzetti
Hi All, is possible that editingtoolbar is not compatible with event.register on a markers layer? If I put a editing toolbar with a event.register the mousedown on markers layer doesn't work!! Thanks in advance Walter ___ Users mailing list Users@o