Add attribution control by default

This commit is contained in:
Tom Payne
2012-09-28 14:53:09 +02:00
parent 82058412a1
commit 1be9e97489
5 changed files with 3 additions and 20 deletions

View File

@@ -11,6 +11,7 @@ goog.require('ol.Constraints');
goog.require('ol.Projection');
goog.require('ol.ResolutionConstraint');
goog.require('ol.RotationConstraint');
goog.require('ol.control.Attribution');
goog.require('ol.control.Zoom');
goog.require('ol.interaction.AltDragRotate');
goog.require('ol.interaction.DblClickZoom');
@@ -231,6 +232,8 @@ ol.MapOptions.createControls_ = function(mapOptionsLiteral) {
var controls = new ol.Collection();
controls.push(new ol.control.Attribution({}));
var zoomDelta = goog.isDef(mapOptionsLiteral.zoomDelta) ?
mapOptionsLiteral.zoomDelta : 4;
controls.push(new ol.control.Zoom({