Add Attribution control to the map by default. (No visual affect if no

layers have 'attribution' set.)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4334 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-09-16 16:01:51 +00:00
parent f505542fbe
commit f4deff5f34
2 changed files with 4 additions and 2 deletions

View File

@@ -341,7 +341,8 @@ OpenLayers.Map = OpenLayers.Class({
if (OpenLayers.Control != null) { // running full or lite?
this.controls = [ new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.ArgParser()
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution()
];
} else {
this.controls = [];