embed local pdf in iframe for kmls -
i've been looking way open locally stored pdfs within google earth environment via kmls.
so firstly this link shows how embed , open online-based pdfs within within placemarks in google earth, use of iframes (that example works). secondly, this link described how reference locally stored pdf on computer in iframe... after testing few variations, still doesn't work??
this code, "heading.pdf" , placemarker icon "broadcast_trans.gif" stored in same directory kml file:
<?xml version='1.0' encoding='utf-8'?> <kml xmlns='http://www.opengis.net/kml/2.2'> <document> <folder> <name>trip 1_2 route</name> <placemark> <name>131 gelding avenue, roodepoort</name> <description><![cdata[trip 1, measured 2015/09/04]]></description> <styleurl>#icon-1899-db4436-nodesc</styleurl> <point> <coordinates>27.856078,-26.0839504,0.0</coordinates> </point> </placemark> </folder> <style id='icon-1899-db4436-nodesc-normal'> <iconstyle> <color>ff3644db</color> <scale>1.0</scale> <icon> <href>broadcast_trans.gif</href> </icon> </iconstyle> <labelstyle> <scale>0.0</scale> </labelstyle> <balloonstyle> <text><![cdata[]]></text> </balloonstyle> </style> <style id='icon-1899-db4436-nodesc-highlight'> <iconstyle> <color>ff3644db</color> <scale>1.0</scale> <icon> <href>http://www.gstatic.com/mapspro/images/stock/503-wht-blank_maps.png</href> </icon> </iconstyle> <labelstyle> <scale>1.0</scale> </labelstyle> <balloonstyle> <text><![cdata[<h3>$[name]</h3> trip 1, measured 2015/09/04<br><br> <iframe src="file:///heading.pdf&embedded=true" style="width:718px; height:700px;" frameborder="0"> </iframe> ]]></text> </balloonstyle> </style> <stylemap id='icon-1899-db4436-nodesc'> <pair> <key>normal</key> <styleurl>#icon-1899-db4436-nodesc-normal</styleurl> </pair> <pair> <key>highlight</key> <styleurl>#icon-1899-db4436-nodesc-highlight</styleurl> </pair> </stylemap> </document> </kml>
can please me out one? in advance.
Comments
Post a Comment