Merge pull request #841 from elemoine/fix-ign-example
Fix wmts-ign example when hosted (take 2)
This commit is contained in:
@@ -67,8 +67,8 @@ xhr.onload = function() {
|
|||||||
// 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];
|
sourceOptions.attributions = [attribution];
|
||||||
|
sourceOptions.logo = layerLogos[i];
|
||||||
source = new ol.source.WMTS(sourceOptions);
|
source = new ol.source.WMTS(sourceOptions);
|
||||||
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