question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KML placemark inline IconStyle overwrites IconStyle from styleUrl

See original GitHub issue

Styling 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:

  1. Extract demo.zip to have a minimal example.
  2. Load the contained KML into online Google Earth to see how it should look like.
  3. 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:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stoeckercommented, May 22, 2019

If you want this issue to be fixed, you should to get in touch with a company that provides support for OpenLayers. Some of them are listed on https://www.osgeo.org/service-providers/.

As far that I know, all of the core developers are maintaining the library on their free time.

I hope you don’t use any of the many software products I develop or package in my free time.

0reactions
stale[bot]commented, Jul 21, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KML Reference | Keyhole Markup Language
Defines an image associated with an Icon style or overlay. The required <href> child element defines the location of the image to be...
Read more >
Multiple / different icons - Google Groups
You can define a shared style including BalloonStyle, IconStyle, etc. then override with an inline Style in any given Placemark. KML allows a...
Read more >
KML: Put the icon in the placemark rather than Style
Is there a way to put the icon URL in the placemark, rather than having to have lots of different styles, most only...
Read more >
Google Earth KML 2.0
Welcome to the Google Earth KML documentation. KML, or Keyhole Markup Language, is an. XML grammar and file format for modeling and storing...
Read more >
KML 2.1 Reference – An OGC Best Practice
Google submitted KML (formerly Keyhole Markup Language) to the Open ... Defines an image associated with an Icon style or overlay.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found