Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Restrict Display to Bounds #211

Closed
tcoats opened this issue Jul 25, 2011 · 1 comment
Closed

Feature Request - Restrict Display to Bounds #211

tcoats opened this issue Jul 25, 2011 · 1 comment

Comments

@tcoats
Copy link

tcoats commented Jul 25, 2011

It would be useful to restrict the view of a given Leaflet to a specific area.

This could be used:

  • In contact forms
  • Where the area is important, for example a city map or a map of a specific area

I would expect Leaflet to never show map outside the restricted area, this includes:

  • When zooming out, restricting an area would impose a minimum zoom
  • Ideally this minimum zoom to be fractional - eg a zoom level between 4 and 5 displays the area bets
  • When resizing, or automatically resizing the imposed minimum zoom would have to be updated

I'm considering writing this myself, any guidance would be most welcome.

In Summary:

  • Map Options allowing a developer to restrict the area allowed to display in Leaflet
@mourner
Copy link
Member

mourner commented Jul 25, 2011

This feature is in the to-do list already, see #93, so closing as a duplicate.
Thanks for the additional comments, and contributions are of course welcome :)

@mourner mourner closed this as completed Jul 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants