Extension:KML Export/Style syntax

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English
KML ExportExtension:KML Export FeaturesExtension:KML Export/FeaturesInstallationExtension:KML Export/InstallationQuick startExtension:KML Export/Quick startHow to useExtension:KML Export/How to useParser functionsExtension:KML Export/Parser functionsSpecial pagesExtension:KML Export/Special pagesConfigurationExtension:KML Export/Configuration

This page describes the syntax of style definitions, used by kml.styleExtension:KML Export/kml.style.

Currently supported style definitions are: <LineStyle>, <PolyStyle>, <IconStyle>, <LabelStyle>, <BalloonStyle>.

IconStyle[edit]

Syntax[edit]

IconStyle(#color random href=address scale=scale heading=heading)

Arguments[edit]

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.

LabelStyle[edit]

Syntax[edit]

LabelStyle(#color random scale=scale)

Arguments[edit]

color (optional)
Label color in #aabbggrr format.
random (optional)
If present, color is chosen at random.
scale (optional)
Resizes the label.

LineStyle[edit]

Syntax[edit]

LineStyle(#color random width=width)

Arguments[edit]

color (optional)
Line color in #aabbggrr format.
random (optional)
If present, color is chosen at random.
width (optional)
Width of the line, in pixels.

PolyStyle[edit]

Syntax[edit]

PolyStyle(#color random nofill nooutline)

Arguments[edit]

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.

BalloonStyle[edit]

Syntax[edit]

BalloonStyle(bgcolor=#bgcolor textcolor=#textcolor text)

Arguments[edit]

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.

Examples[edit]

See kml.style for examples.

See also[edit]