You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the geocoder returns a result without a bbox object, the map just centers the map on the result, and if the current zoom level is very low (i.e. zoomed out) then the centering of the map on the search result isn't very helpful. It would be great to implement a minimum zoom level for a point result that does not have an associated bbox.
The mapbox.js library is currently using a pointZoom option of 16.
If the geocoder returns a result without a bbox object, the map just centers the map on the result, and if the current zoom level is very low (i.e. zoomed out) then the centering of the map on the search result isn't very helpful. It would be great to implement a minimum zoom level for a point result that does not have an associated bbox.
The mapbox.js library is currently using a pointZoom option of 16.
and using it in the chooseResult function:
so it can be easily added to the change event on the "flyTo" instead of just centering:
The text was updated successfully, but these errors were encountered: