var map = new AMap.Map('mapContainer', {
zoom: 18,
center: [118.787672,32.029512],
lang:'en',
});
['en', 'zh_cn', 'zh_en'].forEach(function(btn) {
var button = document.getElementById(btn);
AMap.event.addDomListener(button,'click',clickListener)
});
var marker = new AMap.Marker({
position: [118.787672,32.029512],
map:map
});
var infowindow = new AMap.InfoWindow({
content: 'High Hope Group
HIGH HOPE MANSION,91 BAI XIA ROAD,
NANJING CHINA
',
offset: new AMap.Pixel(-9, -31),
//size:new AMap.Size(230,0)
})
infowindow.open(map,new AMap.LngLat(118.787672,32.029512));
function clickListener() {
map.setLang(this.id);
}