![]() |
Online Maps
v3
|
Class implements the basic functionality of drawing on the map. More...
Public Member Functions | |
virtual void | DestroyInstance () |
Destroys the instance of the drawing element. More... | |
void | Dispose () |
Dispose drawing element. More... | |
virtual void | Draw (Color32[] buffer, Vector2 bufferPosition, int bufferWidth, int bufferHeight, float zoom, bool invertY=false) |
Draw element on the map. More... | |
virtual void | DrawOnTileset (OnlineMapsTileSetControl control, int index) |
Draws element on a specified TilesetControl. More... | |
virtual bool | HitTest (Vector2 positionLngLat, int zoom) |
Determines if the drawing element at the specified coordinates. More... | |
virtual bool | Validate () |
Validate drawing element. More... | |
Static Public Member Functions | |
static void | MarkChanged () |
It marks the elements changed. It is used for the Drawing API as an overlay. More... | |
Public Attributes | |
Action< OnlineMapsDrawingElement > | OnClick |
Events that occur when user click on the drawing element. More... | |
Action< OnlineMapsDrawingElement > | OnDoubleClick |
Events that occur when user double click on the drawing element. More... | |
Action< OnlineMapsDrawingElement > | OnDrawTooltip |
Event caused to draw tooltip. More... | |
Action< OnlineMapsDrawingElement, Renderer > | OnInitMesh |
Event that occur when tileset initializes a mesh. More... | |
Action< OnlineMapsDrawingElement > | OnLongPress |
Events that occur when user long press on the drawing element. More... | |
Action< OnlineMapsDrawingElement > | OnPress |
Events that occur when user press on the drawing element. More... | |
Action< OnlineMapsDrawingElement > | OnRelease |
Events that occur when user release on the drawing element. More... | |
bool | checkMapBoundaries = true |
Need to check the map boundaries? It allows you to make drawing element, which are active outside the map. More... | |
OnlineMapsRange | range |
Zoom range, in which the drawing element will be displayed. More... | |
string | tooltip |
Tooltip that is displayed when user hover on the drawing element. More... | |
float | yOffset = 0 |
The local Y position for the GameObject on Tileset. More... | |
Static Public Attributes | |
static Action< OnlineMapsDrawingElement > | OnElementDrawTooltip |
Default event caused to draw tooltip. More... | |
Properties | |
object? | this[string key] [get, set] |
Gets or sets custom data by key. More... | |
virtual bool | active [get, set] |
Gets or sets the active state of the drawing element GameObject. More... | |
abstract bool | createBackgroundMaterial [get] |
Creates a background material for the drawing element. More... | |
Dictionary< string, object > | customFields [get] |
Gets custom fields. More... | |
virtual OnlineMapsVector2d | center [get] |
Center point of the drawing element. More... | |
virtual string | defaultName [get] |
Default name of the drawing element. More... | |
OnlineMapsElevationManagerBase | elevationManager [get] |
Gets the elevation manager. More... | |
bool | hasElevation [get] |
Checks if the elevation is used. More... | |
GameObject | instance [get] |
Instance of the drawing element. More... | |
IOnlineMapsInteractiveElementManager? | manager [get, set] |
Reference to DrawingElementManager. More... | |
string | name [get, set] |
Gets or sets the name of the drawing element. More... | |
int | renderQueueOffset [get, set] |
Gets or sets the render queue offset. More... | |
virtual bool | splitToPieces [get] |
Should the drawing element be split into pieces? More... | |
virtual bool | visible [get, set] |
Gets or sets the visibility of the drawing element. More... | |
Class implements the basic functionality of drawing on the map.
|
virtual |
Destroys the instance of the drawing element.
Implements IOnlineMapsInteractiveElement.
void OnlineMapsDrawingElement.Dispose | ( | ) |
Dispose drawing element.
Implements IOnlineMapsInteractiveElement.
|
virtual |
Draw element on the map.
buffer | Backbuffer |
bufferPosition | Backbuffer position |
bufferWidth | Backbuffer width |
bufferHeight | Backbuffer height |
zoom | Zoom of the map |
invertY | Invert Y direction |
Reimplemented in OnlineMapsDrawingRect, OnlineMapsDrawingPoly, and OnlineMapsDrawingLine.
|
virtual |
Draws element on a specified TilesetControl.
control | Reference to tileset control. |
index | Index of drawing element |
Reimplemented in OnlineMapsDrawingRect, OnlineMapsDrawingPoly, and OnlineMapsDrawingLine.
|
virtual |
Determines if the drawing element at the specified coordinates.
positionLngLat | Position. |
zoom | The zoom. |
Reimplemented in OnlineMapsDrawingRect, OnlineMapsDrawingPoly, and OnlineMapsDrawingLine.
|
static |
It marks the elements changed.
It is used for the Drawing API as an overlay.
|
virtual |
Validate drawing element.
Reimplemented in OnlineMapsDrawingRect, OnlineMapsDrawingPoly, and OnlineMapsDrawingLine.
bool OnlineMapsDrawingElement.checkMapBoundaries = true |
Need to check the map boundaries?
It allows you to make drawing element, which are active outside the map.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnClick |
Events that occur when user click on the drawing element.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnDoubleClick |
Events that occur when user double click on the drawing element.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnDrawTooltip |
Event caused to draw tooltip.
|
static |
Default event caused to draw tooltip.
Action<OnlineMapsDrawingElement, Renderer> OnlineMapsDrawingElement.OnInitMesh |
Event that occur when tileset initializes a mesh.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnLongPress |
Events that occur when user long press on the drawing element.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnPress |
Events that occur when user press on the drawing element.
Action<OnlineMapsDrawingElement> OnlineMapsDrawingElement.OnRelease |
Events that occur when user release on the drawing element.
OnlineMapsRange OnlineMapsDrawingElement.range |
Zoom range, in which the drawing element will be displayed.
string OnlineMapsDrawingElement.tooltip |
Tooltip that is displayed when user hover on the drawing element.
float OnlineMapsDrawingElement.yOffset = 0 |
The local Y position for the GameObject on Tileset.
|
getsetprotected |
Gets or sets the active state of the drawing element GameObject.
|
get |
Center point of the drawing element.
|
getprotected |
Creates a background material for the drawing element.
|
get |
Gets custom fields.
|
getprotected |
Default name of the drawing element.
|
getprotected |
Gets the elevation manager.
|
getprotected |
Checks if the elevation is used.
|
get |
Instance of the drawing element.
|
getset |
Reference to DrawingElementManager.
|
getset |
Gets or sets the name of the drawing element.
|
getset |
Gets or sets the render queue offset.
|
getprotected |
Should the drawing element be split into pieces?
|
getset |
Gets or sets custom data by key.
key | Key |
|
getset |
Gets or sets the visibility of the drawing element.