From 98564ab6d0384de2d23f6e46543e4a659b7571b5 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 2 Jul 2016 17:09:16 +0100 Subject: [PATCH] Add a scale. --- public_html/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public_html/script.js b/public_html/script.js index a0950a2..d68a7df 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -363,7 +363,11 @@ function initialize_map() { view: new ol.View({ center: ol.proj.fromLonLat([CenterLon, CenterLat]), zoom: ZoomLvl - }) + }), + controls: [new ol.control.Zoom(), + new ol.control.Rotate(), + new ol.control.Attribution(), + new ol.control.ScaleLine({units: Metric ? "metric" : "nautical"})] }); // Listeners for newly created Map