KML with labels on markers PDF Print E-mail
Written by Mike Reumer   
Monday, 24 May 2010 11:05

You can now show labels on markers and polylines/gons (version >= 2.12n):

  • kmlpolylabel - opacity in percetage for polylines/gons
  • kmlpolylabelclass - The class for the labels to set the style of font, size, colour etc.
  • kmlmarkerlabel - opacity in percetage for icons
  • kmlmarkerlabelclass - The class for the labels to set the style of font, size, colour etc.

{mosmap kml='http://tech.reumer.net/images/BrisbanePZ.kml'|kmlrenderer='geoxml'|
kmlpolylabel='75'|kmlpolylabelclass='contentheading'}

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

 

{mosmap kml='http://tech.reumer.net/images/allservices.kml'|kmlrenderer='geoxml'|
kmlmarkerlabel='75'|kmlmarkerlabelclass='kmllabel'}

 

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

Defined style kmllabel:

.kmllabel {
padding: 10px;
font-size: 100%;
font-weight: bold;
color:#277BC0;
width: 200px;
text-align:left;
}

Last Updated on Tuesday, 08 June 2010 19:44
 

Advertisement