hendriksaragih / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

Inconsistant handling of direct links to kml content in placemakr balloons. #198

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See 
http://groups.google.com/group/kml-support-server-side-scripting/browse_thread/t
hread/e9b59efaa4dac11e/cdd1ccfb85ea66aa#cdd1ccfb85ea66aa
for background

Placemark......
<name>Untitled Placemark</name>
        <description><![CDATA[<a
href="http://geograph.mobile/kml/geograph.kmz">Open example KMZ file</a>
<a href="http://geograph.mobile/kml/le2jog.kml">Open example KML file</a>
<a href="http://geograph.mobile/kml-superlayer.php">Open example PHP file</a>
<a href="http://geograph.mobile/kml-superlayer.php/fake.kml">Open example
PHP/2 file</a>]]></description>
..........

.kml/.kmz files will load directly in Google Earth. Other extensions dont
work even if the script sends the correct MIME type etc. However Google
Earth does first fetch the file before redirecting to the browser. 

There is a annotated fiddler trace here:

http://www.nearby.org.uk/google/temp/trace.txt
(I forgot the save the original mentioned in thread hence the 304s at
first, had to repeat it) 

(the user agents in there mention my OS and GE version etc)

Original issue reported on code.google.com by BarryBHu...@gmail.com on 6 Oct 2008 at 8:44

GoogleCodeExporter commented 8 years ago
One [messy] workaround is to use URL rewriting ala mod_rewrite to add a .kml
extension, making the link appear to lead to a static KML file.

Original comment by api.roman.public@gmail.com on 8 Oct 2008 at 5:33

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 8 Oct 2008 at 5:44

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 2 Dec 2008 at 11:01