Goal: Use a tile package as an offline basemap. (Tile package is already loaded to Survey123 on iPad 2)
Tried: Adding the following snippet to INFO file
Problem: INFO file resets to default whenever I try publishing the survey. I don't think the "append": true parameter is being published along with the survey.
Question: Is this an issue with Beta, or have I missed a step?*
*Note: I see there is a pending app update set for release next week (01/18/16) and will plan to see if anything changes.
Turned out to be the 2GB limit - that is why it would not show. It was a TPK file.
Hi Doug,
Just to check, is Survey123 Connect active on the form when you attempt to modify the .info file? That will prevent edits from other applications to be made on .info file.
Did you ever get this working? Zero luck here either.
I am experiencing the same problem. My use case is for a survey123 field application which will require offline access to a .tpk
There are many possible 1/2 degree tpks with high resolution imagery. The user will need to download the tile they need and copy to the appropriate directory on their device. When I try to follow the directions here Prepare basemaps for offline use—Survey123 for ArcGIS | ArcGIS under the "Copy your tile package directly to your device" heading, no luck.
Like others, when I modify the .info JSON it continues to be overwritten when republished. I see some others have gotten closer by linking to a tile layer, but that will not support my use case.
Any help is much appreciated.
Kind regards
Please try this sample instead:
<SPAN class="p">{</SPAN><BR /> <SPAN class="nt">"displayInfo"</SPAN><SPAN class="p">:</SPAN> <SPAN class="p">{</SPAN><BR /> <SPAN class="nt">"map"</SPAN><SPAN class="p">:</SPAN> <SPAN class="p">{</SPAN><BR /> <SPAN class="nt">"mapTypes"</SPAN><SPAN class="p">:</SPAN> <SPAN class="p">{</SPAN><BR /> <SPAN class="nt">"append"</SPAN><SPAN class="p">:</SPAN> <SPAN class="kc">false</SPAN><SPAN class="p">,</SPAN><BR /> <SPAN class="nt">"includeLibrary"</SPAN><SPAN class="p">:</SPAN> <SPAN class="kc">false</SPAN><SPAN class="p">,</SPAN><BR /> <SPAN class="nt">"mapSources"</SPAN><SPAN class="p">:</SPAN> <SPAN class="p">[</SPAN><BR /> <SPAN class="p">{</SPAN><BR /> <SPAN class="nt">"name"</SPAN><SPAN class="p">:</SPAN> <SPAN class="s2">"Imagery Basemap"</SPAN><SPAN class="p">,</SPAN><BR /> <SPAN class="nt">"url"</SPAN><SPAN class="p">:</SPAN> <SPAN class="s2"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D4497b7bb42e543b691027840d1b9092a" target="_blank">http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a</A><SPAN>"</SPAN></SPAN><SPAN class="p">,</SPAN><BR /> <SPAN class="nt">"storeInMapLibrary"</SPAN><SPAN class="p">:</SPAN> <SPAN class="kc">false</SPAN><BR /> <SPAN class="p">}</SPAN><BR /> <SPAN class="p">]</SPAN><BR /> <SPAN class="p">}</SPAN><BR /> <SPAN class="p">}</SPAN><BR /> <SPAN class="p">}</SPAN><BR /><SPAN class="p">}</SPAN>
Hi Hannah,
Thanks very much for the quick response. I ran the code through JSONLint and no errors were found. I also tried using the sample code below with the same results:
{<BR /> "displayInfo": {<BR /> "map": {<BR /> "mapTypes": {<BR /> "append": false,<BR /> "includeLibrary": false,<BR /> "mapSources": [<BR /> {<BR /><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"> "url": "<A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D9a7e015149854c35b5eb94494f4aeb89" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank">http://www.arcgis.com/home/item.html?id=9a7e015149854c35b5eb94494f4aeb89</A></SPAN><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;">",</SPAN><BR /> "storeInMapLibrary": false<BR /> },<BR /> {<BR /><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"> "url": "</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D4497b7bb42e543b691027840d1b9092a" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank">http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a</A><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;">"</SPAN><BR /> }<BR /> ]<BR /> }<BR /> }<BR /> }
{<BR /> "displayInfo": {<BR /> "map": {<BR /> "mapTypes": {<BR /> "append": false,<BR /> "includeLibrary": false,<BR /> "mapSources": [<BR /> {<BR /><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"> "url": "<A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D9a7e015149854c35b5eb94494f4aeb89" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank">http://www.arcgis.com/home/item.html?id=9a7e015149854c35b5eb94494f4aeb89</A></SPAN>
<SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;">",</SPAN><BR /> "storeInMapLibrary": false<BR /> },<BR /> {<BR /><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"> "url": "</SPAN><A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3D4497b7bb42e543b691027840d1b9092a" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank">http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a</A><SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;">"</SPAN><BR /> }<BR /> ]<BR /> }<BR /> }<BR /> }
</CODE><CODE> }
(from the post Prepare basemaps for offline use )
Hi Brittney,
Please check that your JSON is valid. I use an online JSON Validator to make sure my syntax is all good.
The .info file will keep overwriting itself if your JSON is invalid.
- Hannah
I am also experiencing a similar problem when trying to edit the info file. I add the lines to the file, but once I publish the survey, the info file is overwritten. I have been able to successfully load the tile packages directly to the device, but it would be helpful to be able to use the shared data available online.
How do you give Survey123 the directory?
I copied the TPK to the Survey123 app using iTunes, but I haven't found a way to get it showing up anywhere.
I have uploaded TPKs up to 70GB to AGO. You just need to use the Share Package tool.
But no you do not have to upload anything if you have another way to get them on the tablet. We use a 3rd party app that already had 30gb and 70+ tpk files sitting on our tablet SD Card. All I did was give Survey123 the directory on the sd card and all my TPKs appeared.
Fasil,
Is it necessary to upload the tile package to ArcGIS Online? Ours is about 32GB; I believe that exceeds the limitation.
Craig,
Let's try this method then:
1. Upload your tile package to ArcGIS Online My Content (uncheck the option to publish)
2. Copy the URL (For example: http://ess.maps.arcgis.com/home/item.html?id=ec54ab5ca97a441d9482292694989101 )
3. Open the .info file and delete everything and paste your code here. Make sure that you add the URL of your own tile package here. The code should look like this:
4. Save the file and publish your service.
5. On the iPad, downlaod your survey, and open it.
6. Click the menu and Download Maps
7. You will see your tile package listed here for download.
8 When you click Collect, the map will be loaded for you.
9. Just for your reference. After you publish the survey, the info file will look like this. The second URL is the feature service.
Fasil
Esri Support
Yes, I saw your above response. I don't see any map section I can't click on.
If you're referring to this, I can't get it to do anything..
I'm not sure if you saw my other response above. If you already have the Tile Package loaded on the device for offline use, you don't have to make any changes on the .info file. Just publish your survey > download the survey on your device > click Collect > click on the map section > click on the menu on the top right corner > and select your tile package.
Please follow the steps mentioned this blog (Prepare basemaps for offline use ) to copy your tile package to the device.
Thanks Fasil.. and thanks Hannah.
Regarding the .info file, I tried this again and achieved different results, though still not what I expected.
I tried deleting everything that exists in the .info file, and pasted the snippet you posted. When I republished the survey, the .info file was modified again, and it now only has the following code:
{
"serviceInfo": {
"itemId": "4add4aaee47847508b3795228529ebfd",
"type": "Feature Service",
"url": "http://services.arcgis.com/pDAi2YK0L0QxVJHj/arcgis/rest/services/service_1544619d72e244128559286a072e8975/FeatureServer"
}
Regarding the map types menu, how do I access that menu? I'm using an iPad, and I haven't been able to find anything like it. This is all I see..
I'm using an iPad 2, version 9.0.2. I'm signed into the Survey123 app as the same user that published the survey. I haven't seen an update for the app since January 5th- has any been released since then?
Just FYI...If you already have the Tile Package loaded on the device for offline use, you don't have to make any changes on the .info file. Just publish your survey > download the survey on your device > click Collect > click on the map section > click on the menu on the top right corner > and select your tile package.
If you are offline, you will not see the default ArcGIS Online basemaps.
Thanks,
Fasil T.
Thanks Hannah for the tip. I used http://jsonlint.com/ to validate the code snippet, and found out that there was an issue. Remove the coma after the second URL string as follows and everything should work fine as expected.
"displayInfo": {
"map": {
"mapTypes": {
"append": false,
"includeLibrary": false,
"mapSources": [{
"url": "http://www.arcgis.com/home/item.html?id=221a6aab56804a988a94ec9f82a063e7",
"storeInMapLibrary": false
}, {
"url": "http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a"
}]
I hope it helps!
Hi Craig,
Be sure to check that your JSON is valid by passing your code through an online JSON validator.
This happens to me all the time - I have forgotten a comma or a closing bracket and after publishing the survey to ArcGIS Online, the file will have removed the bad JSON.
Let me know if this helps,
Hannah
We are currently testing the workflow mentioned in this blog:Prepare basemaps for offline use to make sure that everything is working as expected. We'll get in touch soon.
That was my intention when I initially posted the message. I asked a question directly from the Survey123 for ArcGIS page, but when I clicked "In a place," the only option was "Utility Survey 123 Configurations."
I just tried moving the discussion, and this is as close as I get:
Any other advice?
This forum is for the utility configurations, for general help, I would suggest posting in Survey123 for ArcGIS
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.