在页面加载时,运行这段文字就能加载海外地图了

map = new AMap.Map("mapViewContainer", {
resizeEnable:true,
zoom:18,
center: [116.397428, 39.90923],//地图中心点
});


//海外地图
var googleLayer = null;
function addGoogleLayer() {
googleLayer = new AMap.TileLayer({
// 图块取图地址
tileUrl: 'http://mt{1,2,3,0}.google.cn/vt/lyrs=m@142&hl=zh-CN&gl=cn&x=[x]&y=[y]&z=[z]&s=Galil',
zIndex:100
});
googleLayer.setMap(map);
}