Do not collapse Attributions when using OSM source
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
goog.require('ol.BrowserFeature');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.control');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.source.OSM');
|
||||
|
||||
@@ -20,6 +21,11 @@ if (!ol.BrowserFeature.HAS_WEBGL) {
|
||||
layers: [osm],
|
||||
renderer: 'webgl',
|
||||
target: 'map',
|
||||
controls: ol.control.defaults({
|
||||
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
|
||||
collapsible: false
|
||||
})
|
||||
}),
|
||||
view: new ol.View({
|
||||
center: [0, 0],
|
||||
zoom: 2
|
||||
|
||||
Reference in New Issue
Block a user