<?xml version="1.0" encoding="utf-8"?>
<kml>
<Document>
<name>Example of displaying a local image file</name>
<Placemark>
<name>Monaco</name>
<Snippet>Photo 1</Snippet>
<description><![CDATA[
<img src='file:///c:\temp\monaco\IMG_5523.jpg' width='400' /><br/>
Photo taken from near the palace in Monaco<br/>
]]>
</description>
<Point>
<coordinates>7.421630,43.731459</coordinates>
</Point>
</Placemark>
</Document>
</kml>
The following screenshots show how this KML file is rendered in Google Earth.When the Placemark is clicked, the balloon pops up showing the local photo image file.
Wow! Do you think this will work on Google Maps as well?
ReplyDelete(PS: thanks for all the coordinate conversion tools you've made involving M'sian RSO systems!)
Thanks Howard but I don't think it will work on Google Maps.
ReplyDeleteRats. Oh, well! Thanks! --- Howard
ReplyDeleteToo bad... oh, well! Cheers! -- Howard
ReplyDeletei try your code for loading image in html from my disk, but it doesn't work in my web? how i can fix it?
ReplyDeleteNoor, you need to provide more details. If you like, email me your files at dominoc925 at ymail.com
ReplyDeleteThanks. I'm working on a kmz kml app and this is exactly what I needed.
ReplyDeleteI'm a couple of years late, but this helped a lot, cheers!
ReplyDelete