Headquarters address
TEL
Fax
No.34 Shilong Road, Bao'an District, Shenzhen, Guangdong Province
电话:0755-27588320',
offset: new AMap.Pixel(0, -100), // 相对于基点的偏移位置
})
map.add(textMarder);
*/
map.add(marker);
openInfo();
$('#container').click(function () {
map.setStatus({
dragEnable: true,
keyboardEnable: true,
doubleClickZoom: true,
zoomEnable: true,
rotateEnable: true
});
});
function openInfo() {
//构建信息窗体中显示的内容
var info = [];
info.push("
Headquarters address: No.34 Shilong Road, Bao'an District, Shenzhen, Guangdong Province
"); info.push("电话:0755-27588320
"); infoWindow = new AMap.InfoWindow({ content: info.join(""), //使用默认信息窗体框样式,显示信息内容 anchor: 'bottom-center', }); infoWindow.open(map, [113.963395,22.691092]); }