',
onPageChange: function (num, type, change) {
//console.log('我被点击页面,重新请求数据渲染:' + num);
infoList(num);
}
});
}
})
}
function bMap(e) {
var getUrl = '/eportal/ui?pageId=deb02dd5259c459e8afd0dcbeb8bfb4c&moduleId=5&portal.url=/portlet/dzsb-front!queryFrontIndex.portlet';
$.ajax({
url: getUrl,
async: true,
success: function (res) {
var _html = '';
var getData = eval('(' + res + ')');
var dataLen = getData.length;
for (var i = 0; i < dataLen; i++) {
var d = getData[i];
var map = new BMap.Map("allmap");
var point = new BMap.Point(d.lon,d.lat);
var myIcon = new BMap.Icon("/eportalapply/images/img/bg.gif", new BMap.Size(40, 35), {
offset: new BMap.Size(0, 0),
imageOffset: new BMap.Size(0, 0)
});
var marker = new BMap.Marker(point, {icon: myIcon});
map.addOverlay(marker);
map.centerAndZoom(point, 11);
map.enableScrollWheelZoom(true);
var navigationControl = new BMap.NavigationControl({
anchor: BMAP_ANCHOR_TOP_LEFT,
type: BMAP_NAVIGATION_CONTROL_LARGE,
enableGeolocation: false,
});
map.addControl(navigationControl);
var mapType = new BMap.MapTypeControl(
{
mapTypes: [BMAP_NORMAL_MAP, BMAP_HYBRID_MAP],
anchor: BMAP_ANCHOR_TOP_RIGHT
}
);
map.addControl(mapType);
var opts = {
width: 300,
height: 180,
lineHeight:50+'px',
enableMessage: true,
message: "地震地点情况"
}
var infoW = '震区:' + d.locationCname + '