Interface for interacting with the location view. More...
Inherits Finalizable.
Public Member Functions | |
| void | setSublocationId (int id) |
| Method is used to switch the location view between sublocations (e.g., floors). | |
| int | getSublocationId () |
| Returns current sublocation ID if set, otherwise null. | |
| Camera | getEnclosingCamera (BoundingBox boundingBox) |
| Calculates camera that fits provided bounding box. | |
| Point | screenPositionToMeters (math.Point< double > point) |
| Converts screen coordinates (pixels) to metrics coordinates (meters). | |
| CircleMapObject | addCircleMapObject () |
| Creates and adds a circle map object to the location view. | |
| bool | removeCircleMapObject (CircleMapObject circleMapObject) |
| Removes a circle map object from the location view. | |
| IconMapObject | addIconMapObject () |
| Creates and adds an icon map object to the location view. | |
| bool | removeIconMapObject (IconMapObject iconMapObject) |
| Removes an icon map object from the location view. | |
| PolygonMapObject | addPolygonMapObject () |
| Creates and adds a polygon map object to the location view. | |
| bool | removePolygonMapObject (PolygonMapObject polygonMapObject) |
| Removes a polygon map object from the location view. | |
| PolylineMapObject | addPolylineMapObject () |
| Creates and adds a polyline map object to the location view. | |
| bool | removePolylineMapObject (PolylineMapObject polylineMapObject) |
| Removes a polyline map object from the location view. | |
| DottedPolylineMapObject | addDottedPolylineMapObject () |
| Creates and adds a polyline points map object to the location view. | |
| bool | removeDottedPolylineMapObject (DottedPolylineMapObject dottedPolylineMapObject) |
| Removes a polyline points map object from the location view. | |
| void | removeAllMapObjects () |
| Removes all map objects from the location view. | |
| void | pickMapObjectAt (math.Point< double > point) |
| Selects a visible, interactive map object at the specified screen position. | |
| void | pickMapFeatureAt (math.Point< double > point) |
| Selects visible map features (e.g., venues) at the specified screen position. | |
| void | addPickListener (PickListener listener) |
| Adds a PickListener to receive picking result events. | |
| void | removePickListener (PickListener listener) |
| Removes a previously added PickListener. | |
| void | addInputListener (InputListener listener) |
| Adds an InputListener to receive input events. | |
| void | removeInputListener (InputListener listener) |
| Removes a previously added InputListener. | |
| void | addCameraListener (CameraListener listener) |
| Adds a CameraListener to receive camera movement events. | |
| void | removeCameraListener (CameraListener listener) |
| Removes a previously added CameraListener. | |
| void | addSublocationChangeListener (SublocationChangeListener listener) |
| Adds listener for sublocation change events. | |
| void | removeSublocationChangeListener (SublocationChangeListener listener) |
| Removes previously added sublocation change listener. | |
| void | flyTo (Camera camera, int duration, CameraCallback callback) |
| Moves the map camera to a new position with an easing animation. | |
| void | moveTo (Camera camera, int duration, AnimationType animationType, CameraCallback callback) |
| Moves the map camera to a new position with a smooth pan-and-zoom animation. | |
| bool | selectMapFeature (String featureId) |
| Selects a map feature by its feature ID. | |
| bool | deselectMapFeature (String featureId) |
| Deselects a map feature by its feature ID. | |
| void | deselectAllMapFeatures () |
| Deselects all currently selected map features. | |
| void | applyFilter (String filter, String layer) |
| Applies a filter to a specific map layer. | |
Static Public Member Functions | |
| static void | setDebugFlag (DebugFlag flag, bool on) |
| Sets the state of a debug flag. | |
| static bool | getDebugFlag (DebugFlag flag) |
| Gets the state of a debug flag. | |
Public Attributes | |
| double get | zoomFactor |
| Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width. | |
| double get | minZoomFactor |
| Minimum zoom level for the location view (pixels per meter). | |
| double get | maxZoomFactor |
| Maximum zoom level for the location view (pixels per meter). | |
| bool get | stickToBorder |
| Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true. | |
| Camera get | camera |
| Current camera position in meters. Camera. | |
| bool get | rotateGestureEnabled |
| Specifies whether rotation gestures (e.g., two-finger rotation) are enabled. | |
| bool get | tiltGesturesEnabled |
| Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled. | |
| bool get | scrollGesturesEnabled |
| Specifies whether scroll gestures (e.g., pan gesture) are enabled. | |
| bool get | zoomGesturesEnabled |
| Specifies whether zoom gestures (e.g., two-finger pinch) are enabled. | |
| double get | pickRadius |
| Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp. | |
| List< String > get | selectedMapFeatures |
| List of currently selected map feature IDs. | |
Interface for interacting with the location view.
Referenced from LocationView.
Definition at line 38 of file location_window.dart.
| void LocationWindow.addCameraListener | ( | CameraListener | listener | ) |
Adds a CameraListener to receive camera movement events.
| listener | The CameraListener instance CameraListener. |
Dart code snippet:
| CircleMapObject LocationWindow.addCircleMapObject | ( | ) |
Creates and adds a circle map object to the location view.
Dart code snippet:
| DottedPolylineMapObject LocationWindow.addDottedPolylineMapObject | ( | ) |
Creates and adds a polyline points map object to the location view.
Dart code snippet:
| IconMapObject LocationWindow.addIconMapObject | ( | ) |
Creates and adds an icon map object to the location view.
Dart code snippet:
| void LocationWindow.addInputListener | ( | InputListener | listener | ) |
Adds an InputListener to receive input events.
| listener | The InputListener instance InputListener. |
Dart code snippet:
| void LocationWindow.addPickListener | ( | PickListener | listener | ) |
Adds a PickListener to receive picking result events.
| listener | The PickListener instance PickListener. |
Dart code snippet:
| PolygonMapObject LocationWindow.addPolygonMapObject | ( | ) |
Creates and adds a polygon map object to the location view.
Dart code snippet:
| PolylineMapObject LocationWindow.addPolylineMapObject | ( | ) |
Creates and adds a polyline map object to the location view.
Dart code snippet:
| void LocationWindow.addSublocationChangeListener | ( | SublocationChangeListener | listener | ) |
Adds listener for sublocation change events.
| listener | Sublocation change listener SublocationChangeListener. |
Dart code snippet:
| void LocationWindow.applyFilter | ( | String | filter, |
| String | layer ) |
Applies a filter to a specific map layer.
| filter | The filter stringю |
| layer | The map layer to apply the filter to. |
| void LocationWindow.deselectAllMapFeatures | ( | ) |
Deselects all currently selected map features.
Dart code snippet:
| bool LocationWindow.deselectMapFeature | ( | String | featureId | ) |
Deselects a map feature by its feature ID.
| featureId | The feature ID from the mapFeaturePickResult PickListener. |
Dart code snippet:
| void LocationWindow.flyTo | ( | Camera | camera, |
| int | duration, | ||
| CameraCallback | callback ) |
Moves the map camera to a new position with an easing animation.
| camera | The new camera position Camera. |
| duration | Animation duration in milliseconds. |
| callback | Callback to execute when the animation completes CameraCallback. |
Dart code snippet:
|
static |
Gets the state of a debug flag.
| flag | The debug flag to query DebugFlag. |
| Camera LocationWindow.getEnclosingCamera | ( | BoundingBox | boundingBox | ) |
Calculates camera that fits provided bounding box.
| boundingBox | Metrics bounding box to enclose. |
Dart code snippet:
| int LocationWindow.getSublocationId | ( | ) |
Returns current sublocation ID if set, otherwise null.
Dart code snippet:
| void LocationWindow.moveTo | ( | Camera | camera, |
| int | duration, | ||
| AnimationType | animationType, | ||
| CameraCallback | callback ) |
Moves the map camera to a new position with a smooth pan-and-zoom animation.
| camera | The new camera position Camera. |
| duration | Animation duration in milliseconds (-1 for default duration). |
| animationType | The type of easing animation AnimationType. |
| callback | Callback to execute when the animation completes CameraCallback. |
Dart code snippet:
| void LocationWindow.pickMapFeatureAt | ( | math.Point< double > | point | ) |
Selects visible map features (e.g., venues) at the specified screen position.
| point | Position in screen pixels to pick from. Results are delivered to the PickListener via onMapFeaturePickComplete PickListener. |
Dart code snippet:
| void LocationWindow.pickMapObjectAt | ( | math.Point< double > | point | ) |
Selects a visible, interactive map object at the specified screen position.
| point | Position in screen pixels to pick from. Results are delivered to the PickListener via onMapObjectPickComplete PickListener. |
Dart code snippet:
| void LocationWindow.removeAllMapObjects | ( | ) |
Removes all map objects from the location view.
Dart code snippet:
| void LocationWindow.removeCameraListener | ( | CameraListener | listener | ) |
Removes a previously added CameraListener.
| listener | The CameraListener instance to remove CameraListener. |
Dart code snippet:
| bool LocationWindow.removeCircleMapObject | ( | CircleMapObject | circleMapObject | ) |
Removes a circle map object from the location view.
| circleMapObject | The circle map object instance CircleMapObject. |
Dart code snippet:
| bool LocationWindow.removeDottedPolylineMapObject | ( | DottedPolylineMapObject | dottedPolylineMapObject | ) |
Removes a polyline points map object from the location view.
| dottedPolylineMapObject | The polyline points map object instance DottedPolylineMapObject. |
Dart code snippet:
| bool LocationWindow.removeIconMapObject | ( | IconMapObject | iconMapObject | ) |
Removes an icon map object from the location view.
| iconMapObject | The icon map object instance IconMapObject. |
Dart code snippet:
| void LocationWindow.removeInputListener | ( | InputListener | listener | ) |
Removes a previously added InputListener.
| listener | The InputListener instance to remove InputListener. |
Dart code snippet:
| void LocationWindow.removePickListener | ( | PickListener | listener | ) |
Removes a previously added PickListener.
| listener | The PickListener instance to remove PickListener. |
Dart code snippet:
| bool LocationWindow.removePolygonMapObject | ( | PolygonMapObject | polygonMapObject | ) |
Removes a polygon map object from the location view.
| polygonMapObject | The polygon map object instance PolygonMapObject. |
Dart code snippet:
| bool LocationWindow.removePolylineMapObject | ( | PolylineMapObject | polylineMapObject | ) |
Removes a polyline map object from the location view.
| polylineMapObject | The polyline map object instance PolylineMapObject. |
Dart code snippet:
| void LocationWindow.removeSublocationChangeListener | ( | SublocationChangeListener | listener | ) |
Removes previously added sublocation change listener.
| listener | Listener instance to remove SublocationChangeListener. |
Dart code snippet:
| Point LocationWindow.screenPositionToMeters | ( | math.Point< double > | point | ) |
Converts screen coordinates (pixels) to metrics coordinates (meters).
| point | (x,y) coordinates in screen pixels. |
Dart code snippet:
| bool LocationWindow.selectMapFeature | ( | String | featureId | ) |
Selects a map feature by its feature ID.
| featureId | The feature ID from the mapFeaturePickResult PickListener. |
Dart code snippet:
|
static |
Sets the state of a debug flag.
| flag | The debug flag to set DebugFlag. |
| on | Specifies whether the debug flag is enabled (true) or disabled (false). |
| void LocationWindow.setSublocationId | ( | int | id | ) |
Method is used to switch the location view between sublocations (e.g., floors).
| id | Sublocation unique identifier Sublocation. |
Dart code snippet:
| Camera get LocationWindow.camera |
Current camera position in meters. Camera.
Dart code snippet:
Definition at line 548 of file location_window.dart.
| double get LocationWindow.maxZoomFactor |
Maximum zoom level for the location view (pixels per meter).
Dart code snippet:
Definition at line 522 of file location_window.dart.
| double get LocationWindow.minZoomFactor |
Minimum zoom level for the location view (pixels per meter).
Dart code snippet:
Definition at line 510 of file location_window.dart.
| double get LocationWindow.pickRadius |
Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.
Dart code snippet:
Definition at line 609 of file location_window.dart.
| bool get LocationWindow.rotateGestureEnabled |
Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.
Dart code snippet:
Definition at line 560 of file location_window.dart.
| bool get LocationWindow.scrollGesturesEnabled |
Specifies whether scroll gestures (e.g., pan gesture) are enabled.
Dart code snippet:
Definition at line 584 of file location_window.dart.
| List<String> get LocationWindow.selectedMapFeatures |
List of currently selected map feature IDs.
Dart code snippet:
Definition at line 621 of file location_window.dart.
| bool get LocationWindow.stickToBorder |
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
Dart code snippet:
Definition at line 535 of file location_window.dart.
| bool get LocationWindow.tiltGesturesEnabled |
Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.
Dart code snippet:
Definition at line 572 of file location_window.dart.
| double get LocationWindow.zoomFactor |
Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.
Dart code snippet:
Definition at line 498 of file location_window.dart.
| bool get LocationWindow.zoomGesturesEnabled |
Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.
Dart code snippet:
Definition at line 596 of file location_window.dart.