diff --git a/debug/control/map-control.html b/debug/control/map-control.html deleted file mode 100644 index 119d194d..00000000 --- a/debug/control/map-control.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - Leaflet debug page - - - - - - - - - - -
- - - - \ No newline at end of file diff --git a/debug/map/bounds-equals.html b/debug/map/bounds-equals.html deleted file mode 100644 index ed7bf2ef..00000000 --- a/debug/map/bounds-equals.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - Leaflet debug page - - - - - - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/debug/control/control-layers.html b/debug/map/controls.html similarity index 100% rename from debug/control/control-layers.html rename to debug/map/controls.html diff --git a/debug/geojson/geojson-sample.js b/debug/vector/geojson-sample.js similarity index 100% rename from debug/geojson/geojson-sample.js rename to debug/vector/geojson-sample.js diff --git a/debug/geojson/geojson.html b/debug/vector/geojson.html similarity index 100% rename from debug/geojson/geojson.html rename to debug/vector/geojson.html diff --git a/src/control/Control.Scale.js b/src/control/Control.Scale.js index 72c50a1e..3b905282 100644 --- a/src/control/Control.Scale.js +++ b/src/control/Control.Scale.js @@ -87,10 +87,8 @@ L.Control.Scale = L.Control.extend({ var pow10 = Math.pow(10, (Math.floor(num) + '').length - 1), d = num / pow10; - return pow10 * (d >= 10 ? - 10 : - d >= 5 ? - 5 : - d >= 2 ? 2 : 1); + d = d >= 10 ? 10 : d >= 5 ? 5 : d >= 2 ? 2 : 1; + + return pow10 * d; } }); \ No newline at end of file