Select to view content in your preferred language

How to create a esri map to allow users to select points, polygon or lines?

341
1
02-13-2024 07:21 PM
wangshen
New Contributor

Nice to meet everyone here. 

I am new. My company needs to create an application using Esri maps to allow users to select assets (points, polygons, segments) on it and send the object ID to the server side. Do you have any ideas on how to do it or any sample code to share?

thank you so much

Shen

0 Kudos
1 Reply
BlakeTerhune
MVP Regular Contributor

Here's an example. You can use the "click" event on the view instead of "pointer-move." Then do some Ajax thing to send the ObjectID to your server; consider the native Fetch API.

0 Kudos