Plot coordinates from QueryTask
I am working on a workflow that queries a table where some of the results have lat/lon coordinates, I would then like the results that do have lat/lon to be plotted on the map (but not as a feature service). I am looking for some help as to which activities I would need to use after my query runs.
Any help is much appreciated.
0
-
This is just one way: - Use a For Each to loop over the features that are returned from the Query Task
- Inside the For Each, use Run External Command with Command Name = "AddMarkupGeometry" or "AddTemporaryMarkupGeometry", and Parameter = New MapPoint(CType(item.Attributes("lon"), Double), CType(item.Attributes("lat"), Double), New SpatialReference(4326))
0 -
Berend
Sorry for the delayed response and thanks for the suggestion, I will have to see if I can make that work.
Josh0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare