Extension:KML Export/Style syntax
From MediaWiki.org
| KML Export | Features • Installation • Quick start • How to use • Parser functions • Special pages • Configuration |
|---|
This page describes the syntax of style definitions, used by kml.style.
Currently supported style definitions are: <LineStyle>, <PolyStyle>, <IconStyle>, <LabelStyle> and <BalloonStyle>.
Contents |
[edit] IconStyle
[edit] Syntax
IconStyle(#color random href=address scale=scale heading=heading)
[edit] Arguments
- color (optional)
- Icon color in
#aabbggrrformat. - random (optional)
- If present, color is chosen at random.
- href (optional)
- Address of the icon to be used.
- scale (optional)
- Resizes the icon.
- heading (optional)
- Compass direction, in degrees.
[edit] LabelStyle
[edit] Syntax
LabelStyle(#color random scale=scale)
[edit] Arguments
- color (optional)
- Label color in
#aabbggrrformat. - random (optional)
- If present, color is chosen at random.
- scale (optional)
- Resizes the label.
[edit] LineStyle
[edit] Syntax
LineStyle(#color random width=width)
[edit] Arguments
- color (optional)
- Line color in
#aabbggrrformat. - random (optional)
- If present, color is chosen at random.
- width (optional)
- Width of the line, in pixels.
[edit] PolyStyle
[edit] Syntax
PolyStyle(#color random nofill nooutline)
[edit] Arguments
- color (optional)
- Polygon fill color in
#aabbggrrformat. - random (optional)
- If present, color is chosen at random.
- nofill (optional)
- If present, polygon is not filled.
- nooutline (optional)
- If present, polygon outline is not drawn.
[edit] BalloonStyle
[edit] Syntax
BalloonStyle(bgcolor=#bgcolor textcolor=#textcolor text)
[edit] Arguments
- bgcolor (optional)
- Balloon background color in
#aabbggrrformat. - textcolor (optional)
- Balloon text color in
#aabbggrrformat. - text (optional)
- Template of the balloon. Use kml.text to insert wiki text here.
[edit] Examples
See kml.style for examples.
