Class: ImageIconEntity

mapray~ ImageIconEntity


new ImageIconEntity(scene [, opts])

画像アイコンエンティティ

Parameters:
Name Type Argument Description
scene mapray.Scene

所属可能シーン

opts object <optional>

オプション集合

Properties
Name Type Argument Description
json object <optional>

生成情報

refs object <optional>

参照辞書

transform mapray.Loader.TransformCallback <optional>
Source:

Extends

Classes

ImageEntry

要素

Members


altitude_mode :mapray.AltitudeMode

高度モード

Type:
Inherited From:
Overrides:
Source:

<readonly> animation :mapray.animation.BindingBlock

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

Type:
Inherited From:
Overrides:
Source:

<readonly> scene :mapray.Scene

所属可能シーン

Type:
Inherited From:
Overrides:
Source:

<readonly> visibility :boolean

可視性フラグを取得

Type:
  • boolean
Inherited From:
Overrides:
Source:

Methods


addImageIcon(image_src, position [, props])

Add Image Icon

Parameters:
Name Type Argument Description
image_src URL | HTMLImageElement | HTMLCanvasElement

画像

position mapray.GeoPoint

位置

props object <optional>

プロパティ

Properties
Name Type Argument Description
size mapray.Vector2 <optional>

アイコンサイズ

id string <optional>

Entryを識別するID

transform mapray.Loader.Transform <optional>

URL変換関数

Source:
Returns:

追加したEntry

Type
mapray.ImageIconEntity.ImageEntry

<abstract> getBounds()

バウンディングボックスを算出

Inherited From:
Overrides:
Source:
Returns:

バウンディングボックス

Type
mapray.GeoRegion

getEntry(id)

IDでEntryを取得

Parameters:
Name Type Description
id string

ID

Source:
Returns:

IDが一致するEntry(無ければundefined)

Type
mapray.ImageIconEntity.ImageEntry

setOrigin(origin)

アイコンの原点位置を指定

Parameters:
Name Type Description
origin mapray.Vector2

アイコンの原点位置

Source:

setSize(size)

アイコンのサイズを指定

Parameters:
Name Type Description
size mapray.Vector2

アイコンのピクセルサイズ

Source:

setVisibility(visibility)

可視性フラグを設定

Parameters:
Name Type Description
visibility boolean

可視性フラグ

Inherited From:
Overrides:
Source: