From 880725bb6556147572c6d9fa6ec9b52a7b5b7f91 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 31 Mar 2019 14:48:57 -0600 Subject: [PATCH] Adjust map zoom --- www/js/map.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/js/map.js b/www/js/map.js index e1a864e..8bc0601 100644 --- a/www/js/map.js +++ b/www/js/map.js @@ -92,12 +92,9 @@ function updateMap() { function recenterMapPosition() { var zoom = 13; - if (userposition.coords.accuracy < 100) { + if (userposition.coords.accuracy < 1000) { zoom = 15; } - if (userposition.coords.accuracy < 50) { - zoom = 16; - } leafletmap.setView([userposition.coords.latitude, userposition.coords.longitude], zoom); }