본문 바로가기

develop/FrameWork, Library

[Cesium, Resium] An error occurred while rendering. Rendering has stopped.

반응형

Cesium.js:10742 An error occurred while rendering.  Rendering has stopped.
TypeError: Cannot read properties of undefined (reading 'x')
TypeError: Cannot read properties of undefined (reading 'x')
    at eCe (http://localhost:40001/cesium/Cesium.js:81:50651)
    at Zr.fromCartesian (http://localhost:40001/cesium/Cesium.js:81:51808)
    at oE._getMidPoint [as _callback] (webpack://mission/./src/component/Structure.jsx?:143:80)
    at oE.getValue (http://localhost:40001/cesium/Cesium.js:10957:70597)
    at ld.getValueOrUndefined (http://localhost:40001/cesium/Cesium.js:10744:8796)
    at wy.update (http://localhost:40001/cesium/Cesium.js:12501:319382)
    at Bf.update (http://localhost:40001/cesium/Cesium.js:12501:365117)
    at wi._onTick (http://localhost:40001/cesium/Cesium.js:14465:111832)
    at tv.raiseEvent (http://localhost:40001/cesium/Cesium.js:96:1282)
    at s8.tick (http://localhost:40001/cesium/Cesium.js:8604:58735)
import {Entity, LabelGraphics} from "resium";

원인

_getMidPoint() 라는 함수에서 에러가 나고있음

라벨(LabelGraphics)을 그리기 위해 점과 점 사이의 중간 위치를 찾는 함수인데 어떤 값이 undefined 라서 x 좌표를 뽑지 못하는것같다.