Reading attributes from Geojson datasource

Hello Support,

How to read attribute data (fields,attribute table) from geojson datasource?

Which API I have to use to read fields and attributes from the geojson datasource?

Regards,

Tharak.

Looks like this will be stored in the properties object of the entities created from the GeoJSON data source. See: https://cesiumjs.org/Cesium/Build/Documentation/Entity.html?classFilter=Entity#properties

So for example, the “Custom Styling” code example here shows you how to iterate over the entities created from a GeoJSON data source. Each entity has a “properties” object you can use to get the properties:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=GeoJSON%20and%20TopoJSON.html

Let me know if that helps.