Skip to main content
Solved

KML Styler Custom Icon

  • May 16, 2017
  • 4 replies
  • 200 views

I'm trying to add a custom icon using the KMLStyler. The icon is saved on google drive. I used Attribute Manager to add a new attrubute called "Symbol_Icon" thats value is the google drive url link, then I used the KMLStyler to set the icon name to the newly created attribute. I'm getting the "red x" once I open the kml in google earth. Screenshots below, any suggestions?

Best answer by itay

Hi @mikeymess,

It could be a limitation of the KMLStyler that URL's of a internet drive are not yet supported.

If you download one icon and reference it from a local drive, does that work?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • Best Answer
  • May 16, 2017

Hi @mikeymess,

It could be a limitation of the KMLStyler that URL's of a internet drive are not yet supported.

If you download one icon and reference it from a local drive, does that work?


  • Author
  • May 16, 2017

Hi @mikeymess,

It could be a limitation of the KMLStyler that URL's of a internet drive are not yet supported.

If you download one icon and reference it from a local drive, does that work?

@itay Thank you for the quick reply. Yes, it does work when I link to a local drive. I will be sharing this file with another organization and need the icon to be accessable to my end users as well. I assume if I save the file to kmz the symbol with carry over, correct? Is there anyway to share an icon with a kml rather than kmz?

redgeographics
Celebrity
Forum|alt.badge.img+62

I had a similar issue with a customer recently. I don't think we found a resolution at that time.

Thinking out loud, you can write to a KMZ and include the icon files, then refer to them with a local path. I used that technique for images referred to in infowindows, but perhaps it'd work with icon files too. I;ll have to dig up a workspace that does that.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • May 16, 2017
@itay Thank you for the quick reply. Yes, it does work when I link to a local drive. I will be sharing this file with another organization and need the icon to be accessable to my end users as well. I assume if I save the file to kmz the symbol with carry over, correct? Is there anyway to share an icon with a kml rather than kmz?
I think you are better off by providing them a kmz:

 

https://www.gearthblog.com/blog/archives/2016/03/custom-icons-google-earth.html