From 9d9d44856a1a16de8b6d73e216875bffdf4f4178 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 25 Feb 2015 17:55:18 +0100 Subject: Change default pan for openlayers --- chimere/static/chimere/css/styles.css | 2 +- chimere/static/chimere/js/jquery.chimere.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css index 479a8b8..fd39b79 100644 --- a/chimere/static/chimere/css/styles.css +++ b/chimere/static/chimere/css/styles.css @@ -1105,7 +1105,7 @@ div.pp_default .pp_expand{ } .olControlSimplePanZoom { - top: 10px; + top: 20px; right: 10px; } diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js index e40b071..61aa6d9 100644 --- a/chimere/static/chimere/js/jquery.chimere.js +++ b/chimere/static/chimere/js/jquery.chimere.js @@ -167,8 +167,7 @@ OpenLayers.Layer.MapQuestOSM = OpenLayers.Class(OpenLayers.Layer.XYZ, { new OpenLayers.Control.Zoom()]; } else { settings.controls = [new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanPanel(), - new OpenLayers.Control.ZoomPanel(), + new OpenLayers.Control.SimplePanZoom(), new OpenLayers.Control.ScaleLine()]; } } -- cgit v1.2.3