Question

KMLviewssetter: advanced kmlviewsetter balloon formatting.


Badge +6

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

Userlevel 4
Badge +30

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

Badge +6

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.

Userlevel 4
Badge +30

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

 

 

Badge +6

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.

Userlevel 4
Badge +30

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

 

Userlevel 3
Badge +17

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.

Badge +6

noaa-rncs-shape-kml.fmwt

Sure, see attached.

Userlevel 3
Badge +17

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
Badge +6

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!

Reply