ol.source.Source#setAttributions is not exported
This commit is contained in:
@@ -66,8 +66,8 @@ xhr.onload = function() {
|
|||||||
capabilities, layerIdentifiers[i]);
|
capabilities, layerIdentifiers[i]);
|
||||||
// we need to set the URL because it must include the key.
|
// we need to set the URL because it must include the key.
|
||||||
sourceOptions.urls = [wmtsUrl];
|
sourceOptions.urls = [wmtsUrl];
|
||||||
|
sourceOptions.attributions = [attribution];
|
||||||
source = new ol.source.WMTS(sourceOptions);
|
source = new ol.source.WMTS(sourceOptions);
|
||||||
source.setAttributions([attribution]);
|
|
||||||
source.setLogo(layerLogos[i]);
|
source.setLogo(layerLogos[i]);
|
||||||
layer = new ol.layer.TileLayer({source: source});
|
layer = new ol.layer.TileLayer({source: source});
|
||||||
map.addLayer(layer);
|
map.addLayer(layer);
|
||||||
|
|||||||
Reference in New Issue
Block a user