.. default-domain:: http .. highlight:: json Marker ====== .. _http-Drawing.Marker: .. rubric:: Marker The base class of map markers and navball markers. | Base class: :ref:`Drawable ` | Derived classes: :ref:`MapMarker `, :ref:`NavballMarker ` 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)``. .. http:get:: /drawing/marker/(id)/reference-frame The reference frame that the position or direction of the marker is in. :param id: The identifier of the :ref:`Marker ` object. :resjson SpaceCenter.ReferenceFrame value: .. http:put:: /drawing/marker/(id)/reference-frame The reference frame that the position or direction of the marker is in. :param id: The identifier of the :ref:`Marker ` object. :reqjson SpaceCenter.ReferenceFrame value: The new value. .. http:get:: /drawing/marker/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Marker ` object. :resjson bool value: .. http:put:: /drawing/marker/(id)/visible Whether the object is visible. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Marker ` object. :reqjson bool value: The new value. .. http:get:: /drawing/marker/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`Marker ` object. :resjson StdLib.ColorRGB value: .. http:put:: /drawing/marker/(id)/color The color of the object. Inherited from :ref:`Drawable `. .. note:: For a path drawn with more than one color, this is the color at its start. :param id: The identifier of the :ref:`Marker ` object. :reqjson StdLib.ColorRGB value: The new value. .. http:get:: /drawing/marker/(id)/image The image that the marker is drawn with in place of its icon, or null to draw the icon. :param id: The identifier of the :ref:`Marker ` object. :resjson Drawing.Image? value: .. http:put:: /drawing/marker/(id)/image The image that the marker is drawn with in place of its icon, or null to draw the icon. :param id: The identifier of the :ref:`Marker ` object. :reqjson Drawing.Image? value: The new value. .. http: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 :ref:`Drawable `. :param id: The identifier of the :ref:`Marker ` object. :resjson string value: .. http: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 :ref:`Drawable `. :param id: The identifier of the :ref:`Marker ` object. :reqjson string value: The new value. .. http:post:: /drawing/marker/(id)/remove Remove the object. Inherited from :ref:`Drawable `. :param id: The identifier of the :ref:`Marker ` object.