[OpenLayers-Users] add click event

Hermann h.spalting at lippe.de
Thu Oct 26 09:20:37 EDT 2006


I discovered that the -defaultMouseMove-  function in MouseDefaults.js sets 

            this.performedDrag = true;

Is that the key? 
I tried everything like:

if (whatever.performedDrag) ... in my function

but always get a: 'undefined'.
Sorry I'm new to Openlayers and not experienced with Javascript.



Hermann wrote:
> 
> I've added an click event t my map 
> 
>  map.events.register("click", map, function(e) {featureinfo(e);});
> 
> to call my featureinfo function that sends a featureinforequest.
> That works fine so far.
> My problem is, that  the funktion is also calld after dragging the map.
> Haw can I handle that?
> I dont want a botton to switch between query- and navigatemodus.
> 

-- 
View this message in context: http://www.nabble.com/add-click-event-tf2506483.html#a7010965
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list