Merge pull request #838 from elemoine/fix-ign-example

Fix wmts-ign example when hosted
This commit is contained in:
Éric Lemoine
2013-06-28 02:10:17 -07:00

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);