LiveMap API
Loading...
Searching...
No Matches
livemap.layer.marker.Polyline Class Reference

The polyline marker is used to draw polyline overlays on the map. More...

Inheritance diagram for livemap.layer.marker.Polyline:
Collaboration diagram for livemap.layer.marker.Polyline:

Public Member Functions

 Polyline ()
 Create a new polyline at 0,0 with a random id.
 Polyline (string id, Point points, PolylineOptions? options=null)
 Create a new polyline.
 Polyline (string id, Point[] points, PolylineOptions? options=null)
 Create a new polyline.
 Polyline (string id, Point[][] points, PolylineOptions? options=null)
 Create a new polyline.
 Polyline (string id, Point[][][] points, PolylineOptions? options=null)
 Create a new polyline.
Public Member Functions inherited from livemap.layer.marker.Marker
string ToJson ()
 Serializes this object to a JSON string.

Static Public Member Functions

static Polyline FromJson (string json)
Static Public Member Functions inherited from livemap.layer.marker.Marker
static T FromJson< T > (string json)
 Deserializes a JSON string into an instance of this object.

Properties

Point[][][] Points [get, set]
 Absolute (not relative to spawn) world coordinates for the polyline's points.
new? PolylineOptions Options [get, set]
Properties inherited from livemap.layer.marker.Marker
string Type [get]
 Type identifier for the marker.
string Id [get]
 Unique id for the marker.
BaseOptionsOptions [get, set]
 Optional settings.
TooltipOptionsTooltip [get, set]
 Optional tooltip settings.
PopupOptionsPopup [get, set]
 Optional popup settings.

Additional Inherited Members

Protected Member Functions inherited from livemap.layer.marker.Marker
 Marker (string type, string id)

Detailed Description

The polyline marker is used to draw polyline overlays on the map.

You can fill in these polyline shapes with the Polygon

Constructor & Destructor Documentation

◆ Polyline() [1/5]

livemap.layer.marker.Polyline.Polyline ( )
inline

Create a new polyline at 0,0 with a random id.

◆ Polyline() [2/5]

livemap.layer.marker.Polyline.Polyline ( string id,
Point points,
PolylineOptions? options = null )
inline

Create a new polyline.

Parameters
idUnique identifying key
pointsAbsolute (not relative to spawn) world coordinates for the polyline's points
optionsOptional settings for the polyline

◆ Polyline() [3/5]

livemap.layer.marker.Polyline.Polyline ( string id,
Point[] points,
PolylineOptions? options = null )
inline

Create a new polyline.

Parameters
idUnique identifying key
pointsAbsolute (not relative to spawn) world coordinates for the polyline's points
optionsOptional settings for the polyline

◆ Polyline() [4/5]

livemap.layer.marker.Polyline.Polyline ( string id,
Point points[][],
PolylineOptions? options = null )
inline

Create a new polyline.

Parameters
idUnique identifying key
pointsAbsolute (not relative to spawn) world coordinates for the polyline's points
optionsOptional settings for the polyline

◆ Polyline() [5/5]

livemap.layer.marker.Polyline.Polyline ( string id,
Point points[][][],
PolylineOptions? options = null )
inline

Create a new polyline.

Parameters
idUnique identifying key
pointsAbsolute (not relative to spawn) world coordinates for the polyline's points
optionsOptional settings for the polyline

Member Function Documentation

◆ FromJson()

Polyline livemap.layer.marker.Polyline.FromJson ( string json)
static

Property Documentation

◆ Options

new? PolylineOptions livemap.layer.marker.Polyline.Options
getset

◆ Points

Point [][][] livemap.layer.marker.Polyline.Points
getset

Absolute (not relative to spawn) world coordinates for the polyline's points.


The documentation for this class was generated from the following file: