Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  Remove raster layer from SSA map window

    Posted 10-08-2022 04:23
    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
    ------------------------------


  • 2.  RE: Remove raster layer from SSA map window

    Posted 10-08-2022 09:11

    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
    ------------------------------