Is it possible to set DistanceDisplayCondition for GeoJSON?


I have a list of markers I’m importing via GeoJSON, and I’d like to set it so the markers generated (there will be 40 or so) are only visible within a certain distance, to avoid cluttering the screen. Is it possible to do that, or even to hide markers that would be hidden behind the curvature of the earth?


Yes! Anything you can do with the entity API in CesiumJS you can do on any loaded data source. If the options you need aren’t available when loading it ( you can iterate over the created entities and modify whatever properties you need. This code example does this in the “custom styling” button to extrude and color the entities: