aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/javascript/controllers/map_controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/javascript/controllers/map_controller.js b/app/javascript/controllers/map_controller.js
index 9770cf4..005599e 100644
--- a/app/javascript/controllers/map_controller.js
+++ b/app/javascript/controllers/map_controller.js
@@ -60,6 +60,9 @@ export default class extends Controller {
L.control.layers(tilemaps, overlays).addTo(this.map)
+ /* Show current scale in meters or kilometers */
+ L.control.scale({ imperial: false }).addTo(this.map);
+
L.DomEvent.on(window, 'hashchange', this.doSomethingCool);
// Allow calling the mapController from elsewhere.