湘潭区域地图代码更新

master
gongdi 3 years ago
parent 308c625eab
commit 958b52c29b

@ -51,7 +51,6 @@
</script>
<script type="text/javascript" src="js/echarts.min.js"></script>
<script language="JavaScript" src="js/areaIndex.js"></script>
<body>
<div class="loading">
@ -202,21 +201,21 @@
var argsIndex = url.split("?area_name=");
var script = $("<script>");
var body = $("body");
if (area_name === '南关区') {
if (area_name === '雨湖区') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/nanguan.js');
} else if (area_name === '二道区') {
$(script).attr('src', 'js/yuhu.js');
} else if (area_name === '岳塘区') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/erdao.js');
} else if (area_name === '榆树市') {
$(script).attr('src', 'js/yuetang.js');
} else if (area_name === '韶山市') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/yushu.js');
} else if (area_name === '德惠市') {
$(script).attr('src', 'js/shaoshan.js');
} else if (area_name === '湘乡市') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/dehui.js');
} else if (area_name === '农安县') {
$(script).attr('src', 'js/xiangxiang.js');
} else if (area_name === '湘潭县') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/nongan.js');
$(script).attr('src', 'js/xiangtan.js');
} else if (area_name === '九台区') {
$(script).attr('type', 'text/javascript');
$(script).attr('src', 'js/jiutai.js');

@ -78,9 +78,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
var tab_list = [];
newData.map((item, index) => {
@ -149,7 +150,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var indata = JSON.parse(data);
var indata = [];
if(data && data !== ""){
indata = JSON.parse(data);
}
newData = dataToChar(indata);
// 基于准备好的dom初始化echarts实例
@ -231,7 +235,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('echart_school_size_qx2')); // 学校规模情况
@ -355,7 +362,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('student_situation_qx3')); // 学生情况
E_chart_area.push(myChart);
@ -507,8 +517,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('class_capacity_qx4')); // 班额情况
E_chart_area.push(myChart);
@ -632,7 +644,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
var averageAreaName = [];
var small_total = 0;
var small_student_num = 0;
@ -796,7 +811,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
// if (newData[1] === undefined) {
// $("#taacher_and_student_qx61").addClass("sqzn_all");
// $("#taacher_and_student_qx61").removeClass("sy");
@ -1059,7 +1077,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
if (newData[2] === undefined) {
$("#student_boys_and_girls11").addClass("sqzn");
$("#student_boys_and_girls11").removeClass("sy");
@ -1279,7 +1300,10 @@ $(function () {
]
}), function (resport) {
var data = resport.result;
var newData = JSON.parse(data);
var newData = [];
if(data && data !== ""){
newData = JSON.parse(data);
}
_tab = "";
var primary_school = [];

@ -32,6 +32,7 @@ $(function () {
}), function (resport) {
var data = resport.result;
var indata = JSON.parse(data);
console.log("indata",indata)
var areaList = [];
var schoolList = [];
indata.groups[1].map((item, index) => {
@ -82,7 +83,7 @@ $(function () {
},
geo: {
map: "changchun",
map: "xiangtan",
label: {
normal: {
show: true, //省份名称
@ -108,7 +109,7 @@ $(function () {
},
regions: [
{
name: '榆树市',
name: '雨湖区',
label: {
color: '#fff',
borderWidth: 0
@ -128,7 +129,7 @@ $(function () {
},
{
name: '德惠市',
name: '岳塘区',
label: {
color: '#fff',
borderWidth: 0
@ -148,7 +149,7 @@ $(function () {
},
{
name: '九台区',
name: '韶山市',
label: {
color: '#fff',
borderWidth: 0
@ -168,7 +169,7 @@ $(function () {
},
{
name: '农安县',
name: '湘潭县',
label: {
color: '#fff',
borderWidth: 0
@ -188,7 +189,7 @@ $(function () {
},
{
name: '二道区',
name: '湘乡市',
label: {
color: '#fff',
borderWidth: 0
@ -207,125 +208,125 @@ $(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',
},
},
},
// {
// 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',
// },
// },
// },
],
},
@ -333,7 +334,7 @@ $(function () {
{
name: "学校数量",
type: "map",
map: "changchun",
map: "xiangtan",
coordinateSystem: "geo",
// data: [
// { name: '南关区', schoolNum: '191' },

@ -12,22 +12,22 @@ $(function () {
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById("map_3"));
var data = [
{ name: "东北师大附中明珠学校", value: 51 },
{ name: "长春市第二实验中学", value: 51 },
{ name: "长春市南关区教师进修学校", value: 51 },
{ name: "长春市南关区东四小学", value: 51 },
{ name: "吉林大学第二附属小学", value: 51 },
{ name: "长春市一零三中学", value: 51 },
{ name: "吉林省实验繁荣学校", value: 51 },
{ name: "长春外国语实验学校", value: 51 },
{ name: "长春市第三十九中学校", value: 51 },
{ name: "长春希望高中", value: 51 },
{ name: "长春市第五十六中学校", value: 51 },
{ name: "长春市南关区西五小学", value: 51 },
{ name: "长春市南关区育智学校", value: 51 },
{ name: "长春市南关区树勋小学", value: 51 },
{ name: "长春市南关区自强小学", value: 51 },
{ name: "净月潭小学校", value: 51 },
// { name: "东北师大附中明珠学校", value: 51 },
// { name: "长春市第二实验中学", value: 51 },
// { name: "长春市南关区教师进修学校", value: 51 },
// { name: "长春市南关区东四小学", value: 51 },
// { name: "吉林大学第二附属小学", value: 51 },
// { name: "长春市一零三中学", value: 51 },
// { name: "吉林省实验繁荣学校", value: 51 },
// { name: "长春外国语实验学校", value: 51 },
// { name: "长春市第三十九中学校", value: 51 },
// { name: "长春希望高中", value: 51 },
// { name: "长春市第五十六中学校", value: 51 },
// { name: "长春市南关区西五小学", value: 51 },
// { name: "长春市南关区育智学校", value: 51 },
// { name: "长春市南关区树勋小学", value: 51 },
// { name: "长春市南关区自强小学", value: 51 },
// { name: "净月潭小学校", value: 51 },
];
var geoCoordMap = {
// 东北师大附中明珠学校: [125.33070696353912, 43.8241805488479],
@ -78,7 +78,7 @@ $(function () {
},
geo: {
map: "nanguan",
map: "county",
label: {
normal: {
show: true, //省份名称

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,52 @@
(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": {
"adcode": 430304,
"name": "岳塘区",
"center": [112.927707, 27.828854],
"centroid": [112.997621, 27.886637],
"childrenNum": 0,
"level": "district",
"parent": {"adcode": 430300},
"subFeatureIndex": 1,
"acroutes": [100000, 430000, 430300]
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [[[[113.003188, 27.965158], [113.004869, 27.963235], [113.008297, 27.960153], [113.009749, 27.956667], [113.010469, 27.952066], [113.010273, 27.948052], [113.00869, 27.943435], [113.0038, 27.938613], [112.998844, 27.93465], [112.992633, 27.932529], [112.988768, 27.931552], [112.984915, 27.929798], [112.979413, 27.926627], [112.977252, 27.923647], [112.975757, 27.920402], [112.974141, 27.915711], [112.971663, 27.911908], [112.969262, 27.909655], [112.967242, 27.906035], [112.963989, 27.895639], [112.962516, 27.889559], [112.961097, 27.885314], [112.957964, 27.879491], [112.955715, 27.876135], [112.952539, 27.872625], [112.947736, 27.86838], [112.93706, 27.862247], [112.929571, 27.858339], [112.906146, 27.848195], [112.90107, 27.84558], [112.896758, 27.843589], [112.89392, 27.841753], [112.891781, 27.839027], [112.890831, 27.837294], [112.889314, 27.833576], [112.887949, 27.829043], [112.887109, 27.823591], [112.887283, 27.818139], [112.888091, 27.813128], [112.890383, 27.807198], [112.892261, 27.803142], [112.894291, 27.800158], [112.895874, 27.79849], [112.905087, 27.793764], [112.908744, 27.791787], [112.913219, 27.790824], [112.91966, 27.790361], [112.924987, 27.790824], [112.927716, 27.791353], [112.932006, 27.79139], [112.941797, 27.793154], [112.97139, 27.801444], [112.999368, 27.810777], [113.004203, 27.812797], [113.008057, 27.817155], [113.012456, 27.822893], [113.019267, 27.828918], [113.02693, 27.834105], [113.033633, 27.839115], [113.038141, 27.843281], [113.040957, 27.84475], [113.046382, 27.84641], [113.045073, 27.849811], [113.042322, 27.855284], [113.042038, 27.856349], [113.042758, 27.860881], [113.04254, 27.862225], [113.039789, 27.862452], [113.038599, 27.86412], [113.038599, 27.866661], [113.03932, 27.86871], [113.040248, 27.870142], [113.042551, 27.872669], [113.045924, 27.875621], [113.046382, 27.876561], [113.047769, 27.88367], [113.04838, 27.891005], [113.053423, 27.900382], [113.057113, 27.904941], [113.061337, 27.910881], [113.061654, 27.915697], [113.063313, 27.923713], [113.065212, 27.930356], [113.069208, 27.938584], [113.076543, 27.944037], [113.079883, 27.946349], [113.08115, 27.945909], [113.082743, 27.946217], [113.085101, 27.949028], [113.086684, 27.950107], [113.087983, 27.953431], [113.089337, 27.957974], [113.090898, 27.962406], [113.09128, 27.964607], [113.090963, 27.965114], [113.089173, 27.964967], [113.085385, 27.963822], [113.082318, 27.96427], [113.080811, 27.965994], [113.080691, 27.967968], [113.078704, 27.968885], [113.077056, 27.968687], [113.074818, 27.968929], [113.073563, 27.970426], [113.073727, 27.972011], [113.075266, 27.974014], [113.077023, 27.975628], [113.082274, 27.979172], [113.084348, 27.980735], [113.086837, 27.983266], [113.090308, 27.987389], [113.090952, 27.989883], [113.088922, 27.992165], [113.088059, 27.993727], [113.086979, 27.996852], [113.084948, 27.998349], [113.080233, 28.002303], [113.07674, 28.006271], [113.075834, 28.008603], [113.07436, 28.009887], [113.071729, 28.010892], [113.068225, 28.010731], [113.047703, 28.007555], [113.041689, 28.006176], [113.0398, 28.004892], [113.037541, 28.001173], [113.03563, 27.999493], [113.033349, 27.996757], [113.030871, 27.994732], [113.030052, 27.991937], [113.032377, 27.986604], [113.033382, 27.983889], [113.035336, 27.981131], [113.035903, 27.979539], [113.035925, 27.977418], [113.035357, 27.976127], [113.034091, 27.975137], [113.030718, 27.974931], [113.02931, 27.975672], [113.027793, 27.978482], [113.028371, 27.980823], [113.03026, 27.982202], [113.030434, 27.98306], [113.028339, 27.984579], [113.026134, 27.985658], [113.022859, 27.985269], [113.023634, 27.983398], [113.024442, 27.979385], [113.023907, 27.976986], [113.020763, 27.973706], [113.019366, 27.972664], [113.012347, 27.972605], [113.011255, 27.971842], [113.008417, 27.968416], [113.006136, 27.966647], [113.003188, 27.965158]]]]
}
}
],
});
});

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save