Permalink
Browse files

Fix Google Maps return null bounds

  • Loading branch information...
cheeaun committed Feb 16, 2018
1 parent 5260987 commit 810b7cef8596e1095bee166229ac1f8fa22f228c
Showing with 1 addition and 0 deletions.
  1. +1 −0 assets/js/app.js
@@ -193,6 +193,7 @@
var $boundsWarning = $('#bounds-warning');
google.maps.event.addListener(map, 'bounds_changed', function(){
var mapBounds = map.getBounds();
if (!mapBounds) return;
if (mapBounds.intersects(bounds)){
$boundsWarning.removeClass('visible');
} else {

0 comments on commit 810b7ce

Please sign in to comment.