Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve KML compatibility with Google Earth and fix a few bugs. #2539

Merged
merged 3 commits into from
Mar 3, 2015

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Mar 3, 2015

In #873, @GatorScott found a bunch of KML files that either didn't work or didn't match Google Earth. Turns out that Google Earth handles local styles that do not start with a # sign, which is not spec compliant. Since our goal is to match Google Earth, we now detect and process these styles rather than spitting out a warning/error.

We were also missing support for the TimeStamp element, which was an oversight on my part.

Also fixed a KML loading crash when we encountered an empty node and no description text, this was a straight up bug on our end.

The above changes make all KML files on http://activefiremaps.fs.fed.us/googleearth.php work properly (though they require a proxy). I also added tests for everything.

Thanks to @GatorScott for some sample KML files that triggered this.
In #873, @GatorScott found a bunch of KML files that either didn't work
or didn't match Google Earth.  Turns out that Google Earth handles
local styles that do not start with a `#` sign, which is not spec compliant.
Since our goal is to match Google Earth, we now process these styles
properly rather than spitting out a warning/error.

We were also missing support for the TimeStamp element, which was an
oversight on my part.

The above changes make all KML files on http://activefiremaps.fs.fed.us/googleearth.php
work properly (though they require a proxy).
@mramato mramato mentioned this pull request Mar 3, 2015
76 tasks
pjcozzi added a commit that referenced this pull request Mar 3, 2015
Improve KML compatibility with Google Earth and fix a few bugs.
@pjcozzi pjcozzi merged commit a3159ab into master Mar 3, 2015
@pjcozzi pjcozzi deleted the kml-styles branch March 3, 2015 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants