haoxinlei hace 7 años
padre
commit
ebb2904aa1
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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