Extension:KML Export/スタイルの構文

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:KML Export/Style syntax and the translation is 87% complete.

Other languages:
English • ‎dansk • ‎日本語
KML Export 機能 インストール Quick start 使用法 パーサー関数 特別ページ Configuration スタイルの構文

This page describes the syntax of style definitions, used by kml.style .

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

IconStyle

構文

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

引数

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

構文

LabelStyle(#color random scale=scale)

引数

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

LineStyle

構文

LineStyle(#color random width=width)

引数

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

構文

PolyStyle(#color random nofill nooutline)

引数

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

構文

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

引数

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.

See kml.style for examples.

関連項目