Select features after creating buffer
Hello,
I am looking to select features after creating a buffer. I found and followed a template/workflow for this task, and was able to select from Fire Hydrants layer. Cool.
Now, how do I select from my layer?
I'm stuck at “Layer Id”. I can't seem to figure out what this is actually looking for… I went to ArcGIS REST Services Directory and tried Service Item Id, Name, and any URL I could find. Everything results in null.
-
Hi Alexander,
The Layer ID is the unique identifier of a layer within an Esri WebMap. You can find more details about layer specifications and the
id
property here: Esri WebMap Layer Specification.To find the Layer IDs in your webmap, you can use the VertiGIS Studio Item Manager. Here’s an example of what it looks like:
Additionally, according to the help documentation, “The ID of the layer to be retrieved. In applications that use the 4.x ArcGIS Maps SDK for JavaScript, the title of the layer is also searched if no matching ID is found.” This means you can use the layer name if it’s easier for you. Just be mindful of duplicate names to avoid any confusion.
Hope this helps!
1 -
Hello,
Thank you for pointing me in the right direction. Something still seems to be missing though.
I got ID by:
- Go to <Portal URL>/<Adapter>/sharing/rest/generateToken
- Select “Webapp URL” and enter <Portal URL>/<Adapter>/sharing/rest/content/items/<WebMap ID found in Portal>/data
- Click “Generate Token” and copy result
- Go to <Portal URL>/<Adapter>/sharing/rest/content/items/<WebMap ID found in Portal>/data?f=json&token=<Token>
This gave me a json result with ID:
I used this ID in the workflow, and the error disappeared, and the Workflow was able to complete. However, no features were selected:
Workflow:
1 -
Got it!
Needed to add the URL (found in the JSON imaged above) to the “Url” field of Query Layeri (also imaged above).
Now I just need to create a report to summarize the results ^^
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer