操作方法
In ArcGIS Survey123, the recommended way to associate an offline map with a survey is to link a shared map package, but if required, you can also manually associate a shared map package to a survey by editing the survey's .info file. If you've already uploaded the survey to ArcGIS, you'll already have an .info file you can edit. If you haven't already uploaded your survey to ArcGIS, you can create an .info file with the following information. It is recommended to publish the survey once to generate this file.
To associate a shared map package to your survey, complete the following steps:
If you haven't already uploaded this survey to ArcGIS, this file does not exist. You can create a file called MySurvey.info, where MySurvey is the name of the survey. If the file already exists, when editing this file in the text editor, ensure that Survey123 Connect is closed. If Survey123 Connect is open, your edits may be lost when closing the text editor.
This snippet should be placed within the first layer of brackets in MySurvey.info.
"displayInfo": { "map": { "mapTypes": { "append": false, "includeLibrary": false, "mapSources": [ { "name": "Imagery Basemap", "url": "http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a", "storeInMapLibrary": false } ] } } },
Your MySurvey.info file contents should now look something like this (note that your information under serviceInfo will be different):
{ "displayInfo": { "map": { "mapTypes": { "append": false, "includeLibrary": false, "mapSources": [ { "name": "Imagery Basemap", "url": "http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a", "storeInMapLibrary": false } ] } } }, "serviceInfo": { "itemId": "7a0c8f6025ad4801b684a19682d6d037", "type": "Feature Service", "url": "http://services.arcgis.com/FQD0rKU8X5sAQfh8/arcgis/rest/services/service_922426e4ec964f26abf82c20ec8dd988/FeatureServer" } }
It is critical that you ensure the syntax in this file is correct. It is recommended that you use a JSON validator tool to confirm this. An online example is JSONLint. Other properties can exist in your .info file, but only properties of displayInfo must be modified when associating map packages.
The following are the optional properties you can define when managing map packages in your surveys:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序