Adds scale line to map client
This commit is contained in:
parent
6aa243192d
commit
3d967341e1
@ -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 );
|
||||||
|
@ -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(),
|
||||||
|
]
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user