Merge pull request 'Adds scale line to map client' (#320) from scale_line_map_client into master

Reviewed-on: SGD-Nord/konova#320
This commit is contained in:
mpeltriaux 2023-03-28 13:52:32 +02:00
commit b655b47979
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
.netgis-attribution .netgis-attribution
{ {
position: absolute; position: absolute;
left: 0mm; right: 0mm;
bottom: 0mm; bottom: 0mm;
padding: 1mm; padding: 1mm;
background: rgba( 255, 255, 255, 0.5 ); background: rgba( 255, 255, 255, 0.5 );

View File

@ -133,7 +133,9 @@ netgis.MapOpenLayers.prototype.initMap = function()
view: this.view, view: this.view,
pixelRatio: 1.0, pixelRatio: 1.0,
moveTolerance: 5, moveTolerance: 5,
controls: [] controls: [
new ol.control.ScaleLine(),
]
} }
); );