From 1d6e428e8f71a4740f55b358e2a11ce840edd9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 28 Jun 2013 00:10:27 +0200 Subject: [PATCH] ol.source.Source#setAttributions is not exported --- examples/wmts-ign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/wmts-ign.js b/examples/wmts-ign.js index 2ec13ae057..fdf12c63c3 100644 --- a/examples/wmts-ign.js +++ b/examples/wmts-ign.js @@ -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);