Add coordinates as point in feature service
the workflow that I have in mind is having the user fill out the form and then enter the coordinates of the point and have the map zoom to that location, and then add it as the spatial location of the point. It's survey grade points so it needs to be the exact coordinates they type in and not picked from the map.
0
-
Get the x and y as type double.
then an assign activity:
geometry = new MapPoint(x,y)
or
geometry = new MapPoint(x,y, spatialreference)
where spatialreference is an object with the needed spatialreference.
For example spatialreference = new SpatialReference(4326)
Then you have a MapPoint geometry to pan / zoom to and save to a Featureservice.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar