Skip to content

Commit

Permalink
Patch to allow the following options (using SetOptions from mxn) : di…
Browse files Browse the repository at this point in the history
…sableDoubleClickZoom, enableScrollWheelZoom, enableDragging
  • Loading branch information
Andres Otarola Alvarado committed Mar 22, 2012
1 parent 7fd5a04 commit 3f00d72
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion source/mxn.googlev3.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Mapstraction: {
mapTypeControlOptions: null,
navigationControl: false,
navigationControlOptions: null,
scrollwheel: false
scrollwheel: false,
disableDoubleClickZoom: true
};

// Background color can only be set at construction
Expand Down Expand Up @@ -112,9 +113,21 @@ Mapstraction: {
if (this.options.enableDragging) {
myOptions.draggable = true;
}
else{
myOptions.draggable = false;
}
if (this.options.enableScrollWheelZoom){
myOptions.scrollwheel = true;
}
else{
myOptions.scrollwheel = false;
}
if(this.options.disableDoubleClickZoom){
myOptions.disableDoubleClickZoom = true;
}
else{
myOptions.disableDoubleClickZoom = false;
}
map.setOptions(myOptions);
},

Expand Down

0 comments on commit 3f00d72

Please sign in to comment.