From 78b7056c48f6cff0130526234bc7893d6363ba9b Mon Sep 17 00:00:00 2001 From: Jens Kuebler Date: Mon, 20 Feb 2017 23:01:54 +0100 Subject: [PATCH] F: #187 Modify controls so negative values may be added --- src/js/oseam-views-gauges.js | 3 ++- src/js/templates/gauge.handlebars | 10 +++++----- src/js/templates/gaugedialog-en.handlebars | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/js/oseam-views-gauges.js b/src/js/oseam-views-gauges.js index 6a93d2c..deaf3e2 100644 --- a/src/js/oseam-views-gauges.js +++ b/src/js/oseam-views-gauges.js @@ -105,8 +105,9 @@ OSeaM.views.Gauges = OSeaM.View.extend({ this.layerGaugeVector ]); this.map.addControls([ + new OpenLayers.Control.PanZoomBar(), + new OpenLayers.Control.Navigation(), new OpenLayers.Control.Attribution(), - new OpenLayers.Control.KeyboardDefaults() ]); this.map.setCenter(new OpenLayers.LonLat(0.0, 40.0).transform( this.projectionWGS84, diff --git a/src/js/templates/gauge.handlebars b/src/js/templates/gauge.handlebars index 53c3d06..ac8bfb3 100644 --- a/src/js/templates/gauge.handlebars +++ b/src/js/templates/gauge.handlebars @@ -15,21 +15,21 @@

- +

- +
- diff --git a/src/js/templates/gaugedialog-en.handlebars b/src/js/templates/gaugedialog-en.handlebars index 82f57ca..c0c9490 100644 --- a/src/js/templates/gaugedialog-en.handlebars +++ b/src/js/templates/gaugedialog-en.handlebars @@ -40,16 +40,16 @@ -

-

-
- -
+
+

+
+ +