![]() |
Online Maps
v3
|
The base class for markers. More...
Public Member Functions | |
virtual void | Dispose () |
Disposes marker More... | |
T | Get< T > (string key) |
Gets the value from the customFields dictionary by key. 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... | |
virtual void | LookToCoordinates (OnlineMapsVector2d coordinates) |
Turns the marker in the direction specified coordinates 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... | |
virtual void | Update () |
Update of marker instance. More... | |
virtual void | Update (double tlx, double tly, double brx, double bry, int zoom) |
Method that called when need update marker. More... | |
Public Attributes | |
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... | |
Static Public Attributes | |
static Action< OnlineMapsMarkerBase > | OnMarkerDrawTooltip |
Default event caused to draw tooltip. More... | |
Properties | |
Dictionary< string, object > | customFields [get] |
Get customFields dictionary. 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... | |
object? | this[string key] [get, set] |
Get or set a value in the customFields dictionary by key. More... | |
The base class for markers.
|
virtual |
Disposes marker
Implements IOnlineMapsInteractiveElement.
T OnlineMapsMarkerBase.Get< T > | ( | string | key | ) |
Gets the value from the customFields dictionary by key.
key | Field key. |
T | Type of value. |
void OnlineMapsMarkerBase.GetPosition | ( | out double | lng, |
out double | lat | ||
) |
Gets location of marker.
lng | Longitude |
lat | Latitude |
void OnlineMapsMarkerBase.GetTilePosition | ( | int | zoom, |
out double | px, | ||
out double | py | ||
) |
Get tile position of the marker
zoom | Zoom |
px | Tile X |
py | Tile Y |
void OnlineMapsMarkerBase.GetTilePosition | ( | out double | px, |
out double | py | ||
) |
Get tile position of the marker
px | Tile X |
py | Tile Y |
void OnlineMapsMarkerBase.GetTilePosition | ( | out double | px, |
out double | py, | ||
int | zoom | ||
) |
Get tile position of the marker
px | Tile X |
py | Tile Y |
zoom | Zoom |
bool OnlineMapsMarkerBase.InMapView | ( | ) |
Checks if the marker is in the current map view
void OnlineMapsMarkerBase.LookToCoordinates | ( | double | longitude, |
double | latitude | ||
) |
Turns the marker in the direction specified coordinates
longitude | Longitude |
latitude | Latitude |
|
virtual |
Turns the marker in the direction specified coordinates
coordinates | The coordinates |
Reimplemented in OnlineMapsMarker3D, and OnlineMapsMarker.
void OnlineMapsMarkerBase.SetDraggable | ( | bool | value = true | ) |
Makes the marker draggable or un draggable
value | True - set draggable, false - unset draggable |
void OnlineMapsMarkerBase.SetPosition | ( | double | lng, |
double | lat | ||
) |
Set location of marker
lng | Longitude |
lat | Latitude |
|
virtual |
Update of marker instance.
Reimplemented in OnlineMapsMarker3D.
|
virtual |
Method that called when need update marker.
tlx | Top-left longitude. |
tly | Top-left latutude. |
brx | Bottom-right longitude. |
bry | Bottom-right latitude. |
zoom | Map zoom. |
Reimplemented in OnlineMapsMarker3D.
string OnlineMapsMarkerBase.label = "" |
Marker label.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnClick |
Events that occur when user click on the marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnDoubleClick |
Events that occur when user double click on the marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnDrag |
Events that occur when user drag the marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnDrawTooltip |
Event caused to draw tooltip.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnEnabledChange |
Event occurs when the marker enabled change.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnInitComplete |
Event occurs when the marker is initialized.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnLongPress |
Events that occur when user long press on the marker.
|
static |
Default event caused to draw tooltip.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnPositionChanged |
Event that occurs when the marker position changed.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnPress |
Events that occur when user press on the marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnRelease |
Events that occur when user release on the marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnRollOut |
Events that occur when user roll out marker.
Action<OnlineMapsMarkerBase> OnlineMapsMarkerBase.OnRollOver |
Events that occur when user roll over marker.
OnlineMapsRange OnlineMapsMarkerBase.range |
Zoom range, in which the marker will be displayed.
List<string> OnlineMapsMarkerBase.tags |
List of tags.
|
get |
Get customFields dictionary.
|
getset |
Gets or sets marker enabled.
true if enabled, false if not.
|
get |
Checks to display marker in current map view.
|
getset |
Makes the marker draggable or un draggable
|
getset |
Reference to Marker Manager
|
getset |
Marker coordinates.
|
getset |
Scale of marker.
|
getset |
Get or set a value in the customFields dictionary by key.
key | Field key. |