How to connect to internal files in a KMZ file?

I am trying to create a KMZ file for use in Google Earth, where the contents of the balloon are mainly defined in HTML files that are embedded using iframes. The setup works with a simple KML file and additional HTML files when using relative links in the local file system (provided that access to the file system is enabled).

My problem is that I cannot find a way to create a KMZ file containing all the files in interconnected mode. The KML specification does not talk about the problem at all (in fact, KMZ appears only a few times throughout the document). I also could not find other documentation on KMZ.

Can I link other HTML files in KMZ? If yes: how?

+3
source share
2 answers

Yes, this Kml specification allows this, you just use relative paths.

However, your problem is really related to security restrictions in certain applications for certain types of content.

For example, the full Google Earth client allows you to load Flash (swf) content into balloons while the Goggle Earth plugin does not work. The same goes for iFramed content, etc.

Thus, the answer to the question depends entirely on which application you are viewing in Kml / kmz, and has nothing to do with the Kml or Kmz specification.

+1
source

, OGC KML Standard Google Earth. , , , Google Earth , . , KMZ , . Google KML Reference, . KML Google Earth KML Errata.

, ( KMZ) , .

<iframe>,

<src> <iframe> , KMZ; URL- , .

HTML KMZ <src> <iframe> URL-, .

" " "//", (, HTML, PDF ..). -, , KMZ.

+1

Source: https://habr.com/ru/post/1707733/


All Articles