Add scale to map.

This commit is contained in:
Christian Neumann 2020-11-20 11:31:54 +01:00
parent 5134bce714
commit fa154b324c

View file

@ -42,6 +42,11 @@ export class Basemap {
layers: [this._previousLayer], layers: [this._previousLayer],
}); });
L.control.scale(
{
position: 'topright',
}
).addTo(this.map)
// Users are not allowed to zoom to the 'copies' on the left and the right, stuff goes wrong then // Users are not allowed to zoom to the 'copies' on the left and the right, stuff goes wrong then
// We give a bit of leeway for people on the edges // We give a bit of leeway for people on the edges