c2c4dbfc32d63865d5262b9636b4351c2be5830b
By default, zooming in or out zooms using the mouse's location as an anchor, which makes it possible to navigate the map using scrolling only, and makes zooming in more intuitive. This commit adds a new useAnchor option to the MouseWheelZoom interaction. It is enabled by default, which changes nothing to the current behavior of the interaction. When disabled, the interaction stops registering its lastAnchor_ value. This turns the zoom into a very basic one, that zooms to the center of the screen. To use the map center zoom, set the useAnchor option to false when creating the MouseWheelZoomInteraction, or use its setMouseAnchor function.
OpenLayers 3
OpenLayers 3 is a high-performance, feature-packed library for creating interactive maps on the web.
Getting Started
- Download the latest release
- Install with npm:
npm install openlayers - Clone the repo:
git clone git@github.com:openlayers/ol3.git
Documentation
Check out the hosted examples, the workshop or API docs.
Bugs
Please use the GitHub issue tracker for all bugs and feature requests. Before creating a new issue, do a quick search to see if the problem has been reported already.
Contributing
Please see our guide on contributing if you're interested in getting involved.
Community
- Need help? Find it on stackoverflow using the tag 'openlayers-3'
- Follow @openlayers on Twitter
- Discuss with openlayers users on IRC in
#openlayersatchat.freenode
Description
Languages
JavaScript
99%
CSS
0.6%
Handlebars
0.3%
Shell
0.1%