In Openlayers 3 Max Extent there is mentioned how to set a max extent. But how can I set coordinates in such a way that it is not possible to drag the map beyond the some given coordinates?

Extent is used to make sure that at least one corner of the rectangle is still in visible, but I want that you can't even drag beyond the rectangles borders.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.