Skip to content

Commit d473cb4

Browse files
committed
leaflet 高效率点图层新增支持webgl渲染(只支持散点图)
1 parent 7471ec9 commit d473cb4

20 files changed

+2912
-1539
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@
5050

5151
- 高性能图层 `L.supermap.GraphicLayer` 新增接口:
5252

53+
- 默认支持`webgl`渲染
54+
- `options` 新增 `render` 参数,可选值为`canvas`,`webgl`,
55+
- `options` 新增 `webgl` 绘制相关参数,如:
56+
`color` , `highlightColor`, `opacity`,`radius`,`radiusScale`,
57+
`radiusMinPixels`,`radiusMaxPixels`,`strokeWidth`,`outline`,
58+
`onClick`,`onHover`
59+
5360
- `setGraphics`: 设置点要素
5461

5562
- `addGraphics`: 追加点要素

build/webpack.config.leaflet.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ module.exports = {
3737
'echarts': 'function(){try{return echarts}catch(e){return {}}}()',
3838
'mapv': "function(){try{return mapv}catch(e){return {}}}()",
3939
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()',
40-
'@turf/turf': "function(){try{return turf}catch(e){return {}}}()"
40+
'@turf/turf': "function(){try{return turf}catch(e){return {}}}()",
41+
'deck.gl': '(function(){try{return DeckGL}catch(e){return {}}})()',
42+
'luma.gl': '(function(){try{return luma}catch(e){return {}}})()',
43+
'webgl-debug': '(function(){try{return webgl-debug}catch(e){return {}}})()'
4144
},
4245

4346
module: {
@@ -60,7 +63,7 @@ module.exports = {
6063
}
6164
}, {
6265
test: [/\.js$/],
63-
exclude: /setImmediate/,
66+
exclude: /setImmediate | webgl-debug/,
6467
loader: 'babel-loader',
6568
options: {
6669
presets: ['es2015']

0 commit comments

Comments
 (0)