Tile - YMap - Add World Map Marker – Ylands
Jump to navigation
Jump to search
Add World Map Marker(Position, Id, Image, Background color, Visible by default)
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
Description
Creates a new unbound map marker object placed on target world coordinates.