Class: Entry

mapray~TextEntity~ Entry


new Entry(owner, text, position [, props])

テキスト要素

Parameters:
Name Type Argument Description
owner mapray.TextEntity

所有者

text string

テキスト

position mapray.GeoPoint

位置

props object <optional>

プロパティ

Properties
Name Type Argument Description
font_style string <optional>

フォントスタイル ("normal" | "italic" | "oblique")

font_weight string <optional>

フォントの太さ ("normal" | "bold")

font_size number <optional>

フォントの大きさ (Pixels)

font_family string <optional>

フォントファミリー

color mapray.Color <optional>

テキストの色

stroke_color mapray.Color <optional>

テキスト縁の色

stroke_width number <optional>

テキスト縁の幅

enable_stroke number <optional>

テキストの縁取りを有効にするか

id string <optional>

Entryを識別するID

Source:

Members


<readonly> animation :mapray.animation.BindingBlock

アニメーションパラメータ設定

Type:
Source:

<readonly> id :string

ID

Type:
  • string
Source:

Methods


setColor(color)

テキストの色を設定

Parameters:
Name Type Description
color mapray.Vector3

テキストの色

Source:

setEnableStroke(enable)

テキスト縁を有効にするかどうか

Parameters:
Name Type Description
enable boolean

trueなら有効

Source:

setFontSize(size)

フォントの大きさを設定

Parameters:
Name Type Description
size number

フォントの大きさ (Pixels)

Source:

setFontStyle(style)

フォントスタイルを設定

Parameters:
Name Type Description
style string

フォントスタイル ("normal" | "italic" | "oblique")

Source:

setFontWeight(weight)

フォントの太さを設定

Parameters:
Name Type Description
weight string

フォントの太さ ("normal" | "bold")

Source:

setPosition(position)

テキスト原点位置を設定

Parameters:
Name Type Description
position mapray.GeoPoint

テキスト原点の位置

Source:

setStrokeColor(color)

テキスト縁の色を設定

Parameters:
Name Type Description
color mapray.Vector3

縁の色

Source:

setStrokeLineWidth(width)

テキスト縁の太さを設定

Parameters:
Name Type Description
width mapray.number

縁の線幅

Source:

setText(text)

テキストを設定

Parameters:
Name Type Description
text string

テキスト

Source: