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'}

 

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

 

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