[OpenLayers-Users] Touch navigation implementation

Derek Watling derek at cmainfo.co.za
Wed Dec 5 00:19:01 PST 2012


Eric, Thank you for clarifying the controls.

I tried adding "stopUp = true" as in the following code:

    var control;
    for (var key in measureControls) {
        control = measureControls[key];
        control.events.on({
            "measure": handleMeasurements,
            "measurepartial": handleMeasurements
        });
        control.geodesic = true;
+      control.handler.stopUp = true;
        map.addControl(control);
    }

This works on the touch devices but breaks the measure when using a mouse,
ie. you click the first point and the map then drags.

Is there any way of detecting touch devices? What about devices that have
both touch and mouse?



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Touch-navigation-implementation-tp5020294p5020838.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list