Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsMarkerManager Class Reference

Base class for marker manager components. More...

Inheritance diagram for OnlineMapsMarkerManager:
OnlineMapsMarkerManagerBase< OnlineMapsMarkerManager, OnlineMapsMarker >

Public Member Functions

OnlineMapsMarker Create (Vector2 location, string label)
 Create a new marker.
 
OnlineMapsMarker Create (Vector2 location, Texture2D texture=null, string label="")
 Create a new marker.
 
OnlineMapsMarker Create (double longitude, double latitude, string label)
 Create a new marker.
 
OnlineMapsMarker Create (double longitude, double latitude, Texture2D texture=null, string label="")
 Create a new marker.
 
void LoadSettings (OnlineMapsJSONItem json)
 Load items and component settings from JSON.
 

Static Public Member Functions

static OnlineMapsMarker CreateItem (Vector2 location, string label)
 Create a new marker.
 
static OnlineMapsMarker CreateItem (Vector2 location, Texture2D texture=null, string label="")
 Create a new marker.
 
static OnlineMapsMarker CreateItem (double longitude, double latitude, string label)
 Create a new marker.
 
static OnlineMapsMarker CreateItem (double longitude, double latitude, Texture2D texture=null, string label="")
 Create a new marker.
 

Public Attributes

Texture2D defaultTexture
 Texture to be used if marker texture is not specified.
 
OnlineMapsAlign defaultAlign = OnlineMapsAlign.Bottom
 Align for new markers.
 
bool allowAddMarkerByM = true
 Specifies whether to create a 2D marker by pressing M under the cursor.
 
- Public Attributes inherited from OnlineMapsMarkerManagerBase< OnlineMapsMarkerManager, OnlineMapsMarker >
Action< U > OnCreateItem
 Called when a marker is created.
 
float defaultScale
 Scaling of 3D markers by default.
 

Detailed Description

Base class for marker manager components.

Member Function Documentation

◆ Create() [1/4]

OnlineMapsMarker OnlineMapsMarkerManager.Create ( double longitude,
double latitude,
string label )

Create a new marker.

Parameters
longitudeLongitude
latitudeLatitude
labelTooltip
Returns
Instance of the marker

◆ Create() [2/4]

OnlineMapsMarker OnlineMapsMarkerManager.Create ( double longitude,
double latitude,
Texture2D texture = null,
string label = "" )

Create a new marker.

Parameters
longitudeLongitude
latitudeLatitude
textureTexture of the marker
labelTooltip
Returns
Instance of the marker

◆ Create() [3/4]

OnlineMapsMarker OnlineMapsMarkerManager.Create ( Vector2 location,
string label )

Create a new marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
labelTooltip
Returns
Instance of the marker

◆ Create() [4/4]

OnlineMapsMarker OnlineMapsMarkerManager.Create ( Vector2 location,
Texture2D texture = null,
string label = "" )

Create a new marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
textureTexture of the marker
labelTooltip
Returns
Instance of the marker

◆ CreateItem() [1/4]

static OnlineMapsMarker OnlineMapsMarkerManager.CreateItem ( double longitude,
double latitude,
string label )
static

Create a new marker.

Parameters
longitudeLongitude
latitudeLatitude
labelTooltip
Returns
Instance of the marker

◆ CreateItem() [2/4]

static OnlineMapsMarker OnlineMapsMarkerManager.CreateItem ( double longitude,
double latitude,
Texture2D texture = null,
string label = "" )
static

Create a new marker.

Parameters
longitudeLongitude
latitudeLatitude
textureTexture of the marker
labelTooltip
Returns
Instance of the marker

◆ CreateItem() [3/4]

static OnlineMapsMarker OnlineMapsMarkerManager.CreateItem ( Vector2 location,
string label )
static

Create a new marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
labelTooltip
Returns
Instance of the marker

◆ CreateItem() [4/4]

static OnlineMapsMarker OnlineMapsMarkerManager.CreateItem ( Vector2 location,
Texture2D texture = null,
string label = "" )
static

Create a new marker.

Parameters
locationLocation of the marker (X - longitude, Y - latitude)
textureTexture of the marker
labelTooltip
Returns
Instance of the marker

◆ LoadSettings()

void OnlineMapsMarkerManager.LoadSettings ( OnlineMapsJSONItem json)

Load items and component settings from JSON.

Parameters
jsonJSON item