Adds scale line to map client

This commit is contained in:
mpeltriaux 2023-03-28 13:51:28 +02:00
parent 6aa243192d
commit 3d967341e1
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(),
]
} }
); );