{ "name": "panda-amap-point", "version": "0.0.1", "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": [ "amap-v4_subcoms_point" ], "parent": { "supportTypes": [ "map_amap-v4" ], "supportNames": [] }, "publicHandler": { "show": { "description": "显示组件" }, "hide": { "description": "隐藏组件" } }, "events": {}, "api_data": { "source": [ { "name": "正常", "data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 116.3234, 39.8969 ] }, "properties": { "name": "测试点1", "value": 45.18932661, "level": "C", "month": 202005 } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 116.181, 39.8175 ] }, "properties": { "name": "测试点2", "value": 45.18932661, "level": "C", "month": 202005 } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 116.4181, 39.8028 ] }, "properties": { "name": "测试点3", "value": 45.18932661, "level": "C", "month": 202005 } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 116.3398, 39.7779 ] }, "properties": { "name": "测试点4", "value": 45.18932661, "level": "C", "month": 202005 } } ] } } ] }, "apis": { "source": { "description": "数据接口", "handler": "render", "fields": {} } }, "config": { "type": { "name": "点图层类型", "type": "hidden", "default": "scatter" }, "statusConfig": { "name": "状态", "type": "array", "fold": false, "default": [ { "name": "正常", "style": { "unit": "meter", "borderWidth": 0, "borderColor": "#50AE55", "rotation": 0, "size": [ 2600, 2600 ], "altitude": 0, "texture": "https://a.amap.com/Loca/static/static/green.png", "animate": true }, "option": { "zIndex": 120, "opacity": 1, "zooms": [ 3, 20 ] } } ], "child": { "type": "object", "name": "状态<%=i+1%>", "child": { "name": { "name": "状态名", "type": "text", "default": "" }, "style": { "name": "图层样式", "type": "group", "children": { "unit": { "name": "点的单位", "description": "会影响半径和边宽度。可选值:px:像素,meter:地理单位米", "type": "text", "default": "px" }, "borderWidth": { "name": "边框宽度", "type": "number", "default": 0 }, "borderColor": { "name": "边框填充色", "type": "color", "default": "#fff" }, "rotation": { "name": "图标的旋转角度", "type": "number", "default": 0 }, "size": { "name": "图标长宽", "description": "单位取决于 unit 字段", "type": "text", "default": [ 20, 20 ] }, "altitude": { "name": "图标的海拔高度", "type": "number", "default": 0 }, "texture": { "name": "图标纹理资源", "description": "如果需要有动态效果,请使用帧序列图片资源:url,并且为了效果更好,我们建议使用宽高: 4096x128 像素的图片。⚠: 帧序列图片是头尾相连可以循环的图片。", "type": "text", "default": "" }, "animate": { "name": "是否有动画", "description": "动画开启需要使用序列帧的纹理,否则没有动画效果", "type": "boolean", "default": true } } }, "option": { "name": "图层参数", "type": "group", "children": { "zIndex": { "name": "图层显示层级", "type": "number", "default": 120 }, "opacity": { "name": "图层整体透明度", "type": "slider", "default": 1, "max": 1, "min": 0, "step": ".05" }, "zooms": { "name": "图层缩放等级范围", "default": [ 3, 20 ], "description": "最小级别, 最大级别", "type": "text" } } } } } } } } }