Merge pull request #838 from elemoine/fix-ign-example
Fix wmts-ign example when hosted
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user