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
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
}
});
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
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,
>
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
> 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
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,
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
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
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.
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
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
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
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
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
15 matches
Mail list logo