kopia lustrzana https://github.com/projecthorus/chasemapper
Polyline control switches between metric and imperial
rodzic
7561641615
commit
7f50501974
|
@ -249,11 +249,29 @@
|
|||
}
|
||||
|
||||
// Add measurement control.
|
||||
|
||||
if (chase_config['unitselection'] == "imperial") {
|
||||
|
||||
|
||||
L.control.polylineMeasure({
|
||||
position: 'topleft',
|
||||
unit: 'landmiles',
|
||||
showClearControl: true,
|
||||
}).addTo(map);
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (chase_config['unitselection'] == "metric") {
|
||||
L.control.polylineMeasure({
|
||||
position: 'topleft',
|
||||
unit: 'metres',
|
||||
showClearControl: true,
|
||||
}).addTo(map);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Add layer selection control (top right).
|
||||
map.addControl(new L.Control.Layers(map_layers));
|
||||
|
|
Ładowanie…
Reference in New Issue