Spectrum Spatial (SSA/LIM)

 View Only
  • 1.  Layer setVisible in extensibility

    Posted 06-29-2023 10:27
    HiI am developing an extension for SSA with extensibility.
    I can't make a layer of my project visible in SSA by code.
    I try to use the method setVisible for layer object
     mylayer.setVisible(true);
    nothing happens on the map.
    But, if I try
    mylayer.setVisible(false);
    on a visible layer, it is ok !!
    Is it necessary to refresh map ?And how ?

    Regards

    Laurent



    ------------------------------
    Laurent Maumet
    GEO RM
    JAUNAY-CLAN
    ------------------------------


  • 2.  RE: Layer setVisible in extensibility

    Posted 07-17-2023 04:09

    Hi

    To complete my problem, 

    it is possible to define the visibility in the NGRX shop, does anyone have an example?

    Regards

    Laurent



    ------------------------------
    Laurent Maumet
    GEO RM
    JAUNAY-CLAN
    ------------------------------