湘潭区域地图代码更新

master
gongdi 3 years ago
parent 958b52c29b
commit c7ba37a86a

@ -216,36 +216,15 @@
} else if (area_name === '湘潭县') { } else if (area_name === '湘潭县') {
$(script).attr('type', 'text/javascript'); $(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/xiangtan.js'); $(script).attr('src', 'js/xiangtan.js');
} else if (area_name === '九台区') { } else if (area_name === '九华经开区代管') {
$(script).attr('type', 'text/javascript'); $(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/jiutai.js'); $(script).attr('src', 'js/jiuhua.js');
} else if (area_name === '宽城区') { }else if (area_name === '昭山示范区代管') {
$(script).attr('type', 'text/javascript'); $(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/kuancheng.js'); $(script).attr('src', 'js/zhaoshan.js');
} else if (area_name === '绿园区') { }else if (area_name === '湘潭高新区') {
$(script).attr('type', 'text/javascript'); $(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/lvyuan.js'); $(script).attr('src', 'js/gaoxin.js');
} else if (area_name === '朝阳区') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/chaoyang.js');
} else if (area_name === '双阳区') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/shuangyang.js');
} else if (area_name === '新区代管') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/xinqudaiguan.js');
} else if (area_name === '经开区代管') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/jingkai.js');
} else if (area_name === '莲花山度假区代管') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/lianhuashan.js');
} else if (area_name === '净月区代管') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/jingyue.js');
} else if (area_name === '汽车区代管') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/qikai.js');
} }
$(body).append(script); $(body).append(script);
</script> </script>

@ -208,126 +208,6 @@ $(function () {
}, },
}, },
// {
// name: '双阳区',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#1076FE',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#1076FE',
// },
// },
// },
//
// {
// name: '宽城区',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#1191FE',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#1191FE',
// },
// },
// },
//
// {
// name: '绿园区',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#0366FE',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#0366FE',
// },
// },
// },
//
// {
// name: '南关区',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#0580FC',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#0580FC',
// },
// },
// },
//
// {
// name: '公主岭市',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#0066FF',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#0066FF',
// },
// },
// },
//
// {
// name: '朝阳区',
// label: {
// color: '#fff',
// borderWidth: 0
// },
// itemStyle: {
// areaColor: '#035EEA',
// },
// emphasis: {
// label: {
// color: '#fff',
// borderWidth: 0,
// },
// itemStyle: {
// areaColor: '#035EEA',
// },
// },
// },
], ],
}, },
series: [ series: [
@ -434,7 +314,7 @@ $(function () {
// }, // },
regions: [ regions: [
{ {
name: '净月区代管', name: '九华经开区代管',
label: { label: {
color: '#fff', color: '#fff',
borderWidth: 0 borderWidth: 0
@ -454,7 +334,7 @@ $(function () {
}, },
{ {
name: '莲花山度假区代管', name: '昭山示范区代管',
label: { label: {
color: '#fff', color: '#fff',
borderWidth: 0 borderWidth: 0
@ -474,107 +354,7 @@ $(function () {
}, },
{ {
name: '新区代管', name: '湘潭高新区',
label: {
color: '#fff',
borderWidth: 0
},
itemStyle: {
areaColor: '#6DDEFF',
},
emphasis: {
label: {
color: '#fff',
borderWidth: 0,
},
itemStyle: {
areaColor: '#6DDEFF',
},
},
},
{
name: '汽车区代管',
label: {
color: '#fff',
borderWidth: 0
},
itemStyle: {
areaColor: '#22ACF7',
},
emphasis: {
label: {
color: '#fff',
borderWidth: 0,
},
itemStyle: {
areaColor: '#22ACF7',
},
},
},
{
name: '经开区代管',
label: {
color: '#fff',
borderWidth: 0
},
itemStyle: {
areaColor: '#0066FF',
},
emphasis: {
label: {
color: '#fff',
borderWidth: 0,
},
itemStyle: {
areaColor: '#0066FF',
},
},
},
{
name: '新区代管',
label: {
color: '#fff',
borderWidth: 0
},
itemStyle: {
areaColor: '#6DDEFF',
},
emphasis: {
label: {
color: '#fff',
borderWidth: 0,
},
itemStyle: {
areaColor: '#6DDEFF',
},
},
},
{
name: '新区代管',
label: {
color: '#fff',
borderWidth: 0
},
itemStyle: {
areaColor: '#6DDEFF',
},
emphasis: {
label: {
color: '#fff',
borderWidth: 0,
},
itemStyle: {
areaColor: '#6DDEFF',
},
},
},
{
name: '新区代管',
label: { label: {
color: '#fff', color: '#fff',
borderWidth: 0 borderWidth: 0
@ -592,10 +372,8 @@ $(function () {
}, },
}, },
}, },
], ],
}, },
series: [ series: [
{ {
type: 'map', type: 'map',

File diff suppressed because it is too large Load Diff

@ -0,0 +1,449 @@
(function (root, factory) {
if (typeof define === "function") {
// AMD. Register as an anonymous module.
define(["exports", "echarts"], factory);
} else if (
typeof exports === "object" &&
typeof exports.nodeName !== "string"
) {
// CommonJS
factory(exports, require("echarts"));
} else {
// Browser globals
factory({}, root.echarts);
}
})(this, function (exports, echarts) {
var log = function (msg) {
if (typeof console !== "undefined") {
console && console.error && console.error(msg);
}
};
if (!echarts) {
log("ECharts is not Loaded");
return;
}
if (!echarts.registerMap) {
log("ECharts Map is not loaded");
return;
}
echarts.registerMap("county", {
type: "FeatureCollection",
features: [
{
type: "Feature",
properties: {
name: "湘潭高新区"
},
geometry: {
type: "Polygon",
coordinates: [[
[
112.96157159,
27.7993273
],
[
112.96114882,
27.80194505
],
[
112.96030328,
27.80568459
],
[
112.95818945,
27.80905006
],
[
112.95734391,
27.81316327
],
[
112.95353903,
27.81540678
],
[
112.94973416,
27.81465895
],
[
112.94170165,
27.81503286
],
[
112.93197808,
27.81540678
],
[
112.93155531,
27.81690242
],
[
112.92986425,
27.81839805
],
[
112.92986423,
27.82213702
],
[
112.9349374,
27.82176313
],
[
112.94635202,
27.82251091
],
[
112.95607559,
27.82363258
],
[
112.95607558,
27.8269975
],
[
112.9556528,
27.82924073
],
[
112.95607555,
27.83410089
],
[
112.95649831,
27.83709165
],
[
112.9564983,
27.83896084
],
[
112.95734382,
27.84232529
],
[
112.96072593,
27.84494202
],
[
112.95945762,
27.84868009
],
[
112.95903485,
27.85241804
],
[
112.95818931,
27.85391318
],
[
112.95776654,
27.85727718
],
[
112.95734377,
27.85914602
],
[
112.95734376,
27.86064107
],
[
112.95818928,
27.86437861
],
[
112.95861204,
27.86549985
],
[
112.96030309,
27.87110586
],
[
112.96030308,
27.87446933
],
[
112.96030307,
27.87633788
],
[
112.96072583,
27.8793275
],
[
112.96114858,
27.88231703
],
[
112.96326241,
27.88269071
],
[
112.96664454,
27.88082227
],
[
112.96918114,
27.8793275
],
[
112.97129497,
27.8782064
],
[
112.9746771,
27.87521675
],
[
112.97467711,
27.86998468
],
[
112.97679094,
27.86774229
],
[
112.97763647,
27.86325736
],
[
112.97848201,
27.86101483
],
[
112.98059583,
27.86064107
],
[
112.98355519,
27.86138859
],
[
112.98566901,
27.86325736
],
[
112.98609177,
27.86475236
],
[
112.98862836,
27.86774229
],
[
112.98778282,
27.87147958
],
[
112.98862835,
27.87297447
],
[
112.99116495,
27.87073213
],
[
112.99285601,
27.86886349
],
[
112.99370154,
27.86848976
],
[
113.00046578,
27.86923722
],
[
113.00300237,
27.87110586
],
[
113.00342514,
27.87446933
],
[
113.00765279,
27.87484304
],
[
113.00976662,
27.87297447
],
[
113.01103491,
27.87073213
],
[
113.01230321,
27.87185331
],
[
113.01399427,
27.87446933
],
[
113.0148398,
27.87633788
],
[
113.01695363,
27.87446933
],
[
113.01906745,
27.87409562
],
[
113.02371787,
27.87446933
],
[
113.0258317,
27.87671159
],
[
113.02752276,
27.87409562
],
[
113.02879105,
27.87110586
],
[
113.03005934,
27.86699481
],
[
113.03217316,
27.86549985
],
[
113.03386422,
27.86250986
],
[
113.03386421,
27.85989355
],
[
113.03344145,
27.85877225
],
[
113.0351325,
27.8569034
],
[
113.03640079,
27.85466074
],
[
113.03809184,
27.85167071
],
[
113.0397829,
27.84905443
],
[
113.04062842,
27.8464378
],
[
113.04147395,
27.84456874
],
[
113.03640077,
27.84232583
],
[
113.03344141,
27.83896138
],
[
113.03175035,
27.83746603
],
[
113.0275227,
27.83522297
],
[
113.02414059,
27.83260602
],
[
113.021604,
27.829989
],
[
113.01822189,
27.82737191
],
[
113.01357148,
27.82475477
],
[
113.01188042,
27.82138978
],
[
113.01061213,
27.81652906
],
[
113.00892107,
27.81503341
],
[
113.00596173,
27.81391165
],
[
113.00257962,
27.81166812
],
[
112.99835198,
27.81092026
],
[
112.99370159,
27.80792879
],
[
112.98905119,
27.80718091
],
[
112.98566909,
27.80531118
],
[
112.97636829,
27.80381538
],
[
112.97087238,
27.80119768
],
[
112.96579922,
27.80007578
],
[
112.96241711,
27.79932785
]
]]
}
}
],
});
});

@ -0,0 +1,497 @@
(function (root, factory) {
if (typeof define === "function") {
// AMD. Register as an anonymous module.
define(["exports", "echarts"], factory);
} else if (
typeof exports === "object" &&
typeof exports.nodeName !== "string"
) {
// CommonJS
factory(exports, require("echarts"));
} else {
// Browser globals
factory({}, root.echarts);
}
})(this, function (exports, echarts) {
var log = function (msg) {
if (typeof console !== "undefined") {
console && console.error && console.error(msg);
}
};
if (!echarts) {
log("ECharts is not Loaded");
return;
}
if (!echarts.registerMap) {
log("ECharts Map is not loaded");
return;
}
echarts.registerMap("county", {
type: "FeatureCollection",
features: [
{
type: "Feature",
properties: {
name: "九华经开区代管"
},
geometry: {
type: "Polygon",
coordinates: [[
[
112.8676582,
27.98687997
],
[
112.8664949,
27.97900411
],
[
112.87269906,
27.97284
],
[
112.86455606,
27.96873041
],
[
112.86145396,
27.9632507
],
[
112.8560253,
27.95914074
],
[
112.85292316,
27.93310743
],
[
112.84361691,
27.92694074
],
[
112.82267786,
27.92591292
],
[
112.83275962,
27.92317204
],
[
112.84090258,
27.92008845
],
[
112.83935154,
27.91700479
],
[
112.83818826,
27.91563424
],
[
112.84516794,
27.91323574
],
[
112.84322913,
27.90980923
],
[
112.84284137,
27.90843859
],
[
112.84129033,
27.90569726
],
[
112.83818825,
27.90295587
],
[
112.84090257,
27.90261319
],
[
112.84710672,
27.90329855
],
[
112.84827,
27.89987172
],
[
112.84904551,
27.89678749
],
[
112.84982103,
27.89370317
],
[
112.85331086,
27.89507399
],
[
112.8568007,
27.89678749
],
[
112.85873949,
27.89438858
],
[
112.89325011,
27.90158515
],
[
112.90022976,
27.89781558
],
[
112.90837272,
27.89987172
],
[
112.90604625,
27.91494896
],
[
112.89906656,
27.91323574
],
[
112.89674002,
27.91837532
],
[
112.90798509,
27.92282942
],
[
112.91690351,
27.9122078
],
[
112.91535243,
27.90569726
],
[
112.96227121,
27.88993332
],
[
112.96576113,
27.89952903
],
[
112.96886329,
27.90809593
],
[
112.97274094,
27.91323574
],
[
112.9758431,
27.92180157
],
[
112.98049628,
27.92694074
],
[
112.98786377,
27.93173708
],
[
112.99445572,
27.93310743
],
[
113.0006599,
27.93447776
],
[
113.00376205,
27.9399589
],
[
113.00880296,
27.9416717
],
[
113.00957857,
27.94920771
],
[
113.01074195,
27.9567432
],
[
113.00725216,
27.96188073
],
[
112.99910926,
27.96941535
],
[
112.99096634,
27.9752372
],
[
112.98437444,
27.97968899
],
[
112.97584375,
27.98585272
],
[
112.96847631,
27.98996167
],
[
112.96537426,
27.99509765
],
[
112.95955785,
27.99680959
],
[
112.95490474,
28.00057576
],
[
112.95219045,
28.00639595
],
[
112.94792512,
28.01324284
],
[
112.943272,
28.01700844
],
[
112.93939439,
28.01940467
],
[
112.93435344,
28.01529682
],
[
112.9343534,
28.0094771
],
[
112.93435336,
28.00331471
],
[
112.93357781,
27.99954863
],
[
112.92892462,
27.99407047
],
[
112.93086342,
27.99167369
],
[
112.93978192,
27.98893445
],
[
112.94172071,
27.98585272
],
[
112.94172069,
27.98345575
],
[
112.94016962,
27.9807163
],
[
112.93706755,
27.98379818
],
[
112.93551651,
27.98482545
],
[
112.9304756,
27.98414061
],
[
112.9293123,
27.98208604
],
[
112.92892453,
27.9807163
],
[
112.92892452,
27.97866167
],
[
112.92892451,
27.9772919
],
[
112.92310808,
27.9759221
],
[
112.91961823,
27.9772919
],
[
112.91302627,
27.97557965
],
[
112.90953641,
27.97420984
],
[
112.90565878,
27.97147016
],
[
112.90294448,
27.97626455
],
[
112.90139344,
27.97763434
],
[
112.89751582,
27.97797679
],
[
112.89208715,
27.97694945
],
[
112.88937281,
27.97352492
],
[
112.88588297,
27.97626455
],
[
112.88471969,
27.97934655
],
[
112.88549522,
27.98140117
],
[
112.88782181,
27.98482545
],
[
112.88976062,
27.98653755
],
[
112.89208721,
27.99030408
],
[
112.89208723,
27.99509765
],
[
112.8893729,
27.9964672
],
[
112.88820961,
27.99509765
],
[
112.88588304,
27.99407047
],
[
112.88200542,
27.99475526
],
[
112.88200543,
27.9985215
],
[
112.88045439,
28.00160287
],
[
112.8804544,
28.00228761
],
[
112.87735231,
28.00502652
],
[
112.87192363,
28.00365708
],
[
112.87153586,
28.00228761
],
[
112.86959705,
28.00160287
],
[
112.87153585,
27.99886388
],
[
112.87463795,
27.99817912
],
[
112.87541346,
27.99544004
],
[
112.87425017,
27.99270089
],
[
112.87231135,
27.98893445
],
[
112.86959701,
27.98722238
],
[
112.86804596,
27.98687997
]
]]
}
}
],
});
});

@ -0,0 +1,545 @@
(function (root, factory) {
if (typeof define === "function") {
// AMD. Register as an anonymous module.
define(["exports", "echarts"], factory);
} else if (
typeof exports === "object" &&
typeof exports.nodeName !== "string"
) {
// CommonJS
factory(exports, require("echarts"));
} else {
// Browser globals
factory({}, root.echarts);
}
})(this, function (exports, echarts) {
var log = function (msg) {
if (typeof console !== "undefined") {
console && console.error && console.error(msg);
}
};
if (!echarts) {
log("ECharts is not Loaded");
return;
}
if (!echarts.registerMap) {
log("ECharts Map is not loaded");
return;
}
echarts.registerMap("county", {
type: "FeatureCollection",
features: [
{
type: "Feature",
properties: {
name: "昭山示范区代管"
},
geometry: {
type: "Polygon",
coordinates: [[
[
112.99318162,
27.93252855
],
[
112.994559,
27.93222432
],
[
112.99559204,
27.93192009
],
[
112.99559205,
27.93039893
],
[
112.99455903,
27.92553107
],
[
112.99559206,
27.9270523
],
[
112.99696943,
27.92918198
],
[
112.99834681,
27.93070316
],
[
113.00006853,
27.93039893
],
[
113.00247895,
27.93009469
],
[
113.00282329,
27.92918198
],
[
113.00420068,
27.92766078
],
[
113.00454503,
27.92613956
],
[
113.00523373,
27.92309706
],
[
113.0072998,
27.92096726
],
[
113.01212063,
27.92127152
],
[
113.01315366,
27.92218429
],
[
113.01487538,
27.92248855
],
[
113.02520572,
27.92218429
],
[
113.02761614,
27.92096726
],
[
113.02968221,
27.92035873
],
[
113.03105959,
27.91944594
],
[
113.03622476,
27.91822888
],
[
113.03863517,
27.91792461
],
[
113.04104558,
27.91731607
],
[
113.04655509,
27.91640325
],
[
113.04896551,
27.91579471
],
[
113.05206461,
27.91549043
],
[
113.05481936,
27.91518616
],
[
113.05964019,
27.91549043
],
[
113.06101756,
27.91579471
],
[
113.06170625,
27.91640325
],
[
113.06273929,
27.91822888
],
[
113.06342798,
27.92096726
],
[
113.06377233,
27.92400977
],
[
113.06446103,
27.92735649
],
[
113.06549407,
27.93009464
],
[
113.06583842,
27.93192004
],
[
113.06687146,
27.93435385
],
[
113.06962623,
27.93770026
],
[
113.07203665,
27.94043815
],
[
113.07306969,
27.94135077
],
[
113.07582445,
27.94317598
],
[
113.07961226,
27.94500116
],
[
113.08202268,
27.94560954
],
[
113.08305572,
27.94743468
],
[
113.08443311,
27.94956397
],
[
113.08649919,
27.9519974
],
[
113.08925396,
27.9550391
],
[
113.08959832,
27.95899319
],
[
113.09132007,
27.96264299
],
[
113.08890966,
27.96598854
],
[
113.08649923,
27.96477199
],
[
113.08271143,
27.96598854
],
[
113.08133405,
27.96811747
],
[
113.07754625,
27.96933398
],
[
113.07582452,
27.96994223
],
[
113.07479149,
27.97207108
],
[
113.07685757,
27.97450401
],
[
113.07754627,
27.97663278
],
[
113.08098974,
27.97724099
],
[
113.08167844,
27.97997789
],
[
113.08408887,
27.98180246
],
[
113.0858106,
27.98301882
],
[
113.08787669,
27.98484334
],
[
113.08856538,
27.98575559
],
[
113.08994278,
27.98758006
],
[
113.09028713,
27.98970857
],
[
113.08890976,
27.99366141
],
[
113.08787673,
27.99670196
],
[
113.08581066,
27.99852625
],
[
113.08374458,
28.00035051
],
[
113.0816785,
28.00126262
],
[
113.08064547,
28.00308684
],
[
113.07823505,
28.0058231
],
[
113.07685767,
28.00825528
],
[
113.0741029,
28.01007937
],
[
113.06997073,
28.0106874
],
[
113.06652726,
28.01038339
],
[
113.05860728,
28.01007937
],
[
113.05481946,
28.00977536
],
[
113.05275337,
28.00825528
],
[
113.04758817,
28.00795126
],
[
113.04448904,
28.00673517
],
[
113.04173427,
28.00491102
],
[
113.03863515,
28.00156666
],
[
113.03656907,
27.99974242
],
[
113.03450299,
27.99639791
],
[
113.03278125,
27.99396547
],
[
113.03209256,
27.99092471
],
[
113.03312561,
27.98666769
],
[
113.03519169,
27.98301869
],
[
113.03553604,
27.97724085
],
[
113.03346996,
27.9751121
],
[
113.02968215,
27.97541621
],
[
113.02864911,
27.97784906
],
[
113.02830476,
27.97997776
],
[
113.02968215,
27.98180233
],
[
113.02796041,
27.98453912
],
[
113.02658302,
27.98605953
],
[
113.0241726,
27.98636361
],
[
113.02382826,
27.98332278
],
[
113.02417261,
27.97815316
],
[
113.02348392,
27.97541621
],
[
113.02141785,
27.97328742
],
[
113.01556397,
27.97237507
],
[
113.0128092,
27.9729833
],
[
113.01177616,
27.97024622
],
[
113.00936575,
27.96811733
],
[
113.00798837,
27.96659667
],
[
113.00557795,
27.96568427
],
[
113.00454492,
27.96355529
],
[
113.00626665,
27.96142627
],
[
113.00695535,
27.9586889
],
[
113.00902144,
27.95321395
],
[
113.00971014,
27.9501722
],
[
113.0093658,
27.94652198
],
[
113.00867712,
27.94439263
],
[
113.00661105,
27.94256744
],
[
113.00523368,
27.94013381
],
[
113.00213458,
27.93739591
],
[
112.99869113,
27.93526639
],
[
112.994559,
27.93435372
],
[
112.99352597,
27.93313682
],
[
112.99421466,
27.93161567
]
]]
}
}
],
});
});
Loading…
Cancel
Save