From 187e09cc1b90f64926bdf53b3807a4940684ef3d Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 21 May 2015 22:55:16 +0000 Subject: [PATCH] --- classesjs/classe_interface.js | 12 ++++++++++++ interface/dbug6.htm | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/classesjs/classe_interface.js b/classesjs/classe_interface.js index 6563fe6..d9d125a 100644 --- a/classesjs/classe_interface.js +++ b/classesjs/classe_interface.js @@ -769,8 +769,18 @@ i3GEO.Interface = if (!i3GEO.Interface.openlayers.parametrosMap.allOverlays) { i3GEO.Interface.openlayers.parametrosMap.allOverlays = false; } + + i3GEO.Interface.openlayers.parametrosMap.controls.push(new OpenLayers.Control.TouchNavigation({ + dragPanOptions : { + interval : 100, + enableKinetic : true + } + })); + i3GEO.Interface.openlayers.parametrosMap.controls.push(new OpenLayers.Control.PinchZoom()); + if (i3GEO.Interface.TABLET === true) { i3GEO.Interface.openlayers.parametrosMap.theme = null; + i3GEO.Interface.openlayers.parametrosMap.controls.push(new OpenLayers.Control.Attribution()); i3GEO.Interface.openlayers.parametrosMap.controls.push(new OpenLayers.Control.TouchNavigation({ dragPanOptions : { @@ -778,7 +788,9 @@ i3GEO.Interface = enableKinetic : true } })); + i3GEO.Interface.openlayers.parametrosMap.controls.push(new OpenLayers.Control.ZoomPanel()); + } else if (i3GEO.parametros.w > 700) { bb.INCLUIBOTAO.zoomli = true; bb.INCLUIBOTAO.pan = true; diff --git a/interface/dbug6.htm b/interface/dbug6.htm index 4268cfa..db20080 100755 --- a/interface/dbug6.htm +++ b/interface/dbug6.htm @@ -228,7 +228,7 @@ i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ eng, oce, ims, wsm, tms, bra ]; })(); - i3GEO.Interface.TABLET = true; + //i3GEO.Interface.TABLET = true; i3GEO.inicia(); -- libgit2 0.21.2