INFO file does not retain modifications

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

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
MikeMillerGIS
Esri Frequent Contributor

This forum is for the utility configurations, for general help, I would suggest posting in Survey123 for ArcGIS

0 Kudos
CraigCarsley
Occasional Contributor II

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?

0 Kudos
FasilTiru
Esri Regular Contributor

Hi Craig,

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.

Thanks,

Fasil T.

Esri Support

HannahFerrier
Occasional Contributor III

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

FasilTiru
Esri Regular Contributor

Craig,

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!

Fasil

Esri Support

0 Kudos
FasilTiru
Esri Regular Contributor

Craig,

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.

offlinebasemap.PNG

If you are offline, you will not see the default ArcGIS Online basemaps.

Thanks,

Fasil T.

Esri Support

0 Kudos
CraigCarsley
Occasional Contributor II

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_1544619d72e244128559286a072..."

    }

}

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?

IMG_0004[1].PNG

0 Kudos
FasilTiru
Esri Regular Contributor

Craig,

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.

Fasil

0 Kudos
CraigCarsley
Occasional Contributor II

Fasil,

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

0 Kudos