![]() |
Online Maps
v3
|
3D marker class.
Can be used only when the source display - Texture or Tileset.
More...
Public Types | |
enum | SizeType { SizeType.scene, SizeType.realWorld, SizeType.meters } |
Type of 3d marker size More... | |
Public Member Functions | |
OnlineMapsMarker3D () | |
Constructor of 3D marker More... | |
OnlineMapsMarker3D (GameObject instance) | |
Create 3D marker from an existing GameObject. More... | |
void | Init (Transform parent) |
Initializes this object. More... | |
override void | LookToCoordinates (OnlineMapsVector2d coordinates) |
Turns the marker in the direction specified coordinates More... | |
void | Reinit () |
Reinitialises this object. More... | |
void | Reinit (double tlx, double tly, double brx, double bry, int zoom) |
Reinitialises this object. More... | |
override void | Update () |
Updates marker instance. More... | |
override void | Update (double tlx, double tly, double brx, double bry, int zoom) |
Updates marker instance. More... | |
void | Update (Bounds bounds, double tlx, double tly, double brx, double bry, int zoom, double ttlx, double ttly, double tbrx, double tbry, float bestYScale) |
Updates marker instance. More... | |
void | Update (OnlineMaps map, OnlineMapsControlBase3D control, Bounds bounds, double tlx, double tly, double brx, double bry, int zoom, double ttlx, double ttly, double tbrx, double tbry, float bestYScale) |
Updates marker instance. More... | |
![]() | |
virtual void | Dispose () |
Disposes marker More... | |
void | GetPosition (out double lng, out double lat) |
Gets location of marker. More... | |
void | GetTilePosition (out double px, out double py) |
Get tile position of the marker More... | |
void | GetTilePosition (out double px, out double py, int zoom) |
Get tile position of the marker More... | |
void | GetTilePosition (int zoom, out double px, out double py) |
Get tile position of the marker More... | |
bool | InMapView () |
Checks if the marker is in the current map view More... | |
void | LookToCoordinates (double longitude, double latitude) |
Turns the marker in the direction specified coordinates More... | |
void | SetPosition (double lng, double lat) |
Set location of marker More... | |
void | SetDraggable (bool value=true) |
Makes the marker draggable or un draggable More... | |
Public Attributes | |
float? | altitude |
Altitude (meters). More... | |
OnlineMapsAltitudeType | altitudeType = OnlineMapsAltitudeType.absolute |
Type of altitude More... | |
bool | checkMapBoundaries = true |
Need to check the map boundaries? It allows you to make 3D markers, which are active outside the map. More... | |
OnlineMapsControlBase3D | control |
Reference of 3D control. More... | |
bool | inited = false |
Specifies whether the marker is initialized. More... | |
GameObject | instance |
The instance. More... | |
GameObject | prefab |
Marker prefab GameObject. More... | |
SizeType | sizeType = SizeType.scene |
How marker size will be calculated. More... | |
![]() | |
Action< OnlineMapsMarkerBase > | OnClick |
Events that occur when user click on the marker. More... | |
Action< OnlineMapsMarkerBase > | OnDoubleClick |
Events that occur when user double click on the marker. More... | |
Action< OnlineMapsMarkerBase > | OnDrag |
Events that occur when user drag the marker. More... | |
Action< OnlineMapsMarkerBase > | OnDrawTooltip |
Event caused to draw tooltip. More... | |
Action< OnlineMapsMarkerBase > | OnEnabledChange |
Event occurs when the marker enabled change. More... | |
Action< OnlineMapsMarkerBase > | OnInitComplete |
Event occurs when the marker is initialized. More... | |
Action< OnlineMapsMarkerBase > | OnLongPress |
Events that occur when user long press on the marker. More... | |
Action< OnlineMapsMarkerBase > | OnPress |
Events that occur when user press on the marker. More... | |
Action< OnlineMapsMarkerBase > | OnPositionChanged |
Event that occurs when the marker position changed. More... | |
Action< OnlineMapsMarkerBase > | OnRelease |
Events that occur when user release on the marker. More... | |
Action< OnlineMapsMarkerBase > | OnRollOut |
Events that occur when user roll out marker. More... | |
Action< OnlineMapsMarkerBase > | OnRollOver |
Events that occur when user roll over marker. More... | |
string | label = "" |
Marker label. More... | |
OnlineMapsRange | range |
Zoom range, in which the marker will be displayed. More... | |
List< string > | tags |
List of tags. More... | |
Properties | |
override bool | enabled [set] |
Gets or sets marker enabled. More... | |
Vector3? | relativePosition [get] |
Returns the position of the marker relative to Texture. More... | |
Quaternion? | rotation [get, set] |
Gets or sets rotation of 3D marker. More... | |
float | rotationY [get, set] |
Y rotation of 3D marker (degree). More... | |
Transform? | transform [get] |
Gets the instance transform. More... | |
![]() | |
Dictionary< string, object > | customFields [get] |
Get customFields dictionary. More... | |
object? | this[string key] [get, set] |
Get or set a value in the customFields dictionary by key. More... | |
virtual bool | enabled [get, set] |
Gets or sets marker enabled. More... | |
bool | isDraggable [get, set] |
Makes the marker draggable or un draggable More... | |
IOnlineMapsInteractiveElementManager? | manager [get, set] |
Reference to Marker Manager More... | |
Vector2 | position [get, set] |
Marker coordinates. More... | |
virtual float | scale [get, set] |
Scale of marker. More... | |
virtual bool | inMapView [get] |
Checks to display marker in current map view. More... | |
Additional Inherited Members | |
![]() | |
static Action< OnlineMapsMarkerBase > | OnMarkerDrawTooltip |
Default event caused to draw tooltip. More... | |
3D marker class.
Can be used only when the source display - Texture or Tileset.
|
strong |
OnlineMapsMarker3D.OnlineMapsMarker3D | ( | ) |
Constructor of 3D marker
OnlineMapsMarker3D.OnlineMapsMarker3D | ( | GameObject | instance | ) |
Create 3D marker from an existing GameObject.
instance | GameObject to be used as a 3D marker. |
void OnlineMapsMarker3D.Init | ( | Transform | parent | ) |
Initializes this object.
parent | The parent transform. |
|
virtual |
Turns the marker in the direction specified coordinates
coordinates | The coordinates |
Reimplemented from OnlineMapsMarkerBase.
void OnlineMapsMarker3D.Reinit | ( | ) |
Reinitialises this object.
void OnlineMapsMarker3D.Reinit | ( | double | tlx, |
double | tly, | ||
double | brx, | ||
double | bry, | ||
int | zoom | ||
) |
Reinitialises this object.
tlx | Top-left longitude of map |
tly | Top-left latitude of map |
brx | Bottom-right longitude of map |
bry | Bottom-right latitude of map |
zoom | Map zoom |
|
virtual |
Updates marker instance.
Reimplemented from OnlineMapsMarkerBase.
void OnlineMapsMarker3D.Update | ( | Bounds | bounds, |
double | tlx, | ||
double | tly, | ||
double | brx, | ||
double | bry, | ||
int | zoom, | ||
double | ttlx, | ||
double | ttly, | ||
double | tbrx, | ||
double | tbry, | ||
float | bestYScale | ||
) |
Updates marker instance.
bounds | Bounds of the map mesh |
tlx | Longitude of top-left corner of the map |
tly | Latitude of top-left corner of the map |
brx | Longitude of bottom-right corner of the map |
bry | Latitude of bottom-right corner of the map |
zoom | Zoom of the map |
ttlx | Tile X of top-left corner of the map |
ttly | Tile Y of top-left corner of the map |
tbrx | Tile X of bottom-right corner of the map |
tbry | Tile Y of bottom-right corner of the map |
bestYScale | Best y scale for current map view |
|
virtual |
Updates marker instance.
tlx | Longitude of top-left corner of the map |
tly | Latitude of top-left corner of the map |
brx | Longitude of bottom-right corner of the map |
bry | Latitude of bottom-right corner of the map |
zoom | Zoom of the map |
Reimplemented from OnlineMapsMarkerBase.
void OnlineMapsMarker3D.Update | ( | OnlineMaps | map, |
OnlineMapsControlBase3D | control, | ||
Bounds | bounds, | ||
double | tlx, | ||
double | tly, | ||
double | brx, | ||
double | bry, | ||
int | zoom, | ||
double | ttlx, | ||
double | ttly, | ||
double | tbrx, | ||
double | tbry, | ||
float | bestYScale | ||
) |
Updates marker instance.
map | Reference to the map |
control | Reference to the control |
bounds | Bounds of the map mesh |
tlx | Longitude of top-left corner of the map |
tly | Latitude of top-left corner of the map |
brx | Longitude of bottom-right corner of the map |
bry | Latitude of bottom-right corner of the map |
zoom | Zoom of the map |
ttlx | Tile X of top-left corner of the map |
ttly | Tile Y of top-left corner of the map |
tbrx | Tile X of bottom-right corner of the map |
tbry | Tile Y of bottom-right corner of the map |
bestYScale | Best y scale for current map view |
float? OnlineMapsMarker3D.altitude |
Altitude (meters).
OnlineMapsAltitudeType OnlineMapsMarker3D.altitudeType = OnlineMapsAltitudeType.absolute |
Type of altitude
bool OnlineMapsMarker3D.checkMapBoundaries = true |
Need to check the map boundaries?
It allows you to make 3D markers, which are active outside the map.
OnlineMapsControlBase3D OnlineMapsMarker3D.control |
Reference of 3D control.
bool OnlineMapsMarker3D.inited = false |
Specifies whether the marker is initialized.
GameObject OnlineMapsMarker3D.instance |
The instance.
GameObject OnlineMapsMarker3D.prefab |
Marker prefab GameObject.
SizeType OnlineMapsMarker3D.sizeType = SizeType.scene |
How marker size will be calculated.
|
set |
Gets or sets marker enabled.
true if enabled, false if not.
|
get |
Returns the position of the marker relative to Texture.
The relative position.
|
getset |
Gets or sets rotation of 3D marker.
|
getset |
Y rotation of 3D marker (degree).
|
get |
Gets the instance transform.
The transform.