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

@@ -3,7 +3,6 @@ goog.require('ol.Coordinate');
goog.require('ol.Map');
goog.require('ol.Projection');
goog.require('ol.RendererHint');
goog.require('ol.control.Attribution');
goog.require('ol.layer.TileLayer');
goog.require('ol.source.BingMaps');
goog.require('ol.source.TileJSON');
@@ -31,10 +30,6 @@ var webglMap = new ol.Map(document.getElementById('webglMap'), {
zoom: 5
});
webglMap.getControls().push(new ol.control.Attribution({
target: document.getElementById('attribution')
}));
var domMap = new ol.Map(document.getElementById('domMap'), {
renderer: ol.RendererHint.DOM
});