Browse Source

Merge branch 'master' of http://gitea.palntour.com/pav/pav-home

pull/2/head
sanguu(박상현) 2 years ago
parent
commit
fc4fb6e88d
  1. 2
      src/components/map/naver/dron/DronToast.js
  2. 28
      src/components/map/naver/feature/FeatureAirZone.js

2
src/components/map/naver/dron/DronToast.js

@ -49,6 +49,7 @@ const DronToast = () => {
},
onClose: () => {
// setIs(true);
toggle(false);
setToastId(null);
}
}
@ -59,7 +60,6 @@ const DronToast = () => {
}
}
}
for (let i = 0; i < controlGpArcrftWarnList.length; i++) {
warningList.push(controlGpArcrftWarnList[i].controlWarnCd);
}

28
src/components/map/naver/feature/FeatureAirZone.js

@ -140,8 +140,10 @@ export const FeatureAirZone = props => {
for (let i = 0; i < 4; i++) {
angle += 90;
let buffer = 0;
for (let j = 0; j < 4; j++) {
buffer += 2000;
// for (let j = 0; j < 4; j++) {
for (let j = 0; j < 9; j++) {
// buffer += 2000;
buffer += 1000;
const coord = new naver.maps.EPSG3857.getDestinationCoord(
position,
@ -151,13 +153,27 @@ export const FeatureAirZone = props => {
let reduce = 0;
if (j === 0) {
reduce = 218.6;
// reduce = 218.6;
reduce = 54.4;
} else if (j === 1) {
reduce = 905.4;
// reduce = 905.4;
reduce = 218.6;
} else if (j === 2) {
reduce = 2195;
// reduce = 2195;
reduce = 500;
} else if (j === 3) {
reduce = 4560.2;
// reduce = 4560.2;
reduce = 905.4;
} else if (j === 4) {
reduce = 1459.8;
} else if (j === 5) {
reduce = 2195;
} else if (j === 6) {
reduce = 3173.5;
} else if (j === 7) {
reduce = 4552.5;
} else if (j === 8) {
reduce = 6952.5;
}
if (angle % 180 == 0) {
const polyEW = new naver.maps.Polyline({

Loading…
Cancel
Save