From 74125d761a5b747f9298ae89900dc62373d6627e Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Tue, 10 Sep 2019 17:08:24 +0200 Subject: [PATCH] improve zoom level by incrementing by one --- app/views/location.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/location.ejs b/app/views/location.ejs index acff901..0f8f7f8 100644 --- a/app/views/location.ejs +++ b/app/views/location.ejs @@ -95,6 +95,7 @@ const place = autocomplete.getPlace(); if (place.geometry) { map.fitBounds(place.geometry.viewport); + map.setZoom(map.getZoom() + 1); $("#locationInputData").val(JSON.stringify(place)); } }