Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExportKml doesn't export ellipse graphics. #10609

Closed
amock78 opened this issue Jul 28, 2022 · 1 comment
Closed

ExportKml doesn't export ellipse graphics. #10609

amock78 opened this issue Jul 28, 2022 · 1 comment

Comments

@amock78
Copy link

amock78 commented Jul 28, 2022

I'm trying to export ellipse graphics from cesium to either a KML or KMZ file if it uses an image. I've stepped through the code to see where it's supposed to be adding the entities to the KML document, but it looks like you don't have any support for ellipse when it goes into the recurseEntities() function. Is there any work being done for that currently?

I also would like to request some better examples of how to add external image files to the KMZ file. For example, we use a '.png' image for any drop point that we add on our map. If I try to export that point to a KMZ file, I don't see a way to add the image because:

  1. I'm not using a model, so using modelCallback() to access the external files won't work for me for the KMZ.
  2. I'm not using a CZML file that already has the image files embedded, like you have in the ExportKml sandcastle example.

The only way I can see this being accomplished is to add the external files to the result.externalFiles after I create the KML, but then I would have to write my own method to take those files and parse the KML file to replace all the tags with the image that I'm using for points. I thought this functionality was already baked into the exportKml() method.

Please correct me if I'm wrong.

Here is a sandcastle that I modified to include various shapes (CZML and Entity), and write the KML output to the console.
Sandcastle example:
ExportKml example using CZML data

Browser:
Chrome and Edge

Operating System:
Windows 10

@ggetz
Copy link
Contributor

ggetz commented Aug 17, 2022

Hi there @amock78. This looks like a duplicate of #9344. If you have any further thoughts, please continue the conversation there. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants