|
|
@@ -379,8 +379,6 @@ let setStyle = (style) => {
|
|
|
|
|
|
//获取selector
|
|
|
export function getShapesSelector(airspaceInfos, style, currentAirspaceIndex) {
|
|
|
- if (!style)
|
|
|
- style = {};
|
|
|
currentAirspaceIndex = currentAirspaceIndex ? currentAirspaceIndex : () => -1;
|
|
|
let circles = getCircleSelector(airspaceInfos, setStyle(style), currentAirspaceIndex);
|
|
|
let lineAndMarkers = getLineAndMarkerSelector(airspaceInfos, setStyle(style), currentAirspaceIndex);
|
|
|
@@ -399,8 +397,6 @@ export function getShapesSelector(airspaceInfos, style, currentAirspaceIndex) {
|
|
|
}
|
|
|
//获取数组
|
|
|
export function getShapes(airspaceInfos, style, currentAirspaceIndex) {
|
|
|
- if (!style)
|
|
|
- style = {};
|
|
|
currentAirspaceIndex = currentAirspaceIndex ? currentAirspaceIndex : () => -1;
|
|
|
let circles = getCircles(airspaceInfos, setStyle(style), currentAirspaceIndex);
|
|
|
let lineAndMarkers = getLinesAndMarkers(airspaceInfos, setStyle(style), currentAirspaceIndex);
|