# Usage example 1: Get the basemap used in the web map from arcgis.mapping import WebMap wm = WebMap(wm_item) wm.basemap >> {"baseMapLayers": [ {"id": "defaultBasemap", "layerType": "ArcGISTiledMapServiceLayer", "url": "https://services.arcgisonline.com/ArcGIS/rest/services/World_...
An ArcGIS web map is an interactive display of geographic information that you can use to tell stories and answer questions. For example, you may find or create a map that addresses the question, How many people in the United States live within a reasonable walk or drive to a supermarket?
new WebMap(properties) Parameter properties Object optional See the properties for a list of all the properties that may be passed into the constructor. Example // Typical usage const map = new WebMap({ portalItem: { id: "e691172598f04ea8881cd2a4adaa45ba" } }); Property Overview An...
运行脚本工具时,JSON 字符串可复制并粘贴到Web_Map_as_JSON输入参数中。但是,必须移除字符串中的换行符,该字符串才能成为有效输入。以下是一个移除了换行符的示例 JSON 字符串: {"layoutOptions": {"titleText": "Simple WebMap JSON example"},"operationalLayers": [{"url": "http://maps1.arcgisonline....
Offline settings configured by the author of an online web map (if appropriate). Offline settings optimize the data that is delivered during download and synchronization. For example, they can control feature and attachment delivery or define whether the map's basemap is created using a tile packa...
outputSizeWidth—The width of the image as specified from the web app will be returned. This can be used when performing a map view export. Code sample ConvertWebMapToArcGISProject example 1 In this example, the script reads in a web map JSON. The outputMapViewobject fromConvertWebMapToArc...
自定义地理处理服务中的 Python 脚本将执行ConvertWebMapToMapDocument函数,该函数可将想要进行打印或导出的 web 地图(JSON 格式)转换为地图文档。然后 arcpy.mapping 脚本在输出地图文档的所有图层中循环,移除除了与 web 地图 JSON 中的服务图层相对应的矢量图层之外的所有图层。接着该脚本将...
If a web map doesn't meet your offline map requirements, create and share an MMPK. For example, a web map may not support how you want to share your map. While mobile workers are responsible for downloading a web map to their device, MMPKs can becopied directly to the mobile workers'...
Open a web browser and enter the web map definition URL in the address bar. The URL for the web map definition should have the following syntax:http://www.arcgis.com/sharing/content/items/<your web map ID>/data?f=pjson. For example, the following URL retrieves the web map ...
Explorer opens both web maps and mobile map packages (MMPKs). The type you create depends on the needs of your mobile workers: If your mobile workers always have a data connection, even out in the field, provide a web map. When used with a data connection, web maps allow your mobile ...