Online Maps  v3
OnlineMapsMarkerManager Class Reference

Base class for marker manager components More...

Inheritance diagram for OnlineMapsMarkerManager:
OnlineMapsMarkerManagerBase< OnlineMapsMarkerManager, OnlineMapsMarker >

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Detailed Description

Base class for marker manager components

Member Function Documentation

◆ Create() [1/2]

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() [2/2]

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</returns

◆ 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

Member Data Documentation

◆ allowAddMarkerByM

bool OnlineMapsMarkerManager.allowAddMarkerByM = true

Specifies whether to create a 2D marker by pressing M under the cursor.

◆ defaultAlign

OnlineMapsAlign OnlineMapsMarkerManager.defaultAlign = OnlineMapsAlign.Bottom

Align for new markers

◆ defaultTexture

Texture2D OnlineMapsMarkerManager.defaultTexture

Texture to be used if marker texture is not specified.