JSAPI 4.22 IdentifyParameters, layerIds not accepted

407
2
Jump to solution
02-03-2022 05:40 AM
AndreaKittler
New Contributor

Hi,

it seems as if in version 4.22 neither the parameter layerIds is accepted in the IdentifyParameters nor the layerOption "visible" is updated.
Example:
I want results from "Vorhaben", layerID 405
https://ims.kiel.de/extern/apps/Vorlage_js4/samples/identify422.html

This still works with version 4.21.
Example:
I want results from "Vorhaben", layerID 405
https://ims.kiel.de/extern/apps/Vorlage_js4/samples/identify421.html


MapImageServer "MIL" with
- Layer "Vorhaben": LayerId: 405, visible: 0
- Layer "Wohnungsbau-Vorhaben": LayerId: 395, visible: 1

Script:
// toggle Visibility
[...]
// set IdentifyParameters
[...]
// I want results from "Vorhaben"
identifyParams.layerIds = [405];
identifyParams.layerOption = "visible";
[...]

view onClick
-> I always (!) get results from layer 395 and never (!) from layer 405

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi @AndreaKittlerthis is a known issue that will be fixed at the next release (4.23). It should also be ready to test on nexthttps://github.com/Esri/feedback-js-api-next.

Here's a potential workaround: https://community.esri.com/t5/arcgis-api-for-javascript-questions/identify-not-honoring-layerids-sup...

 

View solution in original post

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Hi @AndreaKittlerthis is a known issue that will be fixed at the next release (4.23). It should also be ready to test on nexthttps://github.com/Esri/feedback-js-api-next.

Here's a potential workaround: https://community.esri.com/t5/arcgis-api-for-javascript-questions/identify-not-honoring-layerids-sup...

 

0 Kudos
AndreaKittler
New Contributor

Thank you very much, I didn't found it...

0 Kudos