Skip to content

Commit 4a4703f

Browse files
committed
新增iCLient9 for Legacy并新增MapV图层
1 parent 33838e5 commit 4a4703f

18 files changed

+1502
-2
lines changed

build/build.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151

5252
.deplistContent > div.contents {
53-
min-height: 160px;
53+
min-height: 100px;
5454
}
5555

5656
.deplist {

build/build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var clientsTabs = {
88
"OpenLayers": "openlayers",
99
"Leaflet": "leaflet",
1010
"MapboxGL": "mapboxgl",
11+
"Legacy": "legacy",
1112
};
1213
//设当前客户端名称,其值为clientsTabs的key值之一
1314
var currentClientTab = "OpenLayers";

build/deps.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,18 @@ var deps = {
417417
]
418418
}
419419
}
420+
},
421+
"legacy": {
422+
"overlay": {
423+
"title": "可视化",
424+
"description": "--对接可视化",
425+
"MapV": {
426+
"name": "MapV",
427+
"src": [
428+
"./src/legacy/overlay/MapVLayer.js"
429+
]
430+
}
431+
}
420432
}
421433
};
422434
module.exports = deps;

build/webpack.config.legacy.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
var webpack = require('webpack');
2+
var pkg = require('../package.json');
3+
var banner = `
4+
iclient9-legacy.(${pkg.homepage})
5+
Copyright© 2000-2017 SuperMap Software Co. Ltd
6+
license: ${pkg.license}
7+
version: v${pkg.version}
8+
`;
9+
10+
module.exports = {
11+
//页面入口文件配置
12+
entry: {},
13+
//入口文件输出配置
14+
output: {
15+
path: __dirname + '/../dist',
16+
filename: 'iclient9-legacy.js'
17+
},
18+
19+
//其它解决方案配置
20+
resolve: {
21+
extensions: ['.js', '.json', '.css']
22+
},
23+
externals: {
24+
'echarts': 'echarts',
25+
'mapv': 'mapv',
26+
'elasticsearch': 'elasticsearch'
27+
},
28+
module: {
29+
rules: [{
30+
test: /MapVRenderer\.js/,
31+
exclude: /node_modules/,
32+
loader: 'babel-loader',
33+
query: {
34+
presets: ['es2015']
35+
}
36+
}]
37+
},
38+
plugins: [
39+
new webpack.BannerPlugin(banner)
40+
]
41+
42+
};

0 commit comments

Comments
 (0)