Add KML export Sandcastle example
See original GitHub issueThe PR https://github.com/AnalyticalGraphicsInc/cesium/pull/7921 adds a function to export an EntityCollection in Cesium as KML/KMZ document. There’s an example in the doc, but it would be nice to have a full code example that includes the required blob downloading as well. See Fili’s code snippet here: https://github.com/AnalyticalGraphicsInc/cesium/pull/7921#issuecomment-505019659
It would be cool to use one of these CZML’s as a source: https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML.html
Or the extruded GeoJSONs here, so the example shows you how to import a GeoJSON, modify it, then export it:
https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=GeoJSON and TopoJSON.html
Would also be nice to show how to use the modelCallback
to handle rewriting the model URLs. This would be a great first contribution I think!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Add one here: https://github.com/AnalyticalGraphicsInc/cesium/pull/7970
I did think a Sandcastle example would be useful, especially to show the download code + rewriting model URLs which may not be obvious. I merged without waiting on that because I figured we could add a fuller example than the one in the doc later, so that was my bad.