function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"440422","map_x":"112.498975","map_y":"34.62744","pointname":"创智广场咨询点","pointaddress":"创智广场","areaname":"洛龙区","areacode":"100041003007"},{"id":"440421","map_x":"112.446667","map_y":"34.629372","pointname":"洛龙咨询点","pointaddress":"奥林商务","areaname":"洛龙区","areacode":"100041003007"},{"id":"440420","map_x":"112.460557","map_y":"34.680044","pointname":"西工区咨询点","pointaddress":"华源凯旋广场","areaname":"西工区","areacode":"100041003003"},{"id":"440419","map_x":"112.412771","map_y":"34.663097","pointname":"洛阳涧西万达总校址","pointaddress":"富地国际B座","areaname":"涧西区","areacode":"100041003005"},{"id":"440388","map_x":"112.412771","map_y":"34.663097","pointname":"洛阳建侨教育","pointaddress":"富地国际","areaname":"涧西区","areacode":"100041003005"},]; //补充其他行政区分组 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(`