<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map not loading (Lines and polygons example) when using multiple calculations in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/map-not-loading-lines-and-polygons-example-when/m-p/1132279#M39655</link>
    <description>&lt;P&gt;Hi Kelin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't fully understand your question, but it sounds pretty close to a few implementations I have and possibly an untested idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First off, your example (&lt;SPAN&gt;${vertices} +&amp;nbsp;${one_location}) won't work because you need to format the geometry string perfectly.&amp;nbsp; See &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/geotracegeoshape.htm" target="_self"&gt;this esri article&lt;/A&gt;, under "Defaults and expressions", for an example of the &lt;STRONG&gt;exact&lt;/STRONG&gt; format this string needs to be in.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;-37.842156723211474 144.95942945338243; -37.83554486071995 144.9726235713864; -37.85681405373047 144.98240735651922; -37.85954045531896 144.97715349053766&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You want to use concatenate for this example.&amp;nbsp; If we assume that your ${vertices} field contains a perfectly formatted string of vertices and you want to add an additional vertex called ${one_location that is also perfectly formatted, you could do something like this in a calculate field and then point your geoshape calculate column at it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;concat(${vertices},' ',${one_location})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(for reference, here's a functional calculate from one of my forms where I'm finding the min/max lat/lon value across a repeat to generate a work extents geoshape:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;concat(${max_lat},' ',${min_lon},';',${max_lat},' ',${max_lon},';',${min_lat},' ',${max_lon},';',${min_lat},' ',${min_lon})&lt;/P&gt;&lt;P&gt;IF You have multiple geo_____ questions in your survey - Make sure that the geoshape question where you are actually storing geometry and uploading to your feature layer is the FIRST geo____ question in your survey.&amp;nbsp; If you have other geo questions in your survey, even if they are set to &amp;lt;null&amp;gt;, make sure they're lower down in the XLS than the one that will be storying the geometry.&amp;nbsp; I had an issue a few weeks ago where this was preventing my geoshape from being pushed to the feature layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as the ability to let your users select which method they want to use, I've been brainstorming this as well.&amp;nbsp; The early forms that I had set up all require a photo attachment and the location of the geopoint (in a repeat) is set up to extract the image's geotags and use those (because I wanted to be able to use drone imagery).&amp;nbsp; The updated forms I'm working on just pull from the device's GPS instead.&amp;nbsp; I wanted to add the option to let people select which to use, but all of the implementations I've tried so far end up as a pretty clunky user experience.&amp;nbsp; &amp;nbsp;Assuming that's a similar sort of situation for you, you're welcome to try out an untested idea that I haven't gotten to yet:&lt;/P&gt;&lt;P&gt;1. ${upload_geoshape} - The Geoshape that will ultimately be uploaded/used&lt;/P&gt;&lt;P&gt;2. ${select_method} - Select_one question that the user sees based on your options&lt;/P&gt;&lt;P&gt;3. ${method_1}, ${method_2}, ${method_3} - 3x different geoshape questions with bind::type set to null and the relevant column based on the user's ${select_method}&lt;/P&gt;&lt;P&gt;4. A calculate field that handles the IF statement and pulls the geometry from whichever selected method (and geoshape) that the user selects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could hide #1 in a collapsed group or something at the beginning of the form, and 2-4 would be in their own group.&amp;nbsp; The user would only see the select_one ${select_method} question initially.&amp;nbsp; When they select the option, the relevant geoshape question would appear.&amp;nbsp; &amp;nbsp;The geometry they input would then be extracted by the calculate field (#4) and used to populate your ${upload_geoshape} question that the user wouldn't even see.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again....that process is untested, but I'm pretty sure it'll work.&amp;nbsp; The only reason I haven't implemented it on my forms yet is because they're for field users to go out and collect a lot of points in a short amount of time and I'm trying to minimize clicks and button presses for them.&amp;nbsp; I know that most of them aren't going to want to be forced to select an option each&amp;nbsp; time and if I were to use a default option the ${upload_geoshape} question, I'd still have to ask them to hit the "recalculate" button if they changed it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 00:39:44 GMT</pubDate>
    <dc:creator>DerrickWestoby</dc:creator>
    <dc:date>2022-01-11T00:39:44Z</dc:date>
    <item>
      <title>Map not loading (Lines and polygons example) when using multiple calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/map-not-loading-lines-and-polygons-example-when/m-p/1130800#M39553</link>
      <description>&lt;P&gt;Hi, I want to create a question where I can choose different inputs to create the area extend in a geoshape.&lt;/P&gt;&lt;P&gt;Therefor I have a single choise list, where I can choose:&lt;BR /&gt;1. Use multiple vertices&lt;BR /&gt;2. Use one location&lt;BR /&gt;3. Draw on a map&lt;/P&gt;&lt;P&gt;so by having multiple calculations ${vertices} +&amp;nbsp;${one_location} going into the geoshape, seems to make the map keep loading in the webform, is it possible to make this work at all?&lt;/P&gt;&lt;P&gt;I can see that is the same if I publish the line and polygon example, some of the maps are just loading and nothing is happening.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this is a failure in the map, and not the data model, is it then posible to render multiple maps, going to the same geoshape question?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 14:39:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/map-not-loading-lines-and-polygons-example-when/m-p/1130800#M39553</guid>
      <dc:creator>kelin84</dc:creator>
      <dc:date>2022-01-05T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map not loading (Lines and polygons example) when using multiple calculations</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/map-not-loading-lines-and-polygons-example-when/m-p/1132279#M39655</link>
      <description>&lt;P&gt;Hi Kelin,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't fully understand your question, but it sounds pretty close to a few implementations I have and possibly an untested idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First off, your example (&lt;SPAN&gt;${vertices} +&amp;nbsp;${one_location}) won't work because you need to format the geometry string perfectly.&amp;nbsp; See &lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/geotracegeoshape.htm" target="_self"&gt;this esri article&lt;/A&gt;, under "Defaults and expressions", for an example of the &lt;STRONG&gt;exact&lt;/STRONG&gt; format this string needs to be in.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;-37.842156723211474 144.95942945338243; -37.83554486071995 144.9726235713864; -37.85681405373047 144.98240735651922; -37.85954045531896 144.97715349053766&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You want to use concatenate for this example.&amp;nbsp; If we assume that your ${vertices} field contains a perfectly formatted string of vertices and you want to add an additional vertex called ${one_location that is also perfectly formatted, you could do something like this in a calculate field and then point your geoshape calculate column at it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;concat(${vertices},' ',${one_location})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(for reference, here's a functional calculate from one of my forms where I'm finding the min/max lat/lon value across a repeat to generate a work extents geoshape:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;concat(${max_lat},' ',${min_lon},';',${max_lat},' ',${max_lon},';',${min_lat},' ',${max_lon},';',${min_lat},' ',${min_lon})&lt;/P&gt;&lt;P&gt;IF You have multiple geo_____ questions in your survey - Make sure that the geoshape question where you are actually storing geometry and uploading to your feature layer is the FIRST geo____ question in your survey.&amp;nbsp; If you have other geo questions in your survey, even if they are set to &amp;lt;null&amp;gt;, make sure they're lower down in the XLS than the one that will be storying the geometry.&amp;nbsp; I had an issue a few weeks ago where this was preventing my geoshape from being pushed to the feature layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as the ability to let your users select which method they want to use, I've been brainstorming this as well.&amp;nbsp; The early forms that I had set up all require a photo attachment and the location of the geopoint (in a repeat) is set up to extract the image's geotags and use those (because I wanted to be able to use drone imagery).&amp;nbsp; The updated forms I'm working on just pull from the device's GPS instead.&amp;nbsp; I wanted to add the option to let people select which to use, but all of the implementations I've tried so far end up as a pretty clunky user experience.&amp;nbsp; &amp;nbsp;Assuming that's a similar sort of situation for you, you're welcome to try out an untested idea that I haven't gotten to yet:&lt;/P&gt;&lt;P&gt;1. ${upload_geoshape} - The Geoshape that will ultimately be uploaded/used&lt;/P&gt;&lt;P&gt;2. ${select_method} - Select_one question that the user sees based on your options&lt;/P&gt;&lt;P&gt;3. ${method_1}, ${method_2}, ${method_3} - 3x different geoshape questions with bind::type set to null and the relevant column based on the user's ${select_method}&lt;/P&gt;&lt;P&gt;4. A calculate field that handles the IF statement and pulls the geometry from whichever selected method (and geoshape) that the user selects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could hide #1 in a collapsed group or something at the beginning of the form, and 2-4 would be in their own group.&amp;nbsp; The user would only see the select_one ${select_method} question initially.&amp;nbsp; When they select the option, the relevant geoshape question would appear.&amp;nbsp; &amp;nbsp;The geometry they input would then be extracted by the calculate field (#4) and used to populate your ${upload_geoshape} question that the user wouldn't even see.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again....that process is untested, but I'm pretty sure it'll work.&amp;nbsp; The only reason I haven't implemented it on my forms yet is because they're for field users to go out and collect a lot of points in a short amount of time and I'm trying to minimize clicks and button presses for them.&amp;nbsp; I know that most of them aren't going to want to be forced to select an option each&amp;nbsp; time and if I were to use a default option the ${upload_geoshape} question, I'd still have to ask them to hit the "recalculate" button if they changed it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 00:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/map-not-loading-lines-and-polygons-example-when/m-p/1132279#M39655</guid>
      <dc:creator>DerrickWestoby</dc:creator>
      <dc:date>2022-01-11T00:39:44Z</dc:date>
    </item>
  </channel>
</rss>

