Marker#
Marker
The base class of map markers and navball markers.
A Marker object is returned as {"id": ..., "class": ...}, its identifier and the name
of its own class. An argument is that object or the identifier alone. A path that acts on an
object takes the identifier as (id).
- GET /drawing/marker/(id)/reference-frame#
The reference frame that the position or direction of the marker is in.
- Parameters:
id – The identifier of the Marker object.
- Response JSON Object:
value (SpaceCenter.ReferenceFrame)
- PUT /drawing/marker/(id)/reference-frame#
The reference frame that the position or direction of the marker is in.
- Parameters:
id – The identifier of the Marker object.
- Request JSON Object:
value (SpaceCenter.ReferenceFrame) – The new value.
- GET /drawing/marker/(id)/visible#
Whether the object is visible.
Inherited from Drawable.
- Parameters:
id – The identifier of the Marker object.
- Response JSON Object:
value (bool)
- PUT /drawing/marker/(id)/visible#
Whether the object is visible.
Inherited from Drawable.
- Parameters:
id – The identifier of the Marker object.
- Request JSON Object:
value (bool) – The new value.
- GET /drawing/marker/(id)/color#
The color of the object.
Inherited from Drawable.
Note
For a path drawn with more than one color, this is the color at its start.
- Parameters:
id – The identifier of the Marker object.
- Response JSON Object:
value (StdLib.ColorRGB)
- PUT /drawing/marker/(id)/color#
The color of the object.
Inherited from Drawable.
Note
For a path drawn with more than one color, this is the color at its start.
- Parameters:
id – The identifier of the Marker object.
- Request JSON Object:
value (StdLib.ColorRGB) – The new value.
- GET /drawing/marker/(id)/image#
The image that the marker is drawn with in place of its icon, or null to draw the icon.
- Parameters:
id – The identifier of the Marker object.
- Response JSON Object:
value (Drawing.Image?)
- PUT /drawing/marker/(id)/image#
The image that the marker is drawn with in place of its icon, or null to draw the icon.
- Parameters:
id – The identifier of the Marker object.
- Request JSON Object:
value (Drawing.Image?) – The new value.
- GET /drawing/marker/(id)/material#
The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material.
Inherited from Drawable.
- Parameters:
id – The identifier of the Marker object.
- Response JSON Object:
value (string)
- PUT /drawing/marker/(id)/material#
The material used to render the object. Creates the material from a shader with the given name. Throws an exception if the object is a marker, which the game draws with its own material.
Inherited from Drawable.
- Parameters:
id – The identifier of the Marker object.
- Request JSON Object:
value (string) – The new value.