Skip to content

Commit 78b7056

Browse files
author
Jens Kuebler
committed
F: OpenSeaMap#187 Modify controls so negative values may be added
1 parent 450939e commit 78b7056

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

src/js/oseam-views-gauges.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ OSeaM.views.Gauges = OSeaM.View.extend({
105105
this.layerGaugeVector
106106
]);
107107
this.map.addControls([
108+
new OpenLayers.Control.PanZoomBar(),
109+
new OpenLayers.Control.Navigation(),
108110
new OpenLayers.Control.Attribution(),
109-
new OpenLayers.Control.KeyboardDefaults()
110111
]);
111112
this.map.setCenter(new OpenLayers.LonLat(0.0, 40.0).transform(
112113
this.projectionWGS84,

src/js/templates/gauge.handlebars

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
<div class="control-group">
1616
<p><label class="tableft50">Latitude</label></p>
1717
<div class="input-append">
18-
<input type="text" id="latitude" name="latitude" placeholder="52.0" value="{{lat}}"/>
18+
<input type="text" id="latitude" name="latitude" placeholder="52.0" value="{{latitude}}"/>
1919
<span class="help-inline helpOsm"></span>
2020
</div>
2121
</div>
2222
<div class="control-group">
2323
<p><label class="tableft50">Longitude</label></p>
2424
<div class="input-append">
25-
<input type="text" id="longitude" name="longitude" placeholder="1.0" value="{{lon}}"/>
25+
<input type="text" id="longitude" name="longitude" placeholder="1.0" value="{{longitude}}"/>
2626
<span class="help-inline helpOsm"></span>
2727
</div>
2828
</div>
29-
<!--<div class="control-group">
30-
<p><label class="tableft50">Pegelnullpunkt</label></p>
29+
<div class="control-group">
30+
<p><label class="tableft50">Water Reference Level</label></p>
3131
<div class="input-append">
32-
<input type="text" id="gaugezero" name="gaugezero" placeholder="230" value="{{gaugezero}}"/>
32+
<input type="text" id="waterlevel" name="waterlevel" placeholder="230" value="{{waterlevel}}"/>
3333
<span class="help-inline helpOsm"></span>
3434
</div>
3535
</div>-->

src/js/templates/gaugedialog-en.handlebars

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@
4040
<span class="help-inline helpOsm"></span>
4141
</div>
4242
</div>
43-
<div class="control-group"><p>
44-
<label class="tableft50" for="gaugeType">Gauge Type</label></p>
45-
<div class="input-append">
46-
<select id="gaugeType" name="gaugeType">
47-
<option value="RIVER">River</option>
48-
<option value="LAKE">Lake</option>
49-
<option value="SEA">Sea</option>
50-
<option value="UNDEFINED">Other</option>
51-
</select>
52-
</div>
43+
<div class="control-group">
44+
<p><label class="tableft50" for="gaugeType">Gauge Type</label></p>
45+
<div class="input-append">
46+
<select id="gaugeType" name="gaugeType">
47+
<option value="RIVER">River</option>
48+
<option value="LAKE">Lake</option>
49+
<option value="SEA">Sea</option>
50+
<option value="UNDEFINED">Other</option>
51+
</select>
52+
</div>
5353
</div>
5454
</div>
5555
</div>

0 commit comments

Comments
 (0)