Skip to content

Commit

Permalink
Merge pull request #12 from elie222/master
Browse files Browse the repository at this point in the history
fixed zoom bug
  • Loading branch information
mpowaga committed Jan 13, 2015
2 parents 420c568 + 82baffe commit 3c116e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/autoform-map.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Template.afMap.rendered = ->
if @data.atts.autolocate and navigator.geolocation and not @data.value
navigator.geolocation.getCurrentPosition (position) =>
location = new google.maps.LatLng position.coords.latitude, position.coords.longitude
@data.setMarker @data.map, location, @options.zoom
@data.setMarker @data.map, location, @data.options.zoom
@data.map.setCenter location

google.maps.event.addListener @data.map, 'click', (e) =>
Expand Down

0 comments on commit 3c116e3

Please sign in to comment.