Skip to content

Commit

Permalink
Merge branch 'scrollzoom' of git://github.com/stuessgen/mxn into stue…
Browse files Browse the repository at this point in the history
…ssgen-scrollzoom
  • Loading branch information
dezfowler committed Nov 17, 2011
2 parents 4c4a8d3 + 6d2a962 commit ec6ec30
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/mxn.ovi.core.js
Expand Up @@ -88,7 +88,14 @@ Mapstraction: {
},

applyOptions: function() {
// TODO
var map = this.maps[this.api];

if (this.options.enableScrollWheelZoom) {
map.addComponent(new ovi.mapsapi.map.component.zoom.MouseWheel());
}
else {
map.removeComponent(map.getComponentById("zoom.MouseWheel"));
}
},

resizeTo: function(width, height) {
Expand Down

0 comments on commit ec6ec30

Please sign in to comment.