Tile - YMap - Add World Map Marker – Ylands

From Bohemia Interactive Community
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.