# 动态注记图层
mapgis-dynamic-marker-layer
# 属性
# data
- 类型:
Object | String
- 侦听属性
- 描述: Geojson 数据源
- 参考: 目前只支持 FeatureCollection 的格式
# layerStyle
- 类型:
Object
- 非侦听属性
- 描述: 当前图层的显示样式,只能是 MarkerStyle
- 默认值
const DefaultInactiveImagePlotting =
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAuCAYAAABEbmvDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAASdAAAEnQB3mYfeAAABjNJREFUeJztWF1MFFcUnsSY8NjEmJj0xRfTJk19sEkfffGpsWn9Q5HFYX9nd9lZVkgb2/ovC11cRRRYQLYIrAK2WrUNVK3SqtFapU1t0xrTRK1UrEbEv/fT75thXWphf2DAh/YmX2Zn5t5zv3vOd86du4ryf5um9uTJkwWPHj3SHj58uHl4eLg5Cd7z+ePHj99++vTpnGkhw4k46YMHD768OXBb4ke/kffrD0tReL8s/iBuXEtqDsru7pNy5ervMjQ01E+iXMSUkSIhTvTpyQuyqLxZZi6pFmVprSjL6kRZ1STKymZcgZUxPNstyrvbZb6vXiIdPXL33j0hQUs9SGMM0ZnLv8jCtY2iLNlhEihoFcXWIUpRAtdRMO7x3NaGfi0G+bnqTsO79LQl3qMRGosdOiV5y6pNz3BCTl7cOYKuMTDyjv2K2kVZDYLvRKW4KiGDd/4S6m9SniKp8rrPjLAYxlV4ovhAipC9e3zwvaMrRbDgEyPEb5bsket/DEycHMMXSfQiFAidDUbtMO7oNCdzdo/gYBqM9GF/jlPpPXg7v04WlsUM3eUcVgr1SN9FmbEkIkrhKE/9g1QOMDx3wFycCnJLd4nj44ShuaxJcRXUwVw7PQVNqdCIYz8m6DLh7s4dybEuksMi18SRRBH54ttLwmzP2ltMcWVFDUjtA6mEadCFcLi6JoFOE1wkvVYQk/neWqPWZSwj7MDYzy5EBhahJNhhwAVD7k4LQUnQa9AtamFHz9nMXmOH/b1nRVmOLFQx0NFuGiI8ndYgScyOaBTWy1vrmjJrjZlYHM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MnA7UGZF8AnuIa9VMeJvRSaC+02r7zHc75nNk+qkObaqJezP1yRvOIPkaXYGUpBJrjLvOKez/l+SnU1Vkv+dxY9eAwnqvUIHU7uwah5xT2f8/20/Tk8ulE31NuyKujKhfrmrTSuqyIxo15Ni67Ga9TbLejtFR0lRF0nC8rDcufu3ampV7k2eqb/t2syz/WeXL1+M/1p50W0oeHh/hfN4b/d/gYnm2n24iputAAAAABJRU5ErkJggg==";
let layerStyle = {
marker: new MarkerStyle({
symbol: DefaultInactiveImagePlotting
})
};
# highlight
- 类型:
Boolean
- 描述: 是否激活高亮
- 默认值 true
# highlightStyle
- 类型:
Object
- 非侦听属性
- 描述: 当前图层的高亮样式,如 MarkerStyle、PointStyle、LineStyle、FillStyle
- 默认值
let layerStyle = {
marker: new MarkerStyle({
symbol: DefaultActiveImagePlotting
}),
point: new PointStyle(),
line: new LineStyle(),
polygon: new FillStyle()
};
# idField
- 类型:
String
- 描述: 要素唯一 id 字段,用来过滤、查询、高亮
- 默认值 fid
# selects
- 类型:
Array
- 描述: 当前选中的要素 id 的数组,一旦设置则默认高亮激活对应的要素
- 默认值 []
# fitBound
- 类型:
Object
- 描述: 缩放当前视图到指定的的范围 { xmin, ymin, xmax, ymax }
- 默认值 {}
# 事件
# map-bound-change
- 载荷 {xmin, ymin, xmax, ymax}
- 描述 当地图范围发生了改变时候,一般是动态改变 selects 后导致的自动缩放到对用的视图。