From af449ea3f8500bf27de10148e4e031656566ef34 Mon Sep 17 00:00:00 2001 From: Franz Knipp Date: Thu, 7 May 2015 11:17:55 +0200 Subject: [PATCH] Fixing issue #26 zoom only set with autlocate: true --- lib/client/autoform-map.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client/autoform-map.coffee b/lib/client/autoform-map.coffee index 3ada8a5..1a1a9f3 100644 --- a/lib/client/autoform-map.coffee +++ b/lib/client/autoform-map.coffee @@ -64,6 +64,7 @@ Template.afMap.rendered = -> @data.map.setCenter location else @data.map.setCenter new google.maps.LatLng @data.options.defaultLat, @data.options.defaultLng + @data.map.setZoom @data.options.zoom if @data.atts.searchBox input = @find('.js-search')