Online Maps v3
|
Base class for marker manager components. More...
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. | |
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 |