diff --git a/examples/leaflet/createTempLayer.html b/examples/leaflet/createTempLayer.html index 33e56ba23..9b80ae719 100644 --- a/examples/leaflet/createTempLayer.html +++ b/examples/leaflet/createTempLayer.html @@ -7,18 +7,18 @@ + -
@@ -31,7 +31,7 @@
- +
var layer = result.subLayers.layers[0]; layer.gamma = document.getElementById("gammaParam").value || 1; layerInfoService.setLayersInfo( - new L.supermap.SetLayersInfoParameters({ - layersInfo: result, - resourceID: newResourceID, - isTempLayers: true - }) - ).then((res) => { - tempLayer.updateParams(); - }); + new L.supermap.SetLayersInfoParameters({ + layersInfo: result, + resourceID: newResourceID, + isTempLayers: true + }) + ).then((res) => { + tempLayer.updateParams(); + }); } diff --git a/examples/mapboxgl/createTempLayer.html b/examples/mapboxgl/createTempLayer.html index 474e4ecc1..5989a9bf2 100644 --- a/examples/mapboxgl/createTempLayer.html +++ b/examples/mapboxgl/createTempLayer.html @@ -7,18 +7,18 @@ + -
@@ -31,7 +31,7 @@
- +
var layer = result.subLayers.layers[0]; layer.gamma = document.getElementById("gammaParam").value || 1; layerInfoService.setLayersInfo( - new mapboxgl.supermap.SetLayersInfoParameters({ - layersInfo: result, - resourceID: newResourceID, - isTempLayers: true - }) - ).then((res) => { - map.style.sourceCaches['layer'].clearTiles(); - map.style.sourceCaches['layer'].update(map.transform); - map.triggerRepaint(); - }); + new mapboxgl.supermap.SetLayersInfoParameters({ + layersInfo: result, + resourceID: newResourceID, + isTempLayers: true + }) + ).then((res) => { + map.style.sourceCaches['layer'].clearTiles(); + map.style.sourceCaches['layer'].update(map.transform); + map.triggerRepaint(); + }); } diff --git a/examples/maplibregl/createTempLayer.html b/examples/maplibregl/createTempLayer.html index 318e13718..2fc839441 100644 --- a/examples/maplibregl/createTempLayer.html +++ b/examples/maplibregl/createTempLayer.html @@ -7,18 +7,18 @@ + -
@@ -31,7 +31,7 @@
- +
var layer = result.subLayers.layers[0]; layer.gamma = document.getElementById("gammaParam").value || 1; layerInfoService.setLayersInfo( - new maplibregl.supermap.SetLayersInfoParameters({ - layersInfo: result, - resourceID: newResourceID, - isTempLayers: true - }) - ).then((res) => { - map.style.sourceCaches['layer'].clearTiles(); - map.style.sourceCaches['layer'].update(map.transform); - map.triggerRepaint(); - }); + new maplibregl.supermap.SetLayersInfoParameters({ + layersInfo: result, + resourceID: newResourceID, + isTempLayers: true + }) + ).then((res) => { + map.style.sourceCaches['layer'].clearTiles(); + map.style.sourceCaches['layer'].update(map.transform); + map.triggerRepaint(); + }); } diff --git a/examples/openlayers/createTempLayer.html b/examples/openlayers/createTempLayer.html index 25c9fd6a6..8c9efa291 100644 --- a/examples/openlayers/createTempLayer.html +++ b/examples/openlayers/createTempLayer.html @@ -7,18 +7,19 @@ + - +
@@ -31,7 +32,7 @@
- +
var layer = result.subLayers.layers[0]; layer.gamma = document.getElementById("gammaParam").value || 1; layerInfoService.setLayersInfo( - new ol.supermap.SetLayersInfoParameters({ - layersInfo: result, - resourceID: newResourceID, - isTempLayers: true - }) - ).then((res) => { - tempLayer.getSource().updateParams(); - }); + new ol.supermap.SetLayersInfoParameters({ + layersInfo: result, + resourceID: newResourceID, + isTempLayers: true + }) + ).then((res) => { + tempLayer.getSource().updateParams(); + }); }