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
-5
View File
@@ -4,7 +4,6 @@ goog.require('goog.debug.Logger.Level');
goog.require('ol.CoordinateFormat');
goog.require('ol.Map');
goog.require('ol.RendererHint');
goog.require('ol.control.Attribution');
goog.require('ol.control.MousePosition');
goog.require('ol.interaction.Keyboard');
goog.require('ol.layer.TileLayer');
@@ -28,10 +27,6 @@ var domMap = new ol.Map(document.getElementById('domMap'), {
zoom: 0
});
domMap.getControls().push(new ol.control.Attribution({
target: document.getElementById('attribution')
}));
domMap.getControls().push(new ol.control.MousePosition({
coordinateFormat: ol.CoordinateFormat.hdms,
projection: ol.Projection.getFromCode('EPSG:4326'),