Query task - hard code a geometry
I would like to hard code a geometry within a query task to easily run a workflow in the simulator mode.
Below is the query task but I cannot figure out the syntax for the Geometry if I just want to hard code an x,y coordinate. I feel like I have tried everything but always receive a compiler error.
What do I put in the geometry field?
(I tried to load an image, but for some reason loading an image doesn't seem to work in Chrome. See next post for image).
0
-
Apparently I am unable to upload an image from any browser at the moment. Anyone else experiencing this? 0 -
You should be able to set the geometry to a new mappoint.
geometry variable of type ESRI.ArcGIS.Client.Geometry.Geometry
eggeometry = new MapPoint(151,-33.1)
in workflow:
ps I could add an image :)0 -
Ugh! I could have sworn I tried that. But, yet when I tried again this morning, it worked. Thank you!
Hey - I can upload pictures this morning, too! Nothing was working yesterday and I sent something to GC. I'll probably be fussed at for this non-forum related photo.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare