From d679200e1ab1e015674db7e924c1adb8573837d0 Mon Sep 17 00:00:00 2001 From: catvayor Date: Wed, 14 Sep 2022 14:09:06 +0200 Subject: [PATCH] added border --- static/utils.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/static/utils.js b/static/utils.js index 45a305a..0612e47 100644 --- a/static/utils.js +++ b/static/utils.js @@ -43,6 +43,16 @@ var self_invisible = ////////////////////////////////////////////////////////////////////////////// // INIT MAP +var map_border = [ + [48.838991, 2.389310], + [48.865471, 2.356133], + [48.867714, 2.313811], + [48.841481, 2.307930], + [48.827912, 2.326842], + [48.821826, 2.358638], + [48.838991, 2.389310] +]; + var map; function setup_map(){ @@ -52,6 +62,8 @@ function setup_map(){ maxZoom: 19, attribution: '© OpenStreetMap' }).addTo(map); + + L.polyline(map_border, {color: 'red'}).addTo(map); } ////////////////////////////////////////////////////////////////////////////// @@ -139,4 +151,4 @@ function setup_geoLoc(){ }; navigator.geolocation.watchPosition(geoLoc_success, geoLoc_error, options); -} \ No newline at end of file +}