0

I have following structure before export:

  • LayerGroup

    • LayerGroup

      • Layer

        • Feature

Is there any posibility to keep this structure when export/import KML?

I noticed in the KML file after I export feature, open layers creates folder tags. I wonder if those folder tags could be mapped to the Layers or LayerGroup. I would also consider a solution that includes GeoJSON instead of KML file.

1 Answer 1

0

You can do multi-level nesting with Folders in KML (folders can contain sub-folders), so it should be possible to keep your structure in KML. Google Earth and many other KML renderers will render that structure, but note that some KML renderers may flatten the folder structure.

1
  • Thank you for your hint. After some research it looks like open layers doesn't not support such a render and one should implement its own way of doing it for both writing & reading.
    – andzaOs
    Commented Dec 5, 2021 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.