Skip to content

Commit

Permalink
F: OpenSeaMap#187 Modify controls so negative values may be added
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Kuebler committed Feb 20, 2017
1 parent 450939e commit 78b7056
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/js/oseam-views-gauges.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions src/js/templates/gauge.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@
<div class="control-group">
<p><label class="tableft50">Latitude</label></p>
<div class="input-append">
<input type="text" id="latitude" name="latitude" placeholder="52.0" value="{{lat}}"/>
<input type="text" id="latitude" name="latitude" placeholder="52.0" value="{{latitude}}"/>
<span class="help-inline helpOsm"></span>
</div>
</div>
<div class="control-group">
<p><label class="tableft50">Longitude</label></p>
<div class="input-append">
<input type="text" id="longitude" name="longitude" placeholder="1.0" value="{{lon}}"/>
<input type="text" id="longitude" name="longitude" placeholder="1.0" value="{{longitude}}"/>
<span class="help-inline helpOsm"></span>
</div>
</div>
<!--<div class="control-group">
<p><label class="tableft50">Pegelnullpunkt</label></p>
<div class="control-group">
<p><label class="tableft50">Water Reference Level</label></p>
<div class="input-append">
<input type="text" id="gaugezero" name="gaugezero" placeholder="230" value="{{gaugezero}}"/>
<input type="text" id="waterlevel" name="waterlevel" placeholder="230" value="{{waterlevel}}"/>
<span class="help-inline helpOsm"></span>
</div>
</div>-->
Expand Down
20 changes: 10 additions & 10 deletions src/js/templates/gaugedialog-en.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@
<span class="help-inline helpOsm"></span>
</div>
</div>
<div class="control-group"><p>
<label class="tableft50" for="gaugeType">Gauge Type</label></p>
<div class="input-append">
<select id="gaugeType" name="gaugeType">
<option value="RIVER">River</option>
<option value="LAKE">Lake</option>
<option value="SEA">Sea</option>
<option value="UNDEFINED">Other</option>
</select>
</div>
<div class="control-group">
<p><label class="tableft50" for="gaugeType">Gauge Type</label></p>
<div class="input-append">
<select id="gaugeType" name="gaugeType">
<option value="RIVER">River</option>
<option value="LAKE">Lake</option>
<option value="SEA">Sea</option>
<option value="UNDEFINED">Other</option>
</select>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 78b7056

Please sign in to comment.