1.2.12 • Published 5 years ago

leaflet-layer v1.2.12

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

MarkersLayer

Options

MarkerLayerOptions

参数名说明类型
renderType渲染类型string ('point','heat','cluster')
renderPointColorType渲染颜色样式string ('single','segmented')
iconType散点图标类型string ('unicode')
iconSize图标大小number, number
iconClass图标 classstring
iconUnicode图标 unicodestring
iconColor图标颜色string
iconColor图标颜色string
iconAnchor图标 anchornumber, number
bubbleColorAttrbubble 分色字段string
bubbleSizeAttrbubble 大小字段string
bubbleStrokeWidthbubble 边框宽度number
bubbleStrokeColorbubble 边框颜色string
bubbleSizesbubble 大小区间number[]
bubbleColorsbubble 颜色区间string[]
bubbleStrokeOpacitybubble 边框透明度number
bubbleFillOpacitybubble 填充透明度number
popupAttrpopup 显示字段string
tooltipAttrtooltip 显示字段string
segmentedAttr分段渲染统计字段string
segmentedColors分段渲染颜色区间string[]
heatOptions热力图 optionsMarkersHeatLayerOptions
clusterOptions聚合 optionsMarkersClusterOptions

Methods

方法名说明类型
draw画图层(options?: MarkersLayerOptions) => MarkersLayer
redraw重新画图层() => MarkersLayer
setData设置数据(data: DataListItem) => void
getOptions获取当前 options() => MarkersLayerOptions
fitBoundsfit bounds() => void
getBoundsget bounds()=> L.LatLngBoundsExpression
destroy销毁图层() => void
toggleVisibletoggle visible(visible: boolean) => void
pitch选择并聚焦(id => string) => void
getClassifiedColorRefs获取分类渲染颜色参照() => { attr: string, color: string, nums: number }[]
getBubbledColorRefs获取气泡图渲染颜色参照() => { attr: string, color: string, nums: number }[]
getBubbledSizeRefs获取气泡图渲染大小参照() => { size: number, range: number, number}[]

MarkersBufferLayerOptions extends MarkerLayerOptions

参数名说明类型
bufferTooltipAttr缓冲点的 tooltip 展示字段string
bufferOptions缓冲点的配置选项L.CircleMarkerOptions

MarkersHeatLayerOptions

参数名说明类型
max最大值number
radius半径number
dimensionAttr热力图权重统计字段string

MarkersClusterOptions

参数名说明类型

PolylinesLayer

Options

PolylineLayerOptions

参数名说明类型
renderPolylineColorType渲染颜色样式string ('single','segmented')
popupAttrpopup 显示字段string
tooltipAttrtooltip 显示字段string
segmentedAttr分段渲染统计字段string
segmentedColors分段渲染颜色区间string[]

PolygonsLayer

Options

PolygonLayerOptions

参数名说明类型
renderPolygonColorType渲染颜色样式string ('single','segmented')
popupAttrpopup 显示字段string
tooltipAttrtooltip 显示字段string
segmentedAttr分段渲染统计字段string
segmentedColors分段渲染颜色区间string[]
1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago