diff --git a/src/control/Control.Scale.js b/src/control/Control.Scale.js index 2dab3100..7e7a4de8 100644 --- a/src/control/Control.Scale.js +++ b/src/control/Control.Scale.js @@ -41,7 +41,7 @@ L.Control.Scale = L.Control.extend({ var map = this._map, y = map.getSize().y / 2; - var maxMeters = L.CRS.Earth.distance( + var maxMeters = map.distance( map.containerPointToLatLng([0, y]), map.containerPointToLatLng([this.options.maxWidth, y]));