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