• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Google Earth and CFM

Community Beginner ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

We created code to dynamically present map coordinates. Followed all the instructions to include Mime settings.

Issue: of 4 pc's with same hardware only one machine will pull up the kml file properly. All other show errors. Each machine uses the same version of Google Earth and set the same way.

http://www.koreanwar.org/google2/ams_l751.kmz An error code is returned locally and I would bet you get the same.


I have not found any forum discussions and nothing on the Google Communities.

Code from a new sample test is attached.

Ted Barker
TOPICS
Advanced techniques

Views

628

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

not that i am any expert on kml, but...

are you setting correct headers in your cfm page?
(i.e.: <cfcontent type="application/vnd.google-earth.kml+xml">)

are you using cfflush in your xml-generating code? (don't)



Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

Azadi:

I just added code from a new sample file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

i'm getting the raw KML, which if i save out works ok in GE. so i guess it's the
mime type as azadi mentioned. as far as the other boxes not parsing the KML
correctly, are you sure everything's the sane? GE updates, firewalls, browser
version/settings, etc.?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

We aren't using cfflush. We have not placed the (i.e.: <cfcontent type="application/vnd.google-earth.kml+xml">)
in the code page. I have set the Mime Type in IIS6 to the proper types ie:
Google Earth Mime Types

These are set in the IIS Server Mime Types section


.kml application/vnd.google-earth.kml+xml

.kmz application/vnd.google-earth.kmz


All the boxes are exact duplicates of each other with the same OS, firewall, GE version and settings.

Ted

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 26, 2009 Feb 26, 2009

Copy link to clipboard

Copied

LATEST
i have tested your url with Feed Validator ( http://feedvalidator.org/)
and it validates, but with a warning regarding incorrect media type.

in your code that generates the xml you should add appropriate
<cfcontent> tag so that the resulting document is served as kml/kmz
media type and not as text/html.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation