Skip to content

Commit 40cd909

Browse files
修改 copyright 修改 maplibregl 示例 review by luox
1 parent 3b7a16f commit 40cd909

File tree

128 files changed

+406
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+406
-663
lines changed

build/jsdocs/template/config.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@
365365
"name": "DeckGL",
366366
"name_en": "DeckGL"
367367
},
368-
"L7": {
369-
"name": "L7",
370-
"name_en": "L7"
371-
},
372368
"Theme": {
373369
"name": "客户端专题图",
374370
"name_en": "Theme"

build/webpack.config.base.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ module.exports = {
5858
resolve: {
5959
extensions: ['.js', '.json', '.css'],
6060
mainFields: ['browser', 'main'],
61-
alias: {
62-
process: "process/browser"
63-
},
6461
fallback: {
6562
fs: false,
6663
http: require.resolve('stream-http'),
@@ -113,9 +110,6 @@ module.exports = {
113110
new webpack.BannerPlugin(this.bannerInfo(productName)),
114111
new MiniCssExtractPlugin({filename:`./${productName}.css`}),
115112
new ESLintPlugin({ failOnError: true, files: 'src' }),
116-
new webpack.ProvidePlugin({
117-
process: 'process/browser',
118-
}),
119113
];
120114
}
121115
};

build/webpack.config.maplibregl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = {
2121

2222
externals: Object.assign({}, configBase.externals, {
2323
'maplibre-gl': 'maplibregl',
24-
'@antv/l7': 'L7',
2524
three: 'THREE',
2625
'webgl-debug': '(function(){try{return webgl-debug}catch(e){return {}}})()'
2726
}),
@@ -33,7 +32,7 @@ module.exports = {
3332
moduleRules.push(configBase.module.rules.img);
3433
const babelConfig = {
3534
test: [/\.js$/],
36-
include: /node_modules[\/\\](proj4|@antv[\/\\]l7|maplibre-gl)/,
35+
include: /node_modules[\/\\](proj4|maplibre-gl)/,
3736
loader: 'babel-loader',
3837
options: {
3938
presets: ['@babel/preset-env'],

dist/maplibregl/include-maplibregl.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5555
inputCSS('https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css');
5656
inputScript('https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js');
57-
// inputCSS('https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.css');
58-
// inputScript('https://unpkg.com/maplibre-gl@2.4.0/dist/maplibre-gl.js');
5957
if (inArray(includes, 'draw')) {
6058
inputCSS(`${libsurl}/mapbox-gl-js/plugins/mapbox-gl-draw/1.4.1/mapbox-gl-draw.min.css`);
6159
inputScript(`${libsurl}/mapbox-gl-js/plugins/mapbox-gl-draw/1.4.1/mapbox-gl-draw.min.js`);
@@ -70,6 +68,9 @@
7068
inputScript('../../dist/maplibregl/iclient-maplibregl.min.js');
7169
}
7270
}
71+
if (inArray(includes, 'turf')) {
72+
inputScript(`${libsurl}/turf/6.5.0/turf.min.js`);
73+
}
7374
if (!inArray(excludes, 'iclient-maplibregl-css')) {
7475
inputCSS('../../dist/maplibregl/iclient-maplibregl.min.css');
7576
}

examples/maplibregl/01_mapQueryByBounds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

examples/maplibregl/01_mapQueryByDistance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

examples/maplibregl/01_mapQueryByGeometry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

examples/maplibregl/01_mapQueryBySQL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

examples/maplibregl/01_mapService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

examples/maplibregl/01_measure_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--********************************************************************
2-
* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.
2+
* Copyright© 2000 - 2023 SuperMap Software Co.Ltd. All rights reserved.
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>

0 commit comments

Comments
 (0)