Select to view content in your preferred language

definitionExpression not applying to the group layers (MapImageLayer, 4.24 JS API, Seems like bug)

450
0
10-09-2023 08:19 PM
Tulasiram7
New Contributor

Hi Community Members/Experts,

I have a MapImageLayer as shown below,

ANNOTATION (0)
  Group layer 1 (1)
    Sub layer 1 (2)
    Sub layer 2 (3)
  Group layer 2 (4)
          Sub layer 3 (5)
    Sub layer 4 (6)
    Sub layer 5 (7)
    Sub layer 6 (8)
  Group layer 3 (9)
    Sub layer 31 (10)
    Sub layer 32 (11)
    Sub layer 33 (12)
    Sub layer 34 (13)
    Sub layer 35 (14)
DEVICES (37)
  Sub layer 11 (38)
  Sub layer 12 (39)
  Sub layer 13 (40)
  Sub layer 14 (41)
  Sub layer 15 (42)
  Sub layer 16 (65)
  Sub layer 17 (43)
  Sub layer 18 (44)
  Sub layer 19 (45)
  Sub layer 20 (46)
  Sub layer 21 (47)
  Sub layer 22 (48)
  Sub layer 23 (49)

I have loop through and I have applied defnitionExpression for each sub & group layers which has attribute fields, When I see the request data from developer tools, the definition query is applied only to the Sub layer 11 to 23(Layer Indexes 38 onwards), but where as Group layer 1,2 & 3 does not have definitionExpression, it seems it is not applying on layers which has sub layers, please see the request data below, it starts from layer index 38, but layer Indexes 1,4 & 9 are not there even though I have applied definitionExpression.

Request data from Dev Tools,

Tulasiram7_0-1696906591579.png

Please find below screenshot that we have applied definitionExpression for group layers.

Tulasiram7_1-1696907095686.png

All the requests on MapServer/export does not have definitionExpression for Group layer 1,4 & 9, hence the features were not filtered from map, where if I append to the get request manually and sent request to server in a separate browser window, I could able get proper response. 

I appreciate your help or support.

Thanks.

 

 

0 Kudos
0 Replies