Skip to content

Commit 5fe8cee

Browse files
committed
【fix】优化示例
1 parent b93a8f8 commit 5fe8cee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/maplibregl/echarts_pie.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
var url = host + '/iserver/services/map-china400/rest/maps/China_4326';
5050
var chart,
5151
div,
52-
popup = '';
52+
popup = '', categoryDataMap, dataMap;
5353
var map = new maplibregl.Map({
5454
container: 'map',
5555
style: {
@@ -87,7 +87,7 @@
8787
const image = await map.loadImage('../img/marker-icon.png');
8888
map.addImage('positionPoint', image.data);
8989

90-
var categoryDataMap = {
90+
categoryDataMap = {
9191
北京市: [
9292
{ value: 335, name: resources.text_class + 'A' },
9393
{ value: 679, name: resources.text_class + 'B' },
@@ -104,7 +104,7 @@
104104
{ value: 875, name: resources.text_class + 'C' }
105105
]
106106
};
107-
var dataMap = {
107+
dataMap = {
108108
北京市: [
109109
{ value: 335, name: resources.text_commodity + 'A' },
110110
{ value: 310, name: resources.text_commodity + 'B' },

0 commit comments

Comments
 (0)