1.0.0 • Published 7 years ago

amap-route-remapping v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

amap_route_remapping

高德地图路线重绘插件

example

<!-- index.html -->
<html>
<head></head>
<body>
  <div id="container" style="height:600px;width:100%;"></div>
</body>
<script src="http://webapi.amap.com/maps?v=1.3&key=******"></script>
<script src="./amap_test.js"></script>
</html>
// amap.js
import AMapType from 'amap_route_remapping'
//基本地图加载
let map = new AMap.Map("container", {
  resizeEnable: true,
  center: [120.154, 30.260],
  zoom: 14
});

let amap_instance = new AMapType({
  map: map,
  start_pos: [120.13,30.27],
  end_pos: [120.18,30.25],
  strokeStyle: {
    strokeColor: '#3366ff',
    strokeOpacity: '1',
    strokeWeight: 6,
    strokeStyle: 'solid'
  }
});

amap_instance.draw_route();