Select to view content in your preferred language

MapImageLayer - problem with opacity

203
0
03-01-2024 04:51 AM
Jakar
by
New Contributor

Hi, 

i have a MapImageLayer with sublayers. It contains sublayers with multiple nesting of other sublayers. The problem lies in the fact that the transparency setting works only in the map image layer and the last sublayers in the hierarchy (leaves). For example, property visible works, but transparency does not. Map or the layer was not redrawn. Tested on 4.28 and 4.29 version of Javascript SDK.

Example:

 

 

const mapImageLayer = {
    type: 'map-image',
    opacity: 1, // OK
    sublayers: [
      {
        type: 'sublayer',
        opacity: 1, // NOT WORKING
        sublayers: [
          {
            type: 'sublayer',
            opacity: 1, // OK
            sublayers: null
          }
        ]
      },
      {
        type: 'sublayer',
        opacity: 1, // OK
        sublayers: null
      }
    ]
  };
};

 

 

 

0 Kudos
0 Replies