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

fix(kml): Replace the OpenLayers default icon with OpenSphere's. #692

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

schmidtk
Copy link
Contributor

Fixes #676.

OpenLayers uses the yellow pushpin as the default icon style to match Google Earth's behavior. We prefer the placemark circle, so this replaces their defaults with ours.

To test, load this file. There should be a single point using the white placemark circle as the icon.

Note the KML node color varies because a PolyStyle is defined in the KML, and that color is resolved when the node looks for a color in the style config. This is perhaps a bug since that color doesn't impact the rendered feature, but a separate issue if we want that behavior to change.

@schmidtk schmidtk requested a review from wallw-teal July 19, 2019 20:15
@schmidtk schmidtk self-assigned this Jul 19, 2019
@bradh
Copy link
Collaborator

bradh commented Jul 19, 2019

Would it be worth parameterising this in config/settings.json?

@wallw-teal
Copy link
Contributor

@bradh this fixes a regression. If you want to write that up as an enhancement, that would be good.

@schmidtk
Copy link
Contributor Author

I agree with Will. That's a great idea, but the majority of places referencing the default icon are defined at the global scope. Changing that to a settings-driven value would require more of a refactor than I'm comfortable combining with this fix.

@schmidtk schmidtk merged commit 6507bc2 into ngageoint:master Jul 22, 2019
@schmidtk schmidtk deleted the fix-kml-default-icon branch July 22, 2019 20:08
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.

Default icon for features imported via kml is now a push pin
3 participants