{ "name": "smartCity-extendLayer", "version": "1.0.2", "description": "smartCity-extendLayer子组件", "main": "index.js", "scripts": { "build": "cube build ./ --output=../../datavComponent --remote=pandav --smart" }, "keywords": [ "map", "subcoms" ], "dependencies": { "eventemitter3": "3.0.0", "safely-merge": "1.0.1", "lodash": "4.17.11" }, "pandav": { "cn_name": "叠加底图", "level": 1, "protocol": 2, "type": [ "smartCity-v1_subcoms_extendLayer" ], "parent": { "supportTypes": [ "smartCity-v1" ], "supportNames": [] }, "events": {}, "publicHandler": {}, "api_data": { "source": [] }, "apis": { "source": { "description": "数据接口", "handler": "render", "fields": { "lng": { "description": "经度", "type": "number" }, "lat": { "description": "纬度", "type": "number" } } } }, "config": { "options": { "type": "menu", "children": { "baseConfig": { "name": "基础配置", "type": "menuChild", "mode": "single", "children": { "showLevel": { "name": "可见级别", "type": "hidden", "mode": "double", "default": [ 0, 20 ], "step": 0.1, "min": 0, "max": 20, "showCurrentRange": true }, "zIndex": { "name": "层级顺序", "default": 1, "type": "number", "description": "底图间的顺序" } } }, "layerConfig": { "name": "图层配置", "type": "menuChild", "mode": "single", "children": { "type": { "name": "底图类型", "type": "radio", "default": "mapbox", "options": [ { "label": "mapbox", "value": "mapbox" }, { "label": "XYZ", "value": "xyz" } ] }, "mapboxType": { "name": "样式类别", "type": "radio", "default": "default", "show": [ [ "type", "$eq", "mapbox" ] ], "options": [ { "label": "默认", "value": "default" }, { "label": "自定义", "value": "custom" } ] }, "mapboxStyle": { "type": "imageSelect", "name": "样式", "default": "mapbox://styles/easyv/cky9qxzzp44cv14nn1lgb58qw", "show": [ [ "type", "$eq", "mapbox" ], [ "mapboxType", "$eq", "default" ] ], "range": [ { "name": "黑色", "value": "mapbox://styles/mapbox/dark-v11", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/黑色.png" }, { "name": "浅色", "value": "mapbox://styles/easyv/ckmctkbn90f0i17rqptn7bpzc", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/浅色.png" }, { "name": "卫星图", "value": "mapbox://styles/easyv/ckmec5bmk7jjm17o30306kubf", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/卫星图.png" }, { "name": "深色地形", "value": "mapbox://styles/easyv/ckmehoac600so17mke9j3x2ai", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/深色地形.png" }, { "name": "墨绿", "value": "mapbox://styles/easyv/cky9qxzzp44cv14nn1lgb58qw", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/墨绿.png" }, { "name": "默认户外", "value": "mapbox://styles/mapbox/outdoors-v12", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/户外.png" }, { "name": "白色", "value": "mapbox://styles/mapbox/light-v11", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/白色.png" }, { "name": "默认街道", "value": "mapbox://styles/mapbox/streets-v12", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/默认街道.png" }, { "name": "导航白天", "value": "mapbox://styles/mapbox/navigation-day-v1", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/导航白天.png" }, { "name": "导航夜间", "value": "mapbox://styles/mapbox/navigation-night-v1", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/导航夜间.png" } ] }, "accessToken": { "show": [ [ "type", "$eq", "mapbox" ], [ "mapboxType", "$eq", "custom" ] ], "name": "Access token", "default": "pk.eyJ1IjoiMTM1ODgyMDQyMzAiLCJhIjoiY2trbm9lZXA1MXBmcjJwcW5mdTVuM2t1NCJ9.ay1FKWom67649aOCCiTNhQ", "type": "text" }, "style": { "show": [ [ "type", "$eq", "mapbox" ], [ "mapboxType", "$eq", "custom" ] ], "name": "Style URL", "default": "mapbox://styles/13588204230/cky18smwirbbx14ud4s5kh8bc", "type": "text" }, "xyzUrl": { "show": [ [ "type", "$eq", "xyz" ] ], "name": "地址", "default": "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", "type": "text" }, "tileRetryCount": { "show": [ [ "type", "$eq", "xyz" ] ], "name": "重试次数", "type": "number", "default": 0 } } } } } } } }