ol.source.Source#setAttributions is not exported

This commit is contained in:
Éric Lemoine
2013-06-28 00:10:27 +02:00
parent cd14753495
commit 1d6e428e8f

View File

@@ -66,8 +66,8 @@ xhr.onload = function() {
capabilities, layerIdentifiers[i]);
// we need to set the URL because it must include the key.
sourceOptions.urls = [wmtsUrl];
sourceOptions.attributions = [attribution];
source = new ol.source.WMTS(sourceOptions);
source.setAttributions([attribution]);
source.setLogo(layerLogos[i]);
layer = new ol.layer.TileLayer({source: source});
map.addLayer(layer);