Ver Fonte

Merge branch 'fix' into 'master'

fix

See merge request BA/amap-shapes-generator!10
wd há 7 anos atrás
pai
commit
72d015c260
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      index.js

+ 3 - 3
index.js

@@ -31,15 +31,15 @@ function getCircles(airspaceInfos, setStyle, currentAirspaceIndex) {
     }
 
     let {lineWidth, strokeColor, fillColor} = getDefaultStyle()
-
+    //通过该方法获取样式
+    let circleStyle = setStyle('circle');
     if(circleStyle) {
         lineWidth = circleStyle.lineWidth
         strokeColor = circleStyle.strokeColor
         fillColor = circleStyle.fillColor
     }
 
-    //通过该方法获取样式
-    let circleStyle = setStyle('circle');
+
     for (let i = 0; i < airspaceInfos.length; i++) {
         let tmpCircle = airspaceInfos[i]
         let airspaceTypeFix, radiusFix