itowns 2.42.1-next.6 → 2.42.1-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -218,16 +218,19 @@ function updateLayeredMaterialNodeElevation(context, layer, node, parent) {
|
|
|
218
218
|
}, err => (0, _handlerNodeError.default)(err, node, layer, targetLevel, context.view));
|
|
219
219
|
}
|
|
220
220
|
function removeLayeredMaterialNodeLayer(layerId) {
|
|
221
|
+
/**
|
|
222
|
+
* @param {TileMesh} node - The node to udpate.
|
|
223
|
+
*/
|
|
221
224
|
return function (node) {
|
|
222
225
|
var _node$material;
|
|
223
226
|
if ((_node$material = node.material) !== null && _node$material !== void 0 && _node$material.removeLayer) {
|
|
224
|
-
node.material.
|
|
225
|
-
if (node.material.elevationLayerIds[0] == layerId) {
|
|
227
|
+
if (node.material.elevationLayerIds.indexOf(layerId) > -1) {
|
|
226
228
|
node.setBBoxZ({
|
|
227
229
|
min: 0,
|
|
228
230
|
max: 0
|
|
229
231
|
});
|
|
230
232
|
}
|
|
233
|
+
node.material.removeLayer(layerId);
|
|
231
234
|
}
|
|
232
235
|
if (node.layerUpdateState && node.layerUpdateState[layerId]) {
|
|
233
236
|
delete node.layerUpdateState[layerId];
|