diff --git a/WMS choose.htm b/WMS choose.htm
index 94fdd69..80ac8bf 100644
--- a/WMS choose.htm
+++ b/WMS choose.htm
@@ -1,22 +1,22 @@
-
-
-
-
-
- Layers Control Tutorial - Leaflet
-
-
+
+
+
+
-
-
+ Layers Control Tutorial - Leaflet
-
+
+
-
-
-
-
+
+
-
+
-
-
-
-
+ //var y = map.getSize().y / 2;
+ const widthInMeter = 6378137 * 2 * Math.PI * Math.cos(map.getCenter().lat * Math.PI / 180);
+ var scaleOutput = document.getElementById("scaleOutput");
+ scaleOutput.innerHTML = widthInMeter;
+ map.on('moveend', function(){
+ scaleOutput.innerHTML = widthInMeter;
+ });
+
+