Select to view content in your preferred language

Auto-Populate Map Extent in Feature Report

175
2
10-04-2024 02:17 PM
Blevins_Mark
Frequent Contributor

I have a survey123 workflow where i want to populate the extent of the map in the feature report based on a survey question for a permit area..so if they pick permit area x, the extent question in the survey auto-populates with y...the calculation is working correctly but the map never changes extent. the syntax for my map is 

${location | map:” f4c5c940e9c94a43848c55a8b0b8534e”| size:600:0 | mapExtent: mapextentjmb}

where mapextentjmb = the question from my survey that is getting populated based on the area selected.

if i just put in the extent for example the report gets generated correctly:

${location | map:” f4c5c940e9c94a43848c55a8b0b8534e”| size:600:0 | mapExtent: -70:25:-120:50:4326}

am I not calling the mapextent question from the survey correctly? i thought I was according to ESRI's documentation...something else wrong with the syntax?

 

thanks

0 Kudos
2 Replies
ChristopherCounsell
MVP Regular Contributor

An extent is typically a polygon, not a point. You need x,y min AND maximum values - four in total.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-print-web-maps-in/...

${geopoint1 | mapExtent:116.440:39.955:116.468:39.971}
mapExtent:<xmin>:<ymin>:<xmax>:<ymax>:<wkid>

If you are prefilling the mapExtent value based on the question logic (and not a dynamic location input) it should be easy enough to adjust with next values.

0 Kudos
Blevins_Mark
Frequent Contributor

My apologies I just messed up on my post…I do have both the min max and wkid values in my calculation

0 Kudos