Tile - YMap - Add World Map Marker – Ylands

From Bohemia Interactive Community
Revision as of 12:16, 12 November 2021 by YlandsClassyBot (talk | contribs) (Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Add World Map Marker(Position, Id, Image, Backgro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add World Map Marker(Position, Id, Image, Background color, Visible by default)

YlandsTile-1156.png

YlandsTile-1156-rv.png

static addWorldMarker(position: YVector3, id: string, image: YCustomImage | YImage, backgroundColor: YColor, visibleByDefault: boolean): YMapMarker;

Parameters

position

Target position of the map marker in world coordinates.

id

Unique ID of the map marker.

image

Foreground image of the map marker.

backgroundColor

Color of the background image of the map marker.

visibleByDefault

Sets whether the map marker is automatically displayed to every player.

Returns

YMapMarker

Availability

Server

Description

Creates a new unbound map marker object placed on target world coordinates.