Online Maps
v3
|
Base class for marker manager components More...
Public Member Functions | |
OnlineMapsMarker | Create (Vector2 location, string label) |
Create a new marker More... | |
OnlineMapsMarker | Create (Vector2 location, Texture2D texture=null, string label="") |
Create a new marker More... | |
OnlineMapsMarker | Create (double longitude, double latitude, 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... | |
Base class for marker manager components
OnlineMapsMarker OnlineMapsMarkerManager.Create | ( | double | longitude, |
double | latitude, | ||
string | label | ||
) |
Create a new marker
longitude | Longitude |
latitude | Latitude |
label | Tooltip |
OnlineMapsMarker OnlineMapsMarkerManager.Create | ( | double | longitude, |
double | latitude, | ||
Texture2D | texture = null , |
||
string | label = "" |
||
) |
Create a new marker
longitude | Longitude |
latitude | Latitude |
texture | Texture of the marker |
label | Tooltip |
OnlineMapsMarker OnlineMapsMarkerManager.Create | ( | Vector2 | location, |
string | label | ||
) |
Create a new marker
location | Location of the marker (X - longitude, Y - latitude) |
label | Tooltip |
OnlineMapsMarker OnlineMapsMarkerManager.Create | ( | Vector2 | location, |
Texture2D | texture = null , |
||
string | label = "" |
||
) |
Create a new marker
location | Location of the marker (X - longitude, Y - latitude) |
texture | Texture of the marker |
label | Tooltip |
|
static |
Create a new marker
longitude | Longitude |
latitude | Latitude |
label | Tooltip |
|
static |
Create a new marker
longitude | Longitude |
latitude | Latitude |
texture | Texture of the marker |
label | Tooltip |
|
static |
Create a new marker
location | Location of the marker (X - longitude, Y - latitude) |
label | Tooltip |
|
static |
Create a new marker
location | Location of the marker (X - longitude, Y - latitude) |
texture | Texture of the marker |
label | Tooltip |
void OnlineMapsMarkerManager.LoadSettings | ( | OnlineMapsJSONItem | json | ) |
Load items and component settings from JSON
json | JSON item |
bool OnlineMapsMarkerManager.allowAddMarkerByM = true |
Specifies whether to create a 2D marker by pressing M under the cursor.
OnlineMapsAlign OnlineMapsMarkerManager.defaultAlign = OnlineMapsAlign.Bottom |
Align for new markers
Texture2D OnlineMapsMarkerManager.defaultTexture |
Texture to be used if marker texture is not specified.