function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"416606","map_x":"102.861817","map_y":"24.841079","pointname":"云南交通职业技术学院","pointaddress":"呈贡大学城前卫营缤纷世界","areaname":"呈贡县","areacode":"100053001021"},{"id":"416605","map_x":"102.83648","map_y":"24.827242","pointname":"云南工业职业技术学院","pointaddress":"云南工业职业技术学院","areaname":"呈贡县","areacode":"100053001021"},{"id":"416604","map_x":"102.437474","map_y":"24.908823","pointname":"云南医药健康职业学院","pointaddress":"云南医药健康职业学院","areaname":"安宁市","areacode":"100053001081"},{"id":"416603","map_x":"102.889633","map_y":"24.841226","pointname":"云南特殊教育职业学院","pointaddress":"云南特殊教育职业学院","areaname":"呈贡县","areacode":"100053001021"},{"id":"416602","map_x":"102.668635","map_y":"25.092792","pointname":"云南旅游职业学院","pointaddress":"科创大厦","areaname":"五华区","areacode":"100053001002"},{"id":"416601","map_x":"102.988353","map_y":"25.240208","pointname":"幼儿高等师范专科学校","pointaddress":"昆明幼儿高等师范专科学校","areaname":"官渡区","areacode":"100053001011"},{"id":"416600","map_x":"102.974337","map_y":"25.277814","pointname":"经贸外事外语","pointaddress":"云南经贸外事外语职业学院","areaname":"嵩明县","areacode":"100053001027"},{"id":"416599","map_x":"102.439583","map_y":"24.909283","pointname":"云南理工职业学院","pointaddress":"云南理工职业学院","areaname":"安宁市","areacode":"100053001081"},{"id":"416598","map_x":"102.723424","map_y":"25.096432","pointname":"云南财经职业学院","pointaddress":"云南财经职业学院","areaname":"五华区","areacode":"100053001002"},{"id":"416597","map_x":"102.779968","map_y":"25.100166","pointname":"云南林业职业技术学院","pointaddress":"云南林业职业技术学院","areaname":"盘龙区","areacode":"100053001003"},{"id":"416596","map_x":"102.83648","map_y":"24.827242","pointname":"国防工业职业技术学院","pointaddress":"云南国防工业职业技术学院","areaname":"呈贡县","areacode":"100053001021"},{"id":"416595","map_x":"102.831345","map_y":"24.999745","pointname":"昆明铁道职业技术学院","pointaddress":"昆明铁道职业技术学院","areaname":"官渡区","areacode":"100053001011"},{"id":"416594","map_x":"102.446322","map_y":"24.926201","pointname":"云南交通运输职业学院","pointaddress":"云南交通运输职业学院创业园汇捷车管家","areaname":"安宁市","areacode":"100053001081"},{"id":"416593","map_x":"102.996601","map_y":"25.244278","pointname":"云南商务职业学院","pointaddress":"云南商务职业学院","areaname":"嵩明县","areacode":"100053001027"},{"id":"416592","map_x":"102.695401","map_y":"25.071477","pointname":"冶金莲华商学院","pointaddress":"冶金莲华商学院","areaname":"五华区","areacode":"100053001002"},{"id":"416591","map_x":"102.98865","map_y":"25.172308","pointname":"云南农业职业技术学院","pointaddress":"云南农业职业技术学院","areaname":"官渡区","areacode":"100053001011"},{"id":"416590","map_x":"102.449242","map_y":"24.897453","pointname":"轻纺校区","pointaddress":"瀚文九万里","areaname":"安宁市","areacode":"100053001081"},{"id":"416589","map_x":"102.739837","map_y":"25.150334","pointname":"云南机电职业技术学院","pointaddress":"机电后门茨坝老村","areaname":"盘龙区","areacode":"100053001003"},{"id":"416588","map_x":"102.787615","map_y":"25.006227","pointname":"云南国土资源职业学院","pointaddress":"云南国土资源职业学院","areaname":"官渡区","areacode":"100053001011"},{"id":"416587","map_x":"103.003843","map_y":"25.25201","pointname":"云南工商学院","pointaddress":"杨林校区汇尔佳","areaname":"嵩明县","areacode":"100053001027"},]; //补充其他行政区分组 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(`
  • ${areaGroupArr[i].areaname}(${areaGroupArr[i].count})
  • `); } } //2023-6-7 简化之前逻辑,对网点列表重新构建数据 var _uls=$('.school-list-container ul'); for(var i=0;i< _uls.length;i++){ var _ul=$(_uls[i]); var _id=_ul.attr('id'); var _code=''; if(/\d+/.test(_id)){ _code=/\d+/.exec(_id)[0]; } _ul.empty(); var _index=0; var visible=_ul.is(':visible'); for(var j=0;j< data_info.length;j++){ if(_code&&data_info[j].areacode!=_code){ continue; } _index++; var _li=`
  • ${_index}${data_info[j].id==campusid?'':''}
    ${data_info[j].pointname} ${data_info[j].pointaddress}
  • `; _ul.append(_li); if(visible){ if(locationPoint && data_info[j].id==campusid){ var overlay = new ComplexCustomOverlay(new BMap.Point(locationPoint.lng, locationPoint.lat), _index, data_info[j].pointname, data_info[j].pointaddress, data_info[j].id); map.addOverlay(overlay); map.centerAndZoom(new BMap.Point(locationPoint.lng, locationPoint.lat), 15); }else{ var overlay = new ComplexCustomOverlay(new BMap.Point(data_info[j].map_x, data_info[j].map_y), _index, data_info[j].pointname, data_info[j].pointaddress, data_info[j].id); map.addOverlay(overlay); } } } if(visible){ var _activeTop=_ul.find('li.active').offset().top; var _parentTop=_ul.offset().top; _ul.scrollTop(_activeTop-_parentTop-_ul.find('li.active').outerHeight()); } } resetJybTabLine(); } }