walking

高德地图——步行路线

寵の児 提交于 2019-11-29 00:48:48
步行操作与开车一样 唯一区别就是src末尾加入&plugin=AMap.Walkling 以及new AMap.Walking({}) <!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.Walking,AMap.Autocomplete"></script> <title>通过经纬度进行导航</title> <style> *{ padding: 0; margin: 0; } #container{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; } #panel{ position: fixed; background: white; top: 10px; right: 10px; width: 280px; } #search{ width: 200px; height: 120px; position: absolute; left: 10px; top: 10px; background: