function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"8009","map_x":"112.983872","map_y":"28.200389","pointname":"平和堂校区","pointaddress":"黄兴中路88号","areaname":"天心区","areacode":"100043001003"},{"id":"8010","map_x":"113.00161","map_y":"28.162006","pointname":"万博汇校区","pointaddress":"韶山中路万博汇","areaname":"雨花区","areacode":"100043001011"},{"id":"8011","map_x":"112.942505","map_y":"28.249928","pointname":"河西校区","pointaddress":"金星路钰龙佳园","areaname":"岳麓区","areacode":"100043001004"},{"id":"24393","map_x":"113.048683","map_y":"28.25046","pointname":"月湖校区","pointaddress":"万家丽北路一段699号","areaname":"开福区","areacode":"100043001005"},{"id":"24394","map_x":"112.992139","map_y":"28.238838","pointname":"长沙北辰校区","pointaddress":"长沙市开福区湘江北尚","areaname":"开福区","areacode":"100043001005"},{"id":"24395","map_x":"113.093039","map_y":"28.270431","pointname":"碧桂园校区","pointaddress":"星沙大道碧桂园威尼斯城商业街","areaname":"长沙县","areacode":"100043001021"},{"id":"44287","map_x":"113.007851","map_y":"28.115338","pointname":"奥林匹克校区","pointaddress":"万芙北路奥林匹克花园118号","areaname":"雨花区","areacode":"100043001011"},{"id":"44288","map_x":"113.043246","map_y":"28.16929","pointname":"大桥校区","pointaddress":"古曲路199号","areaname":"雨花区","areacode":"100043001011"},{"id":"71722","map_x":"113.045071","map_y":"28.167172","pointname":"广益校区","pointaddress":"雨花区黎托街道古曲南路188号中隆国际御玺","areaname":"雨花区","areacode":"100043001011"},]; //补充其他行政区分组 if(data_info.length>10){ var areaGroupArr=new Array(); var defaultCode=''; for(var i=0;i< data_info.length;i++){ if(data_info[i].id==campusid){ defaultCode=data_info[i].areacode; } var _item=areaGroupArr.find(it=>it.areacode==data_info[i].areacode); if(_item){ _item.count++; }else{ areaGroupArr.push({areacode:data_info[i].areacode,areaname:data_info[i].areaname,count:1,fid:data_info[i].id}); } } $('#areaul li:gt(0)').remove(); for(var i=0;i< areaGroupArr.length;i++){ $('#areaul').append(`