Question

I'm trying to create a custom icon to display on google earth. It resides on my local filesystem, and I'm trying to reference it as "file:/C:/myfile.png" but it does not display. Is this possible to do?

Was it helpful?

Solution

You need to package the KML and the icons together into a KMZ archive (which is just a zip).

See my answer in your other question .

OTHER TIPS

The KML documentation says that it works with any URI, local or web based. I suggest you don't use "file:/c:/myfile.png" but rather just the filepath "c:\myfile.png" or perhaps put the icon in the local directory and just use "myfile.png" as the example in the documentation suggests (also, you might need to make sure the backslashes are Windows based on a windows machine.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top