diff --git a/.env.development b/.env.development index 6962a04b..6dbb4c64 100644 --- a/.env.development +++ b/.env.development @@ -4,7 +4,7 @@ # REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ REACT_APP_HOST = http://211.253.11.189:8080/ -REACT_APP_WS_HOST = ws://211.253.11.189:8081/ws +REACT_APP_WS_HOST = ws://pav.palntour.com:8081/ws REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ # Naver Search API HOST diff --git a/src/components/map/mapbox/MapBoxMap.js b/src/components/map/mapbox/MapBoxMap.js index 5433b876..488cba77 100644 --- a/src/components/map/mapbox/MapBoxMap.js +++ b/src/components/map/mapbox/MapBoxMap.js @@ -359,6 +359,7 @@ export default function MapBoxMap() { type: 'custom', renderingMode: '3d', onAdd: function () { + let a = []; for (let i = 0; i < gimPo.features.length; i++) { let line; var options = { @@ -374,7 +375,7 @@ export default function MapBoxMap() { // 지형 고도를 라인의 z 좌표로 설정합니다. options.path[j][2] += elevation; } - + a.push(options.path); let lineGeometry = options.path; line = tb.line({ geometry: lineGeometry, @@ -384,6 +385,8 @@ export default function MapBoxMap() { tb.add(line); } + console.dir(a); + console.log(gimPo.features.length); }, render: function () { tb.update();