Browse Source

드론관제 시스템 허용고도 알림 정보 선형, 격자 이슈 수정

pull/1/head
김장현 9 months ago
parent
commit
a812f1fb45
  1. 25
      src/components/map/mapbox/MapBoxMap.js

25
src/components/map/mapbox/MapBoxMap.js

@ -120,22 +120,23 @@ export default function MapBoxMap() {
} }
) => { ) => {
// useGeoJson = mapControl.liner // useGeoJson = mapControl.liner
useGeoJson = mapControl.areaType useGeoJson =
? { mapControl.areaType === 'linear'
...geoJson, ? {
...flatGimpo, ...geoJson,
features: [...geoJson.features, ...flatGimpo.features] ...flatGimpo,
} features: [...geoJson.features, ...flatGimpo.features]
: { }
...geoJson, : {
...gimPoGrid, ...geoJson,
features: [...geoJson.features, ...gimPoGrid.features] ...gimPoGrid,
}; features: [...geoJson.features, ...gimPoGrid.features]
};
if (map.getLayer('maine')) { if (map.getLayer('maine')) {
map.removeLayer('maine'); map.removeLayer('maine');
map.removeSource('maine'); map.removeSource('maine');
} }
console.log(mapControl.areaType);
if (altitudeMarker.length > 0) { if (altitudeMarker.length > 0) {
altitudeMarker.map(i => { altitudeMarker.map(i => {
i.remove(); i.remove();

Loading…
Cancel
Save