Select to view content in your preferred language

Pass Through Map Scale to Feature Report

476
2
05-10-2023 06:06 AM
jzibbell_boise
Occasional Contributor

I am creating a form for building pre-plans that will include an aerial map of the building. Do I have to set a standard scale that will accommodate the footprint of the largest building, or is there a way to have the user set the scale while filling the form out and it could be passed through to the feature report?

0 Kudos
2 Replies
jzibbell_boise
Occasional Contributor

I got this reply from esri after I emailed them directly. I still need to try it out. 

I think you could achieve the goal in either of the following approach:

  • If the map scale is submitted as a question in the survey (e.g. mapScale1), you can use the place holder ${location | size:400:300 | mapScale:mapScale1} to use the value of “mapScale1” field as the map scale. You can refer to the example “${$image | src:https://barcode.tec-it.com/barcode.ashx?code=QRCode&data=+field_0}” in the documentation. Any word without quotation in a method parameter would be evaluated as a field name.
  • If you are using the Survey123 Report REST API to create a report, you can set the mapScale API parameter to overwrite the scale for all maps in a report. You can use the !important keyword in the template to take precedence over the API parameter.
jzibbell_boise
Occasional Contributor

I wanted to add an additional note that in order to collect an "other" scale from your user I had to create two map rows and make them conditional. That worked well.

 

jzibbell_boise_0-1699915560998.png

 

0 Kudos