Select to view content in your preferred language

How do I create a geopoint with passed parameters?

963
2
10-22-2019 04:37 AM
JoeLivoti
Occasional Contributor

I have a survey that I have passed the latitude and longitude parameters from a point on the map. I need to create a geopoint from the lat and lon field. I would like to put in the default field. The lat and lon are already in decimal degrees. I've already read GeoPoints and Calculation on Geopoints and I'm still stuck. 

0 Kudos
2 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Joe, 

There are 2 ways to set the location of a point based on your description:

  • Include the location in the URL parameters using the center=<lat>,<lon> parameter
  • Calculate the geometry using something like concat(${lat},  ' ', ${lon})
ahargreaves_FW
Frequent Contributor

@JamesTedrick as posted here I opted to simply use the "&center=<lat>,<long>" option. This works to place the point on the correct location on the map within a survey. However, the warning message shown below pops up after a few seconds unnerving the user. Is there a way to suppress this somehow? (my Geopoint must remain editable so the user can fine tune the location)

ahargreaves_FW_0-1662583542700.png