What is the best way to use strict bounds? #543
Closed
miltonarce
started this conversation in
General
Replies: 2 comments
-
Fortunatly, I found how to do it, but I'm not pretty sure if it's okay.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You could also pass the
or you can add the restriction object to your initial |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the best way to use strict bounds here? Limiting my bounds to USA for example.
I can see google maps is suggesting this:
function initMap() { map = new google.maps.Map(document.getElementById("map"), { center: AUCKLAND, restriction: { latLngBounds: NEW_ZEALAND_BOUNDS, strictBounds: false, }, zoom: 7, }); }
But I can't understand how to replicate here.
Beta Was this translation helpful? Give feedback.
All reactions