Keyboard Zoom Disable
I would like to remove the keyboard zoom ie. using - or + key. Just wondered if there is a simple way to do this?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?It's defined in MapControls.as, you can either edit that file or even better you can make your own MapControls class that behaves differently.
The MapControls file is a little bit scatter-brained and confusing (it does a lot of layout stuff you probably don't need). It's actually pretty simple to wire a button up to Modest Maps though.
The Map class has functions zoomIn and zoomOut (as well as panLeft, panUp, etc) that can optionally respond to an event. So you can write your own button class and then add a click listener that calls map directly:
myAwesomeButton.addEventListener(MouseEvent.CLICK, map.zoomIn);
Hope that helps!
Loading Profile...



EMPLOYEE