Extension:KML Export/Style syntax

From MediaWiki.org
Jump to: navigation, search
KML Export FeaturesInstallationQuick startHow to useParser functionsSpecial pagesConfiguration

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 #aabbggrr format.
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 #aabbggrr format.
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 #aabbggrr format.
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 #aabbggrr format.
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 #aabbggrr format.
textcolor (optional)
Balloon text color in #aabbggrr format.
text (optional)
Template of the balloon. Use kml.text to insert wiki text here.

[edit] Examples

See kml.style for examples.

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox