李志伟 2 years ago
parent
commit
f36bcdf77f
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/components/GISMap/marker.js

+ 0
- 2
src/components/GISMap/marker.js View File

@@ -17,10 +17,8 @@ export function useMarker(amapRef, map, lujing) {
17 17
     lineArr = lujing;
18 18
     //https://lbs.amap.com/api/jsapi-v2/documentation#marker
19 19
     // 动态添加地图和marker的定位
20
-    console.log(marker);
21 20
     marker.setPosition(lineArr[0]);
22 21
     marker.setMap(map);
23
-    console.log(marker);
24 22
     var polyline = new amapRef.current.Polyline({
25 23
       map: map,
26 24
       path: lineArr,