Closed Pham-Vincent closed 2 months ago
Added a Restriction to restrict how far the map can go
//Limits the Bounds Within this area var allowedBounds = new google.maps.LatLngBounds( new google.maps.LatLng(-60, -180),// Southwest corner (60 degrees south, entire western hemisphere) new google.maps.LatLng(85, 180) // Northeast corner (North Pole, entire eastern hemisphere) ); restriction: { latLngBounds: allowedBounds,// Gives the Maps Boundaries strictBounds: false // Set to true if you want to completely restrict panning }
We are able to go up and above the map for some reason
Set some type of restriction to stop this