百度地图退拽标记点获取经纬度
来源:互联网 发布:手机淘宝取消私人定制 编辑:程序博客网 时间:2024/04/30 18:28
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="initial-scale=1.0, user-scalable=no" /><style type="text/css">body, html, #allmap {width: 100%;height: 100%;margin: 0;font-family: "微软雅黑";}#l-map {height: 500px;width: 100%;}#r-result {width: 100%;}</style><script type="text/javascript"src="http://api.map.baidu.com/api?v=2.0&ak=您的密钥"></script><title>设置点是否可拖拽</title></head><body><div id="l-map"></div> <input id="l-map-lng" type="text"/> <input id="l-map-lat" type="text"/></body></html><script type="text/javascript">// 百度地图API功能var map = new BMap.Map("l-map");var point = new BMap.Point(116.400244,39.92556);map.centerAndZoom(point, 12);var marker = new BMap.Marker(point);// 创建标注map.addOverlay(marker); // 将标注添加到地图中marker.enableDragging(); marker.addEventListener("dragend", function(e){ //拖动事件 document.getElementById("l-map-lng").value = e.point.lng; document.getElementById("l-map-lat").value = e.point.lat; //打印拖动结束坐标 }); </script>
0 0
- 百度地图退拽标记点获取经纬度
- 百度地图点mapView获取经纬度
- Google地图,移动标记点获取新的经纬度
- 获取百度地图经纬度
- 百度地图_根据地图上标记位置获取街道信息,以及经纬度信息
- 百度地图创建标记点
- 百度地图点击地图获取经纬度
- 百度地图API地点搜索-获取经纬度
- 百度地图API地点搜索-获取经纬度
- 基于百度地图api获取经纬度
- 百度地图 根据地址获取经纬度
- 百度地图通过经纬度获取地址信息
- 百度地图根据经纬度获取地址
- 百度地图-通过地址获取经纬度
- java根据百度地图获取经纬度
- android 基于百度地图api获取经纬度
- js 百度地图通过经纬度获取地名
- android使用百度地图获取当前经纬度
- 软件设计——UML类图详解
- 随手记 -- xcode上使用预编译宏
- harris角点及二次型
- 【leetcode】125. Valid Palindrome【java】
- leedcode461:Hamming Distance
- 百度地图退拽标记点获取经纬度
- SQL Server 第三版(1)
- Python初学教程集合
- 【认证】【挪威】Norway : RiksTV、Canal Digital
- 弹性布局兼容例子
- linux crontab 使用 失效注意事项
- 图片不存放文件夹,直接存在数据库中,
- python列表,字典和集合筛选数据方法
- c++ 指针point 和引用reference的区别