KML placemark inline IconStyle overwrites IconStyle from styleUrl
See original GitHub issueStyling placemarks
in KML files can easily done using style IDs.
When inserting placemarks
in the KML file, these IDs can be referenced usind the styleURL
tag.
This works pretty fine! But for some icons (e.g. arrows) it can be necessary to also set a heading
information! This can not be done in the predefined styles as this changes for each placemark.
Therefore it is required to have an inline Style
tag that only containes the heading
tag for this icon. Unfortunately it is not appending this information to the merged information from the style ID. It seems to overwrite the whole IconStyle
information from the style IDs. At least it displays the default hotSpot icon from Google (yellow pin) using the heading information from the inline IconStyle.
To Reproduce Steps to reproduce the behavior:
- Extract demo.zip to have a minimal example.
- Load the contained KML into online Google Earth to see how it should look like.
- Now use the same KML and display it as overlay using openlayers.
Expected behavior
The inline IconStyle
options should only overwrite the options specified in the IconStyle
of the referenced style ID instead of replacing the whole IconStyle.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
I hope you don’t use any of the many software products I develop or package in my free time.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.