本文简要介绍 python 语言中 arcgis.mapping.WebMap.basemap
的用法。
用法:
property basemap
返回:
作为字典的底图图层列表
获取/设置
WebMap
中的基本Map图层。Parameter
Description
value
必需的字符串。您想要将什么底图应用于Map(‘topo’、‘national-geographic’等)。有关完整列表,请参阅
basemaps
和gallery_basemaps
。例子:
# 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_Topo_Map/MapServer", "visibility": true, "opacity": 1, "title": "Topographic" }], "title": "Topographic" } # Usage example 2: Set the basemap used in the web map from arcgis.mapping import WebMap wm = WebMap(wm_item) print(wm.basemaps) >> ['dark-gray-vector', 'gray-vector', 'hybrid', 'oceans', 'osm', 'satellite', 'streets-navigation-vector', 'streets-night-vector', 'streets-relief-vector', 'streets-vector', 'terrain', 'topo-vector'] wm.basemap = 'dark-gray' print(wm.gallery_basemaps) >> ['custom_dark_gray_canvas', 'imagery', 'imagery_hybrid', 'light_gray_canvas', 'custom_basemap_vector_(proxy)', 'world_imagery_(proxy)', 'world_street_map_(proxy)'] wm.basemap = 'custom_dark_gray_canvas' # Usage example 3: Set the basemap equal to an item from arcgis.mapping import WebMap wm = WebMap(wm_item) # Use basemap from another item as your own wm.basemap = wm_item_2 wm.basemap = tiled_map_service_item wm.basemap = image_layer_item wm.basemap = wm2.basemap wm.basemap = wm2
相关用法
- Python ArcGIS WebMap.bookmarks用法及代码示例
- Python ArcGIS WebMap.update用法及代码示例
- Python ArcGIS WebMap.add_layer用法及代码示例
- Python ArcGIS WebMap.tables用法及代码示例
- Python ArcGIS WebMap.add_table用法及代码示例
- Python ArcGIS WebMap.forms用法及代码示例
- Python ArcGIS WebMap.update_drawing_info用法及代码示例
- Python ArcGIS WebMap.print用法及代码示例
- Python ArcGIS WebMap.layers用法及代码示例
- Python ArcGIS WebMap.save用法及代码示例
- Python ArcGIS WebMap.move_from_basemap用法及代码示例
- Python ArcGIS WebMap.update_layer用法及代码示例
- Python ArcGIS WebMap.move_to_basemap用法及代码示例
- Python ArcGIS WebMap用法及代码示例
- Python ArcGIS WebSocket用法及代码示例
- Python ArcGIS WebhookManager.create用法及代码示例
- Python ArcGIS WebAdaptors.list用法及代码示例
- Python ArcGIS Worker用法及代码示例
- Python ArcGIS WorkflowManager.create_lookup用法及代码示例
- Python ArcGIS WorkflowManager用法及代码示例
- Python ArcGIS WorkerManager用法及代码示例
- Python ArcGIS power用法及代码示例
- Python ArcGIS APIKeyManager.get用法及代码示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代码示例
- Python ArcGIS ContentManager.unshare_items用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 arcgis.mapping.WebMap.basemap。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。