Non visual feature data, such as atom:author and ExtendedData
is exposed via an instance of KmlFeatureData, which is added to each Entity
under the kml property.
alias KmlDataSource
- {Camera} options.camera The camera that is used for viewRefreshModes and sending camera properties to network links.
- {Canvas} options.canvas The canvas that is used for sending viewer properties to network links.
- {DefaultProxy} [options.proxy] A proxy to be used for loading external data.
A DataSource which processes Keyhole Markup Language 2.2 (KML).
KML support in Cesium is incomplete, but a large amount of the standard, as well as Google's
gx
extension namespace, is supported. See Github issue for a detailed list of what is and isn't support. Cesium will also write information to the console when it encounters most unsupported features.Non visual feature data, such as
atom:author
andExtendedData
is exposed via an instance of KmlFeatureData, which is added to each Entity under thekml
property.alias KmlDataSource
- {Camera} options.camera The camera that is used for viewRefreshModes and sending camera properties to network links. - {Canvas} options.canvas The canvas that is used for sending viewer properties to network links. - {DefaultProxy} [options.proxy] A proxy to be used for loading external data.
var viewer = new Cesium.Viewer('cesiumContainer'); viewer.dataSources.add(Cesium.KmlDataSource.load('../../SampleData/facilities.kmz'), { camera: viewer.scene.camera, canvas: viewer.scene.canvas });
KML Documentation demo Sandcastle KML Demo
Geospatial Consortium KML Standard