地图服务地址
{ name: '中国灰色版', url: 'https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer' }, { name: '中国午夜版', url: 'https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer' }, { name: '中国彩色版', url: 'https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer' }, { name: '中国彩色POI版', url: 'https://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer' } // World Ocean Base Basemap url: "https://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer" // Capital cities in Europe FeatureLayer url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/europe_country_capitals/FeatureServer/0"
basemap:
/tstreets, satellite, hybrid, topo, gray: dark-gray, oceans,national -geographic, terrain, osm, dark -gray -vector, gray -vector ,Streets-vector, topo-vector, streets night -vector, streets - rel ief -vector rstreets-relief -vector, s treets -naviga tion -vector*/
map使用方法:
map Ground使用方法
map.ground.surfaceColor = "" //更改地图的背景颜色 map.ground.opacity = 0.3 //更改地图界面的透明度 map.ground.navigationconstraint = { type: "none"} //穿透地表 map.ground.navigationconstraint = { type: "stay-above"}//只停留在地表,不能穿透