Get LayerID from URL Server with Layer Name Arcgis api for JS 4.16

149
0
12-09-2021 02:40 AM
benchikh
New Contributor III

Hi,

Is there any way to get the layerID from my service with his layer name, Im working with Arcgis api 4.21 JS

for example:

for Layer Name = "Landscape_Trees" .... I want to get the ID=0

https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/Landscape_Trees/FeatureServer/

 

0 Kudos
0 Replies