Skip to content

Commit cd52ef4

Browse files
committed
openlayers 高效率点图层新增支持webgl渲染(只支持散点图)
1 parent 64b28b4 commit cd52ef4

19 files changed

+1985
-1140
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@
122122
- `SuperMap.ThemeStyle` 参数 `strokeDashstyle` 类型 `dashot` 更改为 `dashdot`
123123

124124
- `ol.source.Graphic` 新增接口:
125+
126+
- 默认支持`webgl`渲染
127+
- `options` 新增 `render` 参数,可选值为`canvas`,`webgl`,
128+
- `options` 新增 `webgl` 绘制相关参数,如:
129+
`color` , `highlightColor`, `opacity`,`radius`,`radiusScale`,
130+
`radiusMinPixels`,`radiusMaxPixels`,`strokeWidth`,`outline`,
131+
`onClick`,`onHover`
125132

126133
- `setGraphics`: 设置点要素
127134

@@ -240,6 +247,8 @@
240247

241248
- 新增`echarts` 增量高性能图层示例
242249

250+
- 新增高效率点图层webgl渲染示例
251+
243252
### for OpenLayers
244253

245254
- 新增几何要素批量空间分析示例
@@ -258,6 +267,8 @@
258267

259268
- 新增`echarts` 增量高性能图层示例
260269

270+
- 新增高效率点图层webgl渲染示例
271+
261272
### for MapboxGL
262273

263274
- 新增几何要素批量空间分析示例

build/webpack.config.openlayers.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ module.exports = {
3939
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()',
4040
'@turf/turf': "function(){try{return turf}catch(e){return {}}}()",
4141
'ol-mapbox-style':"function(){try{return olms}catch(e){return {}}}()",
42-
'ol-mapbox-style/stylefunction':"function(){try{return olms.stylefunction}catch(e){return {}}}()"
42+
'ol-mapbox-style/stylefunction':"function(){try{return olms.stylefunction}catch(e){return {}}}()",
43+
'deck.gl': '(function(){try{return DeckGL}catch(e){return {}}})()',
44+
'luma.gl': '(function(){try{return luma}catch(e){return {}}})()',
45+
'webgl-debug': '(function(){try{return webgl-debug}catch(e){return {}}})()'
4346
},
4447

4548
module: {
@@ -63,7 +66,7 @@ module.exports = {
6366
}
6467
}, {
6568
test: /\.js$/,
66-
exclude: /classic/,
69+
exclude: /classic | webgl-debug/,
6770
loader: 'babel-loader',
6871
query: {
6972
presets: ['env']

0 commit comments

Comments
 (0)