Do not collapse Attributions when using OSM source

This commit is contained in:
Antoine Abt
2014-06-03 15:55:56 +02:00
parent 4d150e6b84
commit d5d5f58809
26 changed files with 152 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
goog.require('ol.Attribution');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
@@ -42,6 +43,11 @@ var map = new ol.Map({
openSeaMapLayer
],
target: 'map',
controls: ol.control.defaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
collapsible: false
})
}),
view: new ol.View({
maxZoom: 18,
center: [-244780.24508882355, 5986452.183179816],