Skip to content

Commit

Permalink
make Zoom default instead of PanZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
tonio committed Mar 14, 2012
1 parent fe7f7cf commit b2727c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/OpenLayers/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ OpenLayers.Map = OpenLayers.Class({
* If not provided in the map options at construction, the map will
* by default be given the following controls if present in the build:
* - <OpenLayers.Control.Navigation> or <OpenLayers.Control.TouchNavigation>
* - <OpenLayers.Control.PanZoom>
* - <OpenLayers.Control.Zoom>
* - <OpenLayers.Control.ArgParser>
* - <OpenLayers.Control.Attribution>
*/
Expand Down Expand Up @@ -622,8 +622,8 @@ OpenLayers.Map = OpenLayers.Class({
} else if (OpenLayers.Control.TouchNavigation) {
this.controls.push(new OpenLayers.Control.TouchNavigation());
}
if (OpenLayers.Control.PanZoom) {
this.controls.push(new OpenLayers.Control.PanZoom());
if (OpenLayers.Control.Zoom) {
this.controls.push(new OpenLayers.Control.Zoom());
}
if (OpenLayers.Control.ArgParser) {
this.controls.push(new OpenLayers.Control.ArgParser());
Expand Down

0 comments on commit b2727c8

Please sign in to comment.