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
There is a possibility to define map boundaries in Leaflet (maxBounds option), such that the user cannot pan outside some defined area. It would be interesting to catch the cases when the location is outside the map boundaries, and offer the developer an option to not set the view to this location.
The text was updated successfully, but these errors were encountered:
jeromecaffaro
added a commit
to jeromecaffaro/leaflet-locatecontrol
that referenced
this issue
Jun 30, 2013
When the map has defined boundaries (maxBounds), do not move
to the location if it is outside the boundaries.
Added "onLocationOutsideMapBounds" option to trigger a callback
and customize the behaviour. By default move is aborted and
message from newly defined "options.strings.outsideMapBoundsMsg"
is displayed. Fixesdomoritz#25
There is a possibility to define map boundaries in Leaflet (
maxBounds
option), such that the user cannot pan outside some defined area. It would be interesting to catch the cases when the location is outside the map boundaries, and offer the developer an option to not set the view to this location.The text was updated successfully, but these errors were encountered: