{ "name": "l7-polygon", "version": "1.0.19", "description": "区域面图层", "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": "区域面图层", "icon": "https:///assets.easyv.cloud/thumb/ea6dbbba-f7db-4aca-a7e4-57608896e04a.gif", "level": 1, "protocol": 2, "type": [ "L7-v1_subcoms_polygon" ], "parent": { "supportTypes": [ "L7-v1" ], "supportNames": [] }, "publicHandler": {}, "events": { "click": { "name": "鼠标点击", "fields": { "name": { "description": "区域名称", "type": "string" }, "adcode": { "description": "区域编码", "type": "number" } }, "data": { "name": "1" } } }, "api_data": { "source": [ { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110101.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110102.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110105.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110106.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110107.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110108.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110109.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110111.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110112.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110113.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110114.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110115.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110116.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110117.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110118.json" }, { "name": "正常", "data": "https://geo.datav.aliyun.com/areas_v3/bound/110119.json" } ] }, "apis": { "source": { "description": "数据接口", "handler": "render", "fields": { "name": { "description": "状态名" }, "data": { "description": "多边形坐标值" } } } }, "config": { "type": { "name": "区域面图层类型", "type": "select", "default": "fill", "options": [ { "label": "平面区域", "value": "fill" }, { "label": "3D区域", "value": "extrude" }, { "label": "平面水体", "value": "water" }, { "label": "平面海洋水体", "value": "ocean" } ] }, "color": { "name": "区域颜色", "type": "color", "default": "#0DCCFF" }, "statusConfig": { "name": "状态", "type": "array", "fold": false, "default": [ { "name": "正常", "size": 1000, "lineStyle": { "visible": true, "color": "#fff", "width": 1, "type": "dash" }, "fillStyle": { "opacity": 0.5, "raisingHeight": 0 }, "extrudeStyle": { "opacity": 0.5, "raisingHeight": 0, "heightfixed": true, "topsurface": true, "sidesurface": true, "sourceColor": "#fff", "targetColor": "#fff" }, "hoverStyle": { "color": "#0DCCFF" }, "waterStyle": { "opacity": 0.5, "speed": 0.5, "waterTexture": "https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ" }, "oceanStyle": { "opacity": 0.5, "watercolor": "#6D99A8", "watercolor2": "#0F121C" }, "options": { "zIndex": 10, "visible": true, "minZoom": 2, "maxZoom": 19 }, "animate": { "enable": true, "duration": 1, "interval": 1, "trailLength": 2 }, "isDrilling": false, "drilling": [ { "name": "怀柔区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "密云区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "延庆区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "昌平区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "顺义区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "平谷区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "门头沟区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "海淀区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "石景山区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "朝阳区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "西城区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "东城区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "通州区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "大兴区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 }, { "name": "房山区", "lng": 116.352734, "lat": 39.8847, "zoom": 10 } ] } ], "child": { "type": "object", "name": "状态<%=i+1%>", "child": { "name": { "name": "状态名", "type": "text", "default": "" }, "size": { "name": "设置区域高度", "type": "number", "default": 1 }, "fillStyle": { "name": "图层样式", "type": "group", "showInPanel": { "conditions": [ [ "type", "$eq", "fill" ] ] }, "children": { "opacity": { "name": "图形的透明度", "type": "slider", "default": 1, "max": 1, "min": 0, "step": ".05" }, "raisingHeight": { "name": "抬升高度", "type": "number", "default": 0 }, "color": { "name": "区域颜色", "type": "color", "default": "#F2F5FC" } } }, "lineStyle": { "name": "边界线", "type": "group", "children": { "visible": { "name": "是否显示", "type": "boolean", "default": true }, "type": { "name": "边界线样式", "type": "select", "default": "dash", "options": [ { "label": "虚线", "value": "dash" }, { "label": "实线", "value": "solid" } ] }, "color": { "name": "线颜色", "type": "color", "default": "#fff" }, "width": { "name": "线宽度", "type": "number", "default": 1 } } }, "extrudeStyle": { "name": "图层样式", "type": "group", "showInPanel": { "conditions": [ [ "type", "$eq", "extrude" ] ] }, "children": { "opacity": { "name": "图形的透明度", "type": "slider", "default": 1, "max": 1, "min": 0, "step": ".05" }, "raisingHeight": { "name": "抬升高度", "type": "number", "default": 0 }, "heightfixed": { "name": "抬升高度是否随 zoom 变化", "type": "boolean", "default": true }, "topsurface": { "name": "顶部是否显示", "type": "boolean", "default": true }, "sidesurface": { "name": "侧面是否显示", "type": "boolean", "default": true }, "sourceColor": { "name": "侧面底部颜色", "type": "color", "default": "#fff" }, "targetColor": { "name": "侧面顶部颜色", "type": "color", "default": "#fff" } } }, "waterStyle": { "name": "图层样式", "type": "group", "showInPanel": { "conditions": [ [ "type", "$eq", "water" ] ] }, "children": { "opacity": { "name": "图形的透明度", "type": "slider", "default": 1, "max": 1, "min": 0, "step": ".05" }, "speed": { "name": "水波速度", "type": "number", "default": 0.5 }, "waterTexture": { "name": "水面贴图", "type": "image", "default": "https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ" } } }, "oceanStyle": { "name": "图层样式", "type": "group", "showInPanel": { "conditions": [ [ "type", "$eq", "ocean" ] ] }, "children": { "opacity": { "name": "图形的透明度", "type": "slider", "default": 1, "max": 1, "min": 0, "step": ".05" }, "watercolor": { "name": "水面颜色", "type": "color", "default": "#6D99A8" }, "watercolor2": { "name": "水面贴图", "type": "color", "default": "#0F121C" } } }, "hoverStyle": { "name": "鼠标覆盖样式", "type": "group", "children": { "color": { "name": "高亮颜色", "type": "color", "default": "#0DCCFF" } } }, "options": { "name": "图层参数", "type": "group", "children": { "zIndex": { "name": "图层显示层级", "type": "number", "default": 10 }, "visible": { "name": "图层是否可见", "type": "boolean", "default": true }, "minZoom": { "name": "图层显示最小缩放等级", "type": "slider", "default": 2, "max": 19, "min": 2, "step": 1 }, "maxZoom": { "name": "图层显示最大缩放等级", "type": "slider", "default": 19, "max": 19, "min": 2, "step": 1 } } }, "animate": { "name": "动画设置", "type": "group", "showInPanel": { "conditions": [ [ "type", "$eq", "water" ], [ "type", "$eq", "ocean" ] ], "logicalType": "$or" }, "children": { "enable": { "name": "启用动画", "type": "boolean", "default": false }, "duration": { "name": "动画时间(s)", "show": [ [ "enable", "$eq", true ] ], "type": "number", "default": 1 }, "interval": { "name": "轨迹间隔", "type": "number", "show": [ [ "enable", "$eq", true ] ], "default": 1 }, "trailLength": { "name": "轨迹长度", "type": "number", "show": [ [ "enable", "$eq", true ] ], "default": 2 } } }, "drilling": { "name": "钻取设置", "type": "array", "default": [], "child": { "type": "object", "name": "子级<%=i+1%>", "child": { "name": { "name": "子级名称", "type": "text", "default": "" }, "lng": { "name": "经度", "type": "number", "default": 116.352734 }, "lat": { "name": "纬度", "type": "number", "default": 39.8847 }, "zoom": { "name": "缩放", "default": 12, "type": "number", "description": "当数据有zoom时,使用数据的zoom;当数据无且该zoom配置大于等于0时,使用该zoom配置,当该配置小于0时,使用当前相机的zoom。" }, "mapTexture": { "name": "区域纹理", "type": "image", "default": "" } } } } } } } } } }