百度地图
来源:互联网 发布:cst2010仿真软件下载 编辑:程序博客网 时间:2024/06/10 15:57
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>在事件监听函数中获取环境参数</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script>
</head>
<body>
<div style="width:520px;height:340px;border:1px solid gray" id="container"></div>
<div id="info"></div>
</body>
</html>
<script type="text/javascript">
var map = new BMap.Map("container");
map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);
map.addEventListener("dragend", function(){
var center = map.getCenter();
document.getElementById("info").innerHTML = center.lng + ", " + center.lat;
});
</script>
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- 百度地图
- Android解读CheckBox
- hbase优化
- 深入理解typedef
- 医嘱管理制度
- Oracle自定义异常
- 百度地图
- ERP-非财务人员的财务培训教(二)------如何评价公司/部门经营业绩
- Ubuntu 安装 ADT和SDK
- 24点游戏全解-1362组
- C语言回调函数学习
- C/C++:sizeof('a')的值为什么不一样?
- 使用Logminer还原操作记录
- XDOJ最喜欢的数字
- kendo DatePicker 之 设置为中文格式