Browse Source

fix add marker

wd 7 years ago
parent
commit
3920ee04df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -442,7 +442,7 @@ function getMarkers(circlesAndMarkers, polygonAndMarkers, lineAndMarkers) {
         markers = [...circlesAndMarkers.markers]
     }
     if (polygonAndMarkers) {
-        markers = [...polygonAndMarkers.markers]
+        markers = [...markers, ...polygonAndMarkers.markers]
     }
     if (lineAndMarkers) {
         markers = [...markers, ...lineAndMarkers.markers]