I have a simple map. When I zoom out to the map min zoom level (whole map overview) then I see a lot blank area around the map? Is it possible not to show it? Do I need to somehow apply pan locker or set bounds or what I need to do?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
restrictedExtentattribute to restrict panning after a certain extent. Here is an example: Openlyers restricedExtent ExampleYou can also restrict zoom levels with these attributes: