Skip to main content
Question

KMLviewssetter: advanced kmlviewsetter balloon formatting.


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>

 

9 replies

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • 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
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • March 29, 2018
jhawks wrote:

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
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • March 29, 2018
jhawks wrote:

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+20

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+20
jhawks wrote:

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings