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

Zoom on map #47

Closed
mickjol opened this issue May 9, 2017 · 1 comment
Closed

Zoom on map #47

mickjol opened this issue May 9, 2017 · 1 comment

Comments

@mickjol
Copy link

mickjol commented May 9, 2017

How I can block "zoom in" and "zoom out" ?

When I "zoom in", at some point I doesn't have access to map. So all image are white.
Can I setup a minimum zoom and a maximum zoom.

@cbourget
Copy link
Collaborator

cbourget commented May 9, 2017

You can set "minZoom" and "maxZoom" properties in the map view context. "minResolution" and "maxResolution" are also supported. See https://openlayers.org/en/latest/apidoc/ol.View.html for more information.

@mbarbeau mbarbeau closed this as completed May 9, 2017
mbarbeau pushed a commit that referenced this issue Aug 4, 2020
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

3 participants