Select to view content in your preferred language

JSAPI 4.22 IdentifyParameters, layerIds not accepted

564
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
0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor
0 Kudos
AndreaKittler
New Contributor

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

0 Kudos