{ "map3d": { "templateValues": { "dataServer": "//data.mars3d.cn", "gltfServerUrl": "//data.mars3d.cn/gltf" }, "scene": { "center": { "lat": 31.162801, "lng": 121.543277, "alt": 50000, "heading": 359.2, "pitch": -39.5 }, "scene3DOnly": false, "shadows": false, "removeDblClick": true, "sceneMode": 3, "showSun": true, "showMoon": true, "showSkyBox": true, "showSkyAtmosphere": true, "fog": true, "fxaa": true, "globe": { "depthTestAgainstTerrain": false, "baseColor": "#546a53", "showGroundAtmosphere": true, "enableLighting": false }, "cameraController": { "zoomFactor": 3.0, "minimumZoomDistance": 1, "maximumZoomDistance": 50000000, "enableRotate": true, "enableTranslate": true, "enableTilt": true, "enableZoom": true, "enableCollisionDetection": true, "minimumCollisionTerrainHeight": 15000 } }, "control": { "homeButton": true, "baseLayerPicker": false, "sceneModePicker": true, "vrButton": false, "fullscreenButton": true, "navigationHelpButton": false, "animation": true, "timeline": false, "infoBox": false, "geocoder": false, "geocoderConfig": { "key": ["ae29a37307840c7ae4a785ac905927e0"] }, "selectionIndicator": false, "defaultContextMenu": true, "mouseDownView": true, "compass": { "bottom": "240px", "right": "5px" }, "distanceLegend": { "left": "100px", "bottom": "2px" }, "locationBar": { "fps": false, "crs": "CGCS2000_GK_Zone_3", "crsDecimal": 0, "template": "
经度:{lng}
纬度:{lat}
横{crsx} 纵{crsy}
海拔:{alt}米
层级:{level}
方向:{heading}°
俯仰角:{pitch}°
视高:{cameraHeight}米
" } }, "terrain": { "url": "{dataServer}/terrain", "show": false }, "basemaps": [ { "id": 10, "name": "地图底图", "type": "group" }, { "id": 2021, "pid": 10, "name": "天地图影像", "icon": "img/basemaps/tdt_img.png", "type": "group", "layers": [ { "name": "底图", "type": "tdt", "layer": "img_d", "key": ["9ae78c51a0a28f06444d541148496e36"] } ], "show":true }, { "pid": 10, "name": "天地图电子", "icon": "img/basemaps/tdt_vec.png", "type": "group", "layers": [ { "name": "底图", "type": "tdt", "layer": "vec_d", "key": ["9ae78c51a0a28f06444d541148496e36"] } ] } ], "layers": [ { "id": 50, "name": "辅助图层", "type": "group" }, { "pid": 50, "type": "graticule", "name": "经纬网" }, { "pid": 50, "name": "行政区划界线", "type": "xyz", "url": "https://t{s}.tianditu.gov.cn/DataServer?T=ibo_w&x={x}&y={y}&l={z}&tk=9ae78c51a0a28f06444d541148496e36", "subdomains": "01234567", "maximumLevel": 10, "mapSplit": false, "show": true }, { "pid": 50, "name": "高德实时路况", "type": "gaode", "layer": "time", "minimumTerrainLevel": 4, "minimumLevel": 4, "proxy": "//server.mars3d.cn/proxy/", "mapSplit": false }, { "id": 60, "name": "地形", "type": "group" }, { "pid": 60, "type": "terrain", "name": "Cesium地形", "terrain": { "type": "ion" }, "radio": true }, { "pid": 60, "type": "terrain", "name": "Mars3D地形", "terrain": { "type": "xyz", "url": "{dataServer}/terrain" }, "radio": true }, { "pid": 60, "type": "terrain", "name": "ArcGIS地形", "terrain": { "type": "arcgis", "url": "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer" }, "radio": true }, { "pid": 60, "type": "terrain", "name": "无地形", "terrain": { "type": "none" }, "radio": true }, { "pid": 2040, "type": "geojson", "name": "上海道路", "url": "data/roads-gcj.json", "symbol": { "styleOptions": { "color": "#ffffff", "width": 2, "opacity": 0.8, "label": { "text": "{name}", "position": "center", "font_size": 30, "color": "#ffffff", "outline": true, "outlineColor": "#000000", "scaleByDistance": true, "scaleByDistance_far": 60000000, "scaleByDistance_farValue": 0.2, "scaleByDistance_near": 1000000, "scaleByDistance_nearValue": 1, "distanceDisplayCondition": true, "distanceDisplayCondition_far": 12000000, "distanceDisplayCondition_near": 0 } } }, "show": false, "flyTo": true }, { "id": 2040, "pid": 20, "name": "城市白模", "type": "group" }, { "id": 204012, "pid": 2040, "type": "3dtiles", "name": "上海市区", "url": "{dataServer}/3dtiles/jzw-shanghai/tileset.json", "maximumScreenSpaceError": 4, "maximumMemoryUsage": 1024, "style": { "color": { "conditions": [ ["${floor} >= 200", "rgba(45, 0, 75, 0.5)"], ["${floor} >= 100", "rgb(170, 162, 204)"], ["${floor} >= 50", "rgb(224, 226, 238)"], ["${floor} >= 25", "rgb(252, 230, 200)"], ["${floor} >= 10", "rgb(248, 176, 87)"], ["${floor} >= 5", "rgb(198, 106, 11)"], ["true", "rgb(127, 59, 8)"] ] } }, "highlight": { "type": "click", "color": "#FFFF00" }, "popup": [ { "field": "name", "name": "名称" }, { "field": "floor", "name": "楼层" } ], "center": { "lat": 31.257341, "lng": 121.466139, "alt": 2170.8, "heading": 122.2, "pitch": -31.8 } }, { "id": 99, "name": "数据图层", "type": "group" }, { "id": 1006, "pid": 99, "name": "监测区域", "type": "group" } ] } }