Skip to content

Commit e9ed7b6

Browse files
committed
mbgl新增高性能点图层(稍后补测试)&增加示例
1 parent 46f80d0 commit e9ed7b6

File tree

20 files changed

+2157
-957
lines changed

20 files changed

+2157
-957
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@
113113
- 新增热力图层:
114114

115115
- `mapboxgl.supermap.HeatMapLayer`
116+
117+
- 新增高性能点图层:
116118

119+
- `mapboxgl.supermap.GraphicLayer`
117120

118121
- `mapboxgl.supermap.ThemeLayer` 类新增 `setVisibility`接口,支持设置图层的显示和隐藏
119122

@@ -196,6 +199,8 @@
196199

197200
- 新增three图层示例
198201

202+
- 新增高性能点图层示例
203+
199204
### Classic
200205

201206
## Web Site && Docs

build/deps.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,17 @@ deps = {
11031103
"des_en": "HeatMap layer"
11041104
}]
11051105
},
1106+
"GraphicLayer": {
1107+
"name": "高效率点图层",
1108+
"src": [
1109+
"./src/mapboxgl/overlay/GraphicLayer.js"
1110+
],
1111+
"modules": [{
1112+
"name": "mapboxgl.supermap.GraphicLayer",
1113+
"des": "高效率点图层",
1114+
"des_en": "high efficiency point layer"
1115+
}]
1116+
},
11061117
"Mapv": {
11071118
"name": "Mapv",
11081119
"src": [

build/webpack.config.mapboxgl.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var webpack = require('webpack');
2+
var {resolve} = require('path');
23
var ExtractTextPlugin = require("extract-text-webpack-plugin");
34
var pkg = require('../package.json');
45
var packageName = "iclient9-mapboxgl";
@@ -10,7 +11,7 @@ var banner = `
1011
`;
1112

1213
module.exports = {
13-
mode:"production",
14+
mode: "production",
1415
//页面入口文件配置
1516
entry: {},
1617
//入口文件输出配置
@@ -19,12 +20,12 @@ module.exports = {
1920
filename: packageName + ".js"
2021
},
2122
//不显示打包文件大小相关警告
22-
performance:{
23+
performance: {
2324
hints: false
2425
},
2526
//是否启用压缩
2627
optimization: {
27-
minimize:false
28+
minimize: false
2829
},
2930

3031
//其它解决方案配置
@@ -36,7 +37,10 @@ module.exports = {
3637
'three': 'function(){try{return THREE}catch(e){return {}}}()',
3738
'mapbox-gl': 'mapboxgl',
3839
'mapv': "function(){try{return mapv}catch(e){return {}}}()",
39-
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()'
40+
'elasticsearch': 'function(){try{return elasticsearch}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 {}}})()'
4044
},
4145

4246
module: {
@@ -60,7 +64,7 @@ module.exports = {
6064
}
6165
}, {
6266
test: /\.js/,
63-
exclude: /node_modules[\/\\]proj4|classic/,
67+
exclude: /node_modules[\/\\]proj4|classic|webgl-debug/,
6468
loader: 'babel-loader',
6569
query: {
6670
presets: ['es2015']

dist/iclient9-mapboxgl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)