MapObject class abstract
@ingroup navigine_dart_classes @ingroup navigine_dart_location_view
@brief Base interface for handling objects on the location view.
Used to manage objects in @see LocationWindow "LocationWindow".
Can be handled in the pickMapObjectAt method @see LocationWindow "LocationWindow".
Referenced from @see CircleMapObject "CircleMapObject", @see IconMapObject "IconMapObject", @see PolylineMapObject "PolylineMapObject", @see PolygonMapObject "PolygonMapObject", @see DottedPolylineMapObject "DottedPolylineMapObject".
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getData(
) → Uint8List - @brief Gets the user-defined data associated with the map object. @return The data stored in the map object.
-
getId(
) → int - @brief Gets the unique identifier of the map object. @return The unique identifier of the map object.
-
getType(
) → MapObjectType - @brief Gets the type of the map object. @return The type of the map object @see MapObjectType "MapObjectType".
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAlpha(
double alpha) → bool - @brief Method is used to set the opacity of the map object. @param alpha Opacity multiplier. Values below 0 will be set to 0. Values above 1 will be set to 1. Default: 1. @return true if the operation is successful, false otherwise.
-
setData(
Uint8List data) → void - @brief Method is used to set user-defined data for the map object. @param data Data to store in the map object.
-
setInteractive(
bool interactive) → bool -
@brief Method is used to specify whether the map object can be interacted with.
@param interactive Specifies whether the object can be picked in the
pickMapObjectAtmethod (true) or not (false). Default: false. @return true if the operation is successful, false otherwise. -
setTitle(
String title) → bool - @brief Method is used to set the title of the map object. @param title The title to display on the location view. @return true if the operation is successful, false otherwise.
-
setVisible(
bool visible) → bool - @brief Method is used to specify the visibility of the map object. @param visible Specifies whether the object is visible (true) or hidden (false). Default: true. @return true if the operation is successful, false otherwise.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited