import { AddNamedLayerDynamicallyStateAction, RemoveDynamicallyAddedNamedLayerAction } from 'src/app/common/store/actions/add-layer-actions';
// Layer is added
const layerInfo: NamedLayerData = this.mapLayerFactoryService.getNamedLayerData(namedLayer);
this.store.dispatch(AddNamedLayerDynamicallyStateAction(layerInfo));
// How can same layer be removed from map?
// Tried next function. Not working.
this.store.dispatch(RemoveDynamicallyAddedNamedLayerAction(layerInfo));
------------------------------
Mati Tee
Ruumab OÛ
TARTU
------------------------------
Original Message:
Sent: 10-08-2022 04:23
From: Mati Tee
Subject: Remove raster layer from SSA map window
Hi!
What command and syntax to use for remove raster map layer from SSA map Window?
We must add this function into SSA extensibility component.
Case: after adding a new maplayer the previous layer must be removed from map.
How to make it?
regards
-Mati Tee-
------------------------------
Mati Tee
Ruumab OÛ
TARTU
------------------------------