| 996 | * @return {!ee.api.TilesetMaskBand} |
| 997 | */ |
| 998 | const convertMaskConfig = (maskConfig) => { |
| 999 | let bandIds = []; |
| 1000 | if (maskConfig != null && Array.isArray(maskConfig['bandId'])) { |
| 1001 | bandIds = maskConfig['bandId'].map((bandId) => bandId || ''); |
| 1002 | } |
| 1003 | // TODO(user): Tileset ID is always set to the default of the empty |
| 1004 | // string, if we decide to set the tilesetId on the OnePlatform tileset |
| 1005 | // we need to change this. |
| 1006 | return new ee.api.TilesetMaskBand({tilesetId: tileset['id'] || '', bandIds}); |
| 1007 | }; |
| 1008 | |
| 1009 | tileset['fileBands'].forEach((fileBand) => { |
| 1010 | if (fileBand['maskForAllBands']) { |