kml show image in description (displaying an image from the local disk)
Opened this issue · 5 comments
Is it possible to display an image from the local disk after loading a local KML file ( image link in KML description)
Unfortunately you can't.
That would mean being able, from a webpage Javascript, to load any arbitrary file (and information about it) coming from users hard disks. This would be a security problem...
Maybe you can through a Java applet :)
Good luck !
Thanks !
Still a comment, just an idea. I'm sorry to bother you again,
Is it possible that the user selects all local images using the html5 File API (like the KML file) and than use these files in popup.
It's just an idea and I don't know if and how it should be done.
Yes, in this case, it is completely possible!
Look at this example to get started : http://stackoverflow.com/questions/4459379/preview-an-image-before-it-is-uploaded
I'll give it a try :-)