Marker
#include <bb/platform/geo/Marker>
To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps
A visual representation of a location on a map.
Markers are designed to indicate a location's position. Examples of markers include push pins, arrows, or bullseyes. A marker is a fixed image: when the map is zoomed in or out, the marker stays the same screen size.
BlackBerry 10.0.0
Public Functions Index
| Marker () | |
| Marker (const QString &iconUri, const QSize &iconSize, const QPoint &locCoord, const QPoint &captionCoord) | |
| Marker (const Marker &src) | |
| ~Marker () | |
| Marker & | operator= (const Marker &src) |
| bool | operator== (const Marker &rhs) const |
| bool | operator!= (const Marker &rhs) const |
| QString | iconUri () const |
| QString | absoluteIconPath () const |
| void | setIconUri (const QString &uri) |
| QSize | iconSize () const |
| void | setIconSize (const QSize &iconSize) |
| QPoint | locationCoordinate () const |
| void | setLocationCoordinate (const QPoint &locCoord) |
| QPoint | captionTailCoordinate () const |
| void | setCaptionTailCoordinate (const QPoint &captionCoord) |
Public Functions
Copy constructor.
| Parameters | |
|---|---|
| src |
The object from which to copy information. |
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
Marker &
Assignment operator.
| Parameters | |
|---|---|
| src |
The object from which to copy information. |
BlackBerry 10.0.0
bool
Equality operator.
true if all properties are equal.
BlackBerry 10.0.0
bool
Inequality operator.
true if any property is different.
BlackBerry 10.0.0
QString
Returns the URL to the icon.
The URL to the icon, as set in setIconUri().
BlackBerry 10.0.0
QString
Returns the absolute path to the icon stated in setIconUri.
This operation returns an absolute path to the icon's location using a POSIX format. Thus, any "file://" or "asset:///" protocols have been resolved to local paths, and relative paths have been resolved.
This is a read-only property set through setIconUri().
The absolute path to the icon.
BlackBerry 10.2.0
void
Sets the URI location of its graphical icon resource.
If the image that the icon points to doesn't exist, or if it is an invalid image, then no marker is displayed on the map.
| Parameters | |
|---|---|
| uri |
The path to the local icon. Paths can be absolute paths (eg: /usr/hmi/...), relative paths (relative to the application's root directory, eg: ./app/native/assets/...), file protocols (eg: file:///...) or asset protocols (eg: asset:///...). |
BlackBerry 10.0.0
void
Sets the size of the marker's icon.
| Parameters | |
|---|---|
| iconSize |
The new size of the icon. |
BlackBerry 10.0.0
QPoint
The coordinates within the marker that overlay the actual location.
Examples include the point of a push-pin, the center of a bullseye, or the head of an arrow.
The coordinates within the marker that represent the location.
BlackBerry 10.0.0
void
Sets the coordinates within the marker that represents the location.
| Parameters | |
|---|---|
| locCoord |
The new coordinates within the marker. |
BlackBerry 10.0.0
QPoint
The coordinates within the marker where the caption bubble's tail should point to.
The point within the icon where the caption bubble can safely point to.
BlackBerry 10.0.0
void
Sets the coordinates within the marker where the caption bubble's tail should point to.
| Parameters | |
|---|---|
| captionCoord |
The point within the icon where the caption bubble can safely point to. |
BlackBerry 10.0.0