Skip to content

Commit

Permalink
Merge pull request #72 from travelade/master
Browse files Browse the repository at this point in the history
Bug fix for issue #59
  • Loading branch information
erdem committed May 15, 2018
2 parents 09bc4be + ee0fd94 commit 5aff0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapwidgets/static/mapwidgets/js/mw_google_point_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
this.map.fitBounds(bounds);
if (this.markerFitZoom && this.isInt(this.markerFitZoom)){
var markerFitZoom = parseInt(this.markerFitZoom);
var listener = google.maps.event.addListener(this.map, "bounds_changed", function() {
var listener = google.maps.event.addListener(this.map, "idle", function() {
if (this.getZoom() > markerFitZoom) {
this.setZoom(markerFitZoom)
}
Expand Down

0 comments on commit 5aff0d1

Please sign in to comment.