Skip to content

Commit

Permalink
Merge pull request #103 from freyfogle/master
Browse files Browse the repository at this point in the history
minor change to mxn.cloudmade.core.js
  • Loading branch information
freyfogle committed Feb 20, 2012
2 parents 4243f7a + a1f8d24 commit 90c4d52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions source/mxn.cloudmade.core.js
Expand Up @@ -41,6 +41,9 @@ mxn.register('cloudmade', {
if(this.options.enableScrollWheelZoom){
map.enableScrollWheelZoom();
}
if(this.options.disableScrollWheelZoom){
map.disableScrollWheelZoom();
}
},

resizeTo: function(width, height){
Expand Down
5 changes: 4 additions & 1 deletion source/mxn.ovi.core.js
Expand Up @@ -97,7 +97,10 @@ Mapstraction: {
map.addComponent(new ovi.mapsapi.map.component.zoom.MouseWheel());
}
else {
map.removeComponent(map.getComponentById("zoom.MouseWheel"));
var mousewheel = map.getComponentById("zoom.MouseWheel");
if (mousewheel){
map.removeComponent(mousewheel);
}
}
},

Expand Down

0 comments on commit 90c4d52

Please sign in to comment.