Open pakcybershagufta opened 4 years ago
Donot allow user to move map outside of usa
we dont this is custom js like below
var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: 46.818188, lng: 8.227512}, minZoom: 7, maxZoom: 14, zoom: 7, restriction: { latLngBounds: { east: 10.49234, north: 47.808455, south: 45.81792, west: 5.95608 }, strictBounds: true }, }); }
Excuse me, did you find the answer?
Donot allow user to move map outside of usa
we dont this is custom js like below
var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: 46.818188, lng: 8.227512}, minZoom: 7, maxZoom: 14, zoom: 7, restriction: { latLngBounds: { east: 10.49234, north: 47.808455, south: 45.81792, west: 5.95608 }, strictBounds: true }, }); }