add PanZoom control if Zoom isn’t in build
This commit is contained in:
@@ -624,7 +624,10 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
}
|
}
|
||||||
if (OpenLayers.Control.Zoom) {
|
if (OpenLayers.Control.Zoom) {
|
||||||
this.controls.push(new OpenLayers.Control.Zoom());
|
this.controls.push(new OpenLayers.Control.Zoom());
|
||||||
|
} else if (OpenLayers.Control.PanZoom) {
|
||||||
|
this.controls.push(new OpenLayers.Control.PanZoom());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OpenLayers.Control.ArgParser) {
|
if (OpenLayers.Control.ArgParser) {
|
||||||
this.controls.push(new OpenLayers.Control.ArgParser());
|
this.controls.push(new OpenLayers.Control.ArgParser());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user