누구나 GeoJsonDataSource에서 위치 데이터를 가져 오는 방법을 말해 줄 수 있습니까? 내가하는 일은 다음과 같습니다.Cesiumjs : GeoJsonDataSource에서 데이터를 반복하는 방법
entity1 = Cesium.GeoJsonDataSource.fromUrl('../../SampleData/markersdata.geojson');
var array1 = entity1.entities.entities; //According to document, this should an array of entity instances, but it only returns an empty array.
console.log(array1);
// []
//If I do this:
var assocArray = entity1.entities._entities; //This returns an associative array
var markersArr = assocArray.values; //I expect this returns an array of values, but it still returns empty array.
console.log(markersArr);
// []
도움을 주셔서 감사합니다.
몇 가지 질문이 있습니다. l.2'x'->'entity1'? l.3'assocArray' ->'array1'? l.6'x'->'entity1'? – dgiugg
@dgiugg 답장을 보내 주셔서 감사합니다. 죄송합니다.이 질문에 오타가 있었는데 x는 entity1이어야합니다. 서버의 프로젝트에서 2 행의 entity1.entities 또는 6 행의 assocArray 멤버를 확인할 때 re는 500 개의 데이터 인스턴스입니다. – Robert