Skip to main content
Question

KMLviewssetter: advanced kmlviewsetter balloon formatting.

  • March 29, 2018
  • 9 replies
  • 27 views

jhawks
Contributor
Forum|alt.badge.img+7

I'm starting with background color as a test, since it takes html I thought this would change the balloon BG color but it's not working.

 

<html> <body bgcolor="#E6E6FA"> <img src="https://seamlessrnc.nauticalcharts.noaa.gov/rnc/noaa_ocs_small_banner.jpg"></a> <BalloonBGColor = '-1' BalloonFGColor = '-16777216' BalloonBGColorField = ''red" > </body> </html>

 

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.

9 replies

danilo_fme
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • March 29, 2018

Hi @jhawks

Would you like to work with Watermark in KML? Like this Link https://knowledge.safe.com/articles/20209/kml-screenoverlay-watermark.html

Thanks,

Danilo


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 29, 2018

arc2earth-popup.jpgfme-popup.jpg I've got watermarks working, this is about formatting of kml popup balloons. I'm to recreate as much possible the arc2earth popup balloon in my new kmz created by fme.


danilo_fme
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • March 29, 2018

arc2earth-popup.jpgfme-popup.jpg I've got watermarks working, this is about formatting of kml popup balloons. I'm to recreate as much possible the arc2earth popup balloon in my new kmz created by fme.

Did you see this link https://knowledge.safe.com/articles/18754/kml-balloon-contents-removing-directions.html ?

 

 

And this Balloon width ?

 

 

 

 

Thanks,

 

Danilo

 

 


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 29, 2018

I have looked at both of them but they don't quite have the in depth formatting I want. I was able to add an image, and remove the balloon title, but for example if I want to remove the grey background from every other record how would I do that. Not crucial but if it takes full html formatting there should be a way.


danilo_fme
Celebrity
Forum|alt.badge.img+53
  • Celebrity
  • March 29, 2018

I have looked at both of them but they don't quite have the in depth formatting I want. I was able to add an image, and remove the balloon title, but for example if I want to remove the grey background from every other record how would I do that. Not crucial but if it takes full html formatting there should be a way.

Hi @jhawks

 

 

OK, could you send me the Workspace template?

 

 

Thanks

 

Danilo

 


debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • March 29, 2018

Hi @jhawks

In the KMLPropertySetter, you can create and customize an HTML table in the Content parameter. I found it easiest to copy an attribute table for a feature from an existing KML document and edit it directly. I believe the <tr bgcolor="#E3E3F3"> is the correct tag to change if you wish to remove the background colour. Remember to change the Content Type to HTML and disable 'Include Attribute Table'.

There may be an easier way to change the row's background colour that I'm not aware of. If someone knows, please feel free to comment.

Hope this helps.


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 29, 2018

noaa-rncs-shape-kml.fmwt

Sure, see attached.


debbiatsafe
Safer
Forum|alt.badge.img+21

noaa-rncs-shape-kml.fmwt

Sure, see attached.

Hi @jhawks

 

Please see the attached fmwt for a background-less table within the balloon

 

noaa-rncs-shape-kml-notablebackground.fmwt

 

 

I would also suggest looking at the KML Documentation if you wish to format the balloon further https://developers.google.com/kml/documentation/kmlreference#balloonstyle

jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • April 3, 2018

Thanks! Very helpful. I still have some formatting to do but should be easy now! I kept trying to do full html in content. This should be close enough to get me thru it, thanks again!