Add attribution control by default
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user