摘要: 方法一:规定地点 方法二:点击地图上任意两处,通过获取经纬度进行导航 <!DOCTYPE html><html> <head> <meta charset="utf-8"> <script type="text/javascript" src="https://webapi.amap.com/map 阅读全文
posted @ 2019-08-29 21:37 是桂 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: 5-4添加标记练习 阅读全文
posted @ 2019-08-29 20:41 是桂 阅读(3296) 评论(0) 推荐(0) 编辑
摘要: AMap.Scale 距离控件AMap.ToolBar 比例尺 插件 &plugin=AMap.Scale,AMap.ToolBar map,addControl(new AMap.Scale());添加控件map,addControl(new AMap.Scale());添加比例尺 阅读全文
posted @ 2019-08-29 19:49 是桂 阅读(3266) 评论(0) 推荐(0) 编辑
摘要: 要求: 1.为地图任意设置一个中心点和地图显示级别 ,并在中心点添加一个标记。 2.为鼠标设置一个小手状的样式 。 3.为地图绑定点击事件 ,在点击的地方添加一个标记 ,同时要把之前的标记清除。 ( 具体效果查看效果视频 ) 任务(步骤): 1使用new AMap.Map()创建一个地图。 2. 为 阅读全文
posted @ 2019-08-29 19:35 是桂 阅读(4370) 评论(0) 推荐(0) 编辑
摘要: 添加标记: 1、marker.setMap(map); 2、marker.add([marker]); 删除标记: 阅读全文
posted @ 2019-08-29 18:34 是桂 阅读(16139) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.11&key=9de88a718781910c9a1c81230827d1ce&plugin=AMap.Autocomplete,AMap.PlaceS 阅读全文
posted @ 2019-08-29 17:51 是桂 阅读(3340) 评论(0) 推荐(0) 编辑
摘要: searchNearby 搜索 阅读全文
posted @ 2019-08-29 16:15 是桂 阅读(1746) 评论(0) 推荐(0) 编辑