OpenLayers, by default, zooms in when a user double clicks a map.
What is the best way to disable this behavior?
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.
The zoom on double click feature is apparently a functionality in the
OpenLayers.Control.Navigationcontrol. See the OpenLayers Reference for more information.A small and very tired example:
I remember that the Navigation control is automatically added to the map if no controls are set during the initialization of the map. So you might have to add the Navigation control your self.
Hope it helps =)