[OpenLayers-Users] add click event

Arnd Wippermann arnd.wippermann at web.de
Wed Oct 25 17:16:15 EDT 2006


Hello Hermann,

I have solved the problem with setTimeout.

I created a click-listener, who waits for the dblclick:

    map.events.register('click', map, function (e) {
        myE = e;
        window.setTimeout("WaitForDblClick()",1000);
    });

When the Dblclick-listener returns true, then the click-event die. Otherwise
the click-event will start. A little constructed, but es klappt.

Look at http://gis.ibbeck.de/pinguinale/samba.html. The layer Orthophoto and
Stadtplan are not active. To get a queryresult you must check the layer(s)
in the column Q. With Firefox the + and - set the opacity of the OLLayer.
 
Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/pinguinale/
And a new one
http://gis.ibbeck.de/ginfo/ibbOLClient/OpenLayersClient.html?KARTE=1


-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Hermann
Gesendet: Mittwoch, 25. Oktober 2006 11:18
An: users at openlayers.org
Betreff: [OpenLayers-Users] add click event


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#a6988690
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list