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/