コンテンツにスキップ

TextPinEntry

Summary

MakiIcon要素

Hideconstructor

Memberof

mapray.PinEntity

Extends

Constructors

new TextPinEntry()

new TextPinEntry(owner, text, position, props): TextPinEntry

Parameters

Parameter Type Description
owner PinEntity 所有者
text string テキスト
position GeoPoint 位置
props TextPinEntryOption プロパティ

Returns

TextPinEntry

Overrides

AbstractPinEntry.constructor

Properties

_icon?

protected optional _icon: IconLoaderItem

Inherited from

AbstractPinEntry._icon


_owner

protected _owner: PinEntity

Inherited from

AbstractPinEntry._owner


_props

protected _props: TextPinEntryProps

Inherited from

AbstractPinEntry._props


textIconLoader

static textIconLoader: TextIconLoader

Accessors

animation

get animation(): BindingBlock

Returns

BindingBlock


bg_color

get bg_color(): Vector3

アイコン背景色

Returns

Vector3


fg_color

get fg_color(): Vector3

アイコン色

Returns

Vector3


font_family

get font_family(): string

Summary

フォントファミリー

Package

Returns

string


icon

get icon(): undefined | IconLoaderItem

Returns

undefined | IconLoaderItem


id

get id(): string

ID

Returns

string


position

get position(): GeoPoint

位置

Returns

GeoPoint


size

get size(): Vector2

アイコンサイズ (Pixels)

Returns

Vector2

Methods

_loadIcon()

_loadIcon(): void

Returns

void

Inherited from

AbstractPinEntry._loadIcon


draw()

draw(context, x, y, width, height): void

Parameters

Parameter Type
context CanvasRenderingContext2D
x number
y number
width number
height number

Returns

void

Inherited from

AbstractPinEntry.draw


isLoaded()

isLoaded(): undefined | boolean

Returns

undefined | boolean

Inherited from

AbstractPinEntry.isLoaded


setBGColor()

setBGColor(color): void

アイコン背景の色を設定

Parameters

Parameter Type Description
color Vector3 アイコン背景の色

Returns

void

Inherited from

AbstractPinEntry.setBGColor


setFGColor()

setFGColor(color): void

アイコンの色を設定

Parameters

Parameter Type
color Vector3

Returns

void

Inherited from

AbstractPinEntry.setFGColor


setPosition()

setPosition(position): void

モデル原点位置を設定

Parameters

Parameter Type Description
position GeoPoint モデル原点の位置

Returns

void

Inherited from

AbstractPinEntry.setPosition


setSize()

setSize(size): void

アイコンのピクセルサイズを指定

Parameters

Parameter Type Description
size Vector2 アイコンのピクセルサイズ

Returns

void

Inherited from

AbstractPinEntry.setSize


setText()

setText(text): void

テキストを設定

Parameters

Parameter Type Description
text string テキスト

Returns

void