INFO file does not retain modifications

5008
26
01-13-2016 09:51 AM
CraigCarsley
Occasional Contributor

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

{
     "displayInfo": {
       "map": {
         "mapTypes": {
            "append": false,
            "includeLibrary": true,
            "mapSources": [
               {
                 "url": "http://www.arcgis.com/home/item.html?id=221a6aab56804a988a94ec9f82a063e7",
                 "storeInMapLibrary": false
               },
               {
                 "url": "http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a",
               }
           ]
         }
       }
     }
   }

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.

Tags (1)
0 Kudos
26 Replies
FasilTiru
Esri Contributor

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:

code.PNG

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

download.PNG

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.

service.PNG

Fasil

Esri Support

0 Kudos
CraigCarsley
Occasional Contributor

Fasil,

Is it necessary to upload the tile package to ArcGIS Online? Ours is about 32GB; I believe that exceeds the limitation.

0 Kudos
DougBrowning
MVP Frequent Contributor

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.

0 Kudos
CraigCarsley
Occasional Contributor

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.survey123docs.JPG

0 Kudos
DougBrowning
MVP Frequent Contributor

I use Android so it may be different.  On the main screen in Survey123 app there is a menu button at the top right.  In there use Settings.  Then at the bottom there is a section Map Library Folder.

0 Kudos
CraigCarsley
Occasional Contributor

It sounds exactly like iOS.  When I open the Map Library, though, I don't see anything and can't do anything besides Sign Out.  Do you see any more than this?

maplibrary.PNG

0 Kudos
DougBrowning
MVP Frequent Contributor

I have a page before that page that says Settings at the top.  Then at the bottom a file location

0 Kudos
BrittneyGibbons
New Contributor III

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.

0 Kudos
HannahFerrier
Regular Contributor

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

0 Kudos
BrittneyGibbons
New Contributor III

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:

   {
     "displayInfo": {
       "map": {
         "mapTypes": {
            "append": false,
            "includeLibrary": false,
            "mapSources": [
               {
                 "url": "http://www.arcgis.com/home/item.html?id=9a7e015149854c35b5eb94494f4aeb89
",
                 "storeInMapLibrary": false
               },
               {
                 "url": "http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a"
               }
           ]
         }
       }
     }

   }

(from the post Prepare basemaps for offline use )

0 Kudos