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
An extent is typically a polygon, not a point. You need x,y min AND maximum values - four in total.
${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.
My apologies I just messed up on my post…I do have both the min max and wkid values in my calculation