Skip to content

Commit 29291c3

Browse files
[update] 将2019ChinaGDP示例更换为ChinaProvinceCapitals
(review by zq)
1 parent 30ba764 commit 29291c3

File tree

10 files changed

+26
-42
lines changed

10 files changed

+26
-42
lines changed

examples/locales/en-US/resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ window.examplesResources = {
727727
"title_fgb_all": "FGB Full Load",
728728
"title_fgb_extent": "FGB Extent Load",
729729
"title_websymbol_DLG_I49": "DLG_I49",
730-
"title_websymbol_2019ChinaGDP": "2019 China's GDP by Province",
730+
"title_websymbol_ChinaProvinceCapitals": "China Provincial Capitals Locations",
731731
"title_websymbol_editor": "WebSymbol Editor",
732732
"title_websymbol_gallery": "WebSymbol Gallery",
733733
"title_websymbol_YangtzeRiverdelta": "Yangtze River Delta",

examples/locales/zh-CN/resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ window.examplesResources = {
693693
"title_fgb_all": "FGB 全量加载",
694694
"title_fgb_extent": "FGB 按需加载",
695695
"title_websymbol_DLG_I49": "数字线划地图",
696-
"title_websymbol_2019ChinaGDP": "2019年中国各省GDP",
696+
"title_websymbol_ChinaProvinceCapitals": "中国省会地理位置",
697697
"title_websymbol_editor": "Web符号编辑器",
698698
"title_websymbol_gallery": "Web符号库",
699699
"title_websymbol_YangtzeRiverdelta": "长江三角洲",

examples/mapboxgl/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,11 +1380,11 @@ var exampleConfig = {
13801380
thumbnail: 'websymbol_landuseOfJingjin.png',
13811381
fileName: 'websymbol_landuseOfJingjin'
13821382
},{
1383-
name: '2019年中国各省GDP',
1384-
name_en: "2019 China's GDP by Province",
1383+
name: '中国省会地理位置',
1384+
name_en: "China Provincial Capitals Locations",
13851385
version: '11.1.0',
1386-
thumbnail: 'websymbol_2019ChinaGDP.png',
1387-
fileName: 'websymbol_2019ChinaGDP'
1386+
thumbnail: 'websymbol_ChinaProvinceCapitals.png',
1387+
fileName: 'websymbol_ChinaProvinceCapitals'
13881388
}
13891389
]
13901390
},
-44.4 KB
Binary file not shown.
62.1 KB
Loading

examples/mapboxgl/websymbol_2019ChinaGDP.html renamed to examples/mapboxgl/websymbol_ChinaProvinceCapitals.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<head>
88
<meta charset="UTF-8">
99
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
10-
<title data-i18n="resources.title_websymbol_2019ChinaGDP"></title>
10+
<title data-i18n="resources.title_websymbol_ChinaProvinceCapitals"></title>
1111
<style>
1212
body {
1313
margin: 0;
@@ -50,44 +50,36 @@
5050
"type": "raster"
5151
}
5252
},
53-
"name": "2019年中国各省GDP",
53+
"name": "中国省会地理位置",
5454
"layers": [{
5555
"id": "simple-tiles",
5656
"type": "raster",
5757
"source": "raster-tiles"
5858
}],
5959
"version": 8
6060
},
61-
zoom: 4.5,
62-
center: [102.85, 37.20],
61+
zoom: 5.5,
62+
center: [108, 35],
6363
});
6464

6565

6666
var createConsumptionLevel = function (symbolId) {
6767
map.addLayer({
68-
"id": "China_Province_pg@China#point",
68+
"id": "ProvinceCapital_P@China#point",
6969
"source": "china",
70-
"source-layer": "China_Province_pg@China",
70+
"source-layer": "ProvinceCapital_P@China",
7171
"type": "symbol",
7272
"symbol": symbolId,
7373
"layout": {
74-
"icon-size": [
75-
"interpolate",
76-
["linear"],
77-
["get", "GDP_2009"],
78-
1,
79-
0.3,
80-
40000,
81-
2
82-
]
74+
"icon-size": 0.8
8375
}
8476
});
8577
};
8678

8779
map.on("load", function () {
8880
// 配置基础路径
8981
new mapboxgl.supermap.WebSymbol().init({basePath: window.exampleWebSymbolBasePath});
90-
var symbolId = "point-311";
82+
var symbolId = "point-909063";
9183
map.loadSymbol(symbolId, function (error, symbol) {
9284
if (error) {
9385
widgets.alert.showAlert(resources.msg_addWebSymbolFailed, false);

examples/maplibregl/config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,11 +1210,11 @@ var exampleConfig = {
12101210
thumbnail: 'websymbol_landuseOfJingjin.png',
12111211
fileName: 'websymbol_landuseOfJingjin'
12121212
},{
1213-
name: '2019年中国各省GDP',
1214-
name_en: "2019 China's GDP by Province",
1213+
name: '中国省会地理位置',
1214+
name_en: "China Provincial Capitals Locations",
12151215
version: '11.1.0',
1216-
thumbnail: 'websymbol_2019ChinaGDP.png',
1217-
fileName: 'websymbol_2019ChinaGDP'
1216+
thumbnail: 'websymbol_ChinaProvinceCapitals.png',
1217+
fileName: 'websymbol_ChinaProvinceCapitals'
12181218
}
12191219
]
12201220
},
-44.4 KB
Binary file not shown.
62.1 KB
Loading

examples/maplibregl/websymbol_2019ChinaGDP.html renamed to examples/maplibregl/websymbol_ChinaProvinceCapitals.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<head>
88
<meta charset="UTF-8">
99
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
10-
<title data-i18n="resources.title_websymbol_2019ChinaGDP"></title>
10+
<title data-i18n="resources.title_websymbol_ChinaProvinceCapitals"></title>
1111
<style>
1212
body {
1313
margin: 0;
@@ -50,44 +50,36 @@
5050
"type": "raster"
5151
}
5252
},
53-
"name": "2019年中国各省GDP",
53+
"name": "中国省会地理位置",
5454
"layers": [{
5555
"id": "simple-tiles",
5656
"type": "raster",
5757
"source": "raster-tiles"
5858
}],
5959
"version": 8
6060
},
61-
zoom: 4.5,
62-
center: [110, 35],
61+
zoom: 5.5,
62+
center: [108, 35],
6363
});
6464

6565

6666
var createConsumptionLevel = function (symbolId) {
6767
map.addLayer({
68-
"id": "China_Province_pg@China#point",
68+
"id": "ProvinceCapital_P@China#point",
6969
"source": "china",
70-
"source-layer": "China_Province_pg@China",
70+
"source-layer": "ProvinceCapital_P@China",
7171
"type": "symbol",
7272
"symbol": symbolId,
7373
"layout": {
74-
"icon-size": [
75-
"interpolate",
76-
["linear"],
77-
["get", "GDP_2009"],
78-
1,
79-
0.3,
80-
40000,
81-
2
82-
]
74+
"icon-size": 0.8
8375
}
8476
});
8577
};
8678

8779
map.on("load", function () {
8880
// 配置基础路径
8981
new maplibregl.supermap.WebSymbol().init({basePath: window.exampleWebSymbolBasePath});
90-
var symbolId = "point-311";
82+
var symbolId = "point-909063";
9183
map.loadSymbol(symbolId, function (error, symbol) {
9284
if (error) {
9385
widgets.alert.showAlert(resources.msg_addWebSymbolFailed, false);

0 commit comments

Comments
 (0)