Interface for interacting with the location view. More...
Public Member Functions | |
| abstract void | setSublocationId (int id) |
| Method is used to switch the location view between sublocations (e.g., floors). | |
| abstract Integer | getSublocationId () |
| Returns current sublocation ID if set, otherwise null. | |
| abstract Camera | getEnclosingCamera (BoundingBox boundingBox) |
| Calculates camera that fits provided bounding box. | |
| abstract Point | screenPositionToMeters (android.graphics.PointF point) |
| Converts screen coordinates (pixels) to metrics coordinates (meters). | |
| abstract android.graphics.PointF | metersToScreenPosition (Point point, boolean clipToViewport) |
| Converts metrics coordinates (meters) to screen coordinates (pixels). | |
| abstract CircleMapObject | addCircleMapObject () |
| Creates and adds a circle map object to the location view. | |
| abstract boolean | removeCircleMapObject (CircleMapObject circleMapObject) |
| Removes a circle map object from the location view. | |
| abstract IconMapObject | addIconMapObject () |
| Creates and adds an icon map object to the location view. | |
| abstract boolean | removeIconMapObject (IconMapObject iconMapObject) |
| Removes an icon map object from the location view. | |
| abstract PolygonMapObject | addPolygonMapObject () |
| Creates and adds a polygon map object to the location view. | |
| abstract boolean | removePolygonMapObject (PolygonMapObject polygonMapObject) |
| Removes a polygon map object from the location view. | |
| abstract PolylineMapObject | addPolylineMapObject () |
| Creates and adds a polyline map object to the location view. | |
| abstract boolean | removePolylineMapObject (PolylineMapObject polylineMapObject) |
| Removes a polyline map object from the location view. | |
| abstract DottedPolylineMapObject | addDottedPolylineMapObject () |
| Creates and adds a polyline points map object to the location view. | |
| abstract boolean | removeDottedPolylineMapObject (DottedPolylineMapObject dottedPolylineMapObject) |
| Removes a polyline points map object from the location view. | |
| abstract void | removeAllMapObjects () |
| Removes all map objects from the location view. | |
| abstract void | pickMapObjectAt (android.graphics.PointF point) |
| Selects a visible, interactive map object at the specified screen position. | |
| abstract void | pickMapFeatureAt (android.graphics.PointF point) |
| Selects visible map features (e.g., venues) at the specified screen position. | |
| abstract void | addPickListener (PickListener listener) |
| Adds a PickListener to receive picking result events. | |
| abstract void | removePickListener (PickListener listener) |
| Removes a previously added PickListener. | |
| abstract void | addInputListener (InputListener listener) |
| Adds an InputListener to receive input events. | |
| abstract void | removeInputListener (InputListener listener) |
| Removes a previously added InputListener. | |
| abstract void | addCameraListener (CameraListener listener) |
| Adds a CameraListener to receive camera movement events. | |
| abstract void | removeCameraListener (CameraListener listener) |
| Removes a previously added CameraListener. | |
| abstract void | addSublocationChangeListener (SublocationChangeListener listener) |
| Adds listener for sublocation change events. | |
| abstract void | removeSublocationChangeListener (SublocationChangeListener listener) |
| Removes previously added sublocation change listener. | |
| abstract void | flyTo (Camera camera, int duration, CameraCallback callback) |
| Moves the map camera to a new position with an easing animation. | |
| abstract 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. | |
| abstract boolean | selectMapFeature (String featureId) |
| Selects a map feature by its feature ID. | |
| abstract boolean | deselectMapFeature (String featureId) |
| Deselects a map feature by its feature ID. | |
| abstract void | deselectAllMapFeatures () |
| Deselects all currently selected map features. | |
| abstract void | applyFilter (String filter, String layer) |
| Applies a filter to a specific map layer. | |
| abstract float | getZoomFactor () |
| Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width. | |
| abstract void | setZoomFactor (float newZoomFactor) |
| Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width. | |
| abstract float | getMinZoomFactor () |
| Minimum zoom level for the location view (pixels per meter). | |
| abstract void | setMinZoomFactor (float newMinZoomFactor) |
| Minimum zoom level for the location view (pixels per meter). | |
| abstract float | getMaxZoomFactor () |
| Maximum zoom level for the location view (pixels per meter). | |
| abstract void | setMaxZoomFactor (float newMaxZoomFactor) |
| Maximum zoom level for the location view (pixels per meter). | |
| abstract boolean | getStickToBorder () |
| Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true. | |
| abstract void | setStickToBorder (boolean newStickToBorder) |
| Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true. | |
| abstract Camera | getCamera () |
| Current camera position in meters. Camera. | |
| abstract void | setCamera (Camera newCamera) |
| Current camera position in meters. Camera. | |
| abstract boolean | getRotateGestureEnabled () |
| Specifies whether rotation gestures (e.g., two-finger rotation) are enabled. | |
| abstract void | setRotateGestureEnabled (boolean newRotateGestureEnabled) |
| Specifies whether rotation gestures (e.g., two-finger rotation) are enabled. | |
| abstract boolean | getTiltGesturesEnabled () |
| Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled. | |
| abstract void | setTiltGesturesEnabled (boolean newTiltGesturesEnabled) |
| Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled. | |
| abstract boolean | getScrollGesturesEnabled () |
| Specifies whether scroll gestures (e.g., pan gesture) are enabled. | |
| abstract void | setScrollGesturesEnabled (boolean newScrollGesturesEnabled) |
| Specifies whether scroll gestures (e.g., pan gesture) are enabled. | |
| abstract boolean | getZoomGesturesEnabled () |
| Specifies whether zoom gestures (e.g., two-finger pinch) are enabled. | |
| abstract void | setZoomGesturesEnabled (boolean newZoomGesturesEnabled) |
| Specifies whether zoom gestures (e.g., two-finger pinch) are enabled. | |
| abstract float | getPickRadius () |
| Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp. | |
| abstract void | setPickRadius (float newPickRadius) |
| Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp. | |
| abstract ArrayList< String > | getSelectedMapFeatures () |
| List of currently selected map feature IDs. | |
Static Public Member Functions | |
| static void | setDebugFlag (DebugFlag flag, boolean on) |
| Sets the state of a debug flag. | |
| static boolean | getDebugFlag (DebugFlag flag) |
| Gets the state of a debug flag. | |
Interface for interacting with the location view.
Referenced from LocationView.
Definition at line 19 of file LocationWindow.java.
|
abstract |
Adds a CameraListener to receive camera movement events.
| listener | The CameraListener instance CameraListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Creates and adds a circle map object to the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Creates and adds a polyline points map object to the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Creates and adds an icon map object to the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Adds an InputListener to receive input events.
| listener | The InputListener instance InputListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Adds a PickListener to receive picking result events.
| listener | The PickListener instance PickListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Creates and adds a polygon map object to the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Creates and adds a polyline map object to the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Adds listener for sublocation change events.
| listener | Sublocation change listener SublocationChangeListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Applies a filter to a specific map layer.
| filter | The filter stringю |
| layer | The map layer to apply the filter to. |
|
abstract |
Deselects all currently selected map features.
Java code snippet:
Kotlin code snippet:
|
abstract |
Deselects a map feature by its feature ID.
| featureId | The feature ID from the mapFeaturePickResult PickListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Current camera position in meters. Camera.
Java code snippet:
Kotlin code snippet:
|
inlinestatic |
Gets the state of a debug flag.
| flag | The debug flag to query DebugFlag. |
Definition at line 885 of file LocationWindow.java.
|
abstract |
Calculates camera that fits provided bounding box.
| boundingBox | Metrics bounding box to enclose. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Maximum zoom level for the location view (pixels per meter).
Java code snippet:
Kotlin code snippet:
|
abstract |
Minimum zoom level for the location view (pixels per meter).
Java code snippet:
Kotlin code snippet:
|
abstract |
Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether scroll gestures (e.g., pan gesture) are enabled.
Java code snippet:
Kotlin code snippet:
|
abstract |
List of currently selected map feature IDs.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
Java code snippet:
Kotlin code snippet:
|
abstract |
Returns current sublocation ID if set, otherwise null.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.
Java code snippet:
Kotlin code snippet:
|
abstract |
Converts metrics coordinates (meters) to screen coordinates (pixels).
| point | (x,y) coordinates in meters Point. |
| clipToViewport | If true, coordinates outside the viewport are clipped to the viewport edge. |
Java code snippet:
Kotlin code snippet:
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
|
abstract |
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. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes all map objects from the location view.
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a previously added CameraListener.
| listener | The CameraListener instance to remove CameraListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a circle map object from the location view.
| circleMapObject | The circle map object instance CircleMapObject. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a polyline points map object from the location view.
| dottedPolylineMapObject | The polyline points map object instance DottedPolylineMapObject. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes an icon map object from the location view.
| iconMapObject | The icon map object instance IconMapObject. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a previously added InputListener.
| listener | The InputListener instance to remove InputListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a previously added PickListener.
| listener | The PickListener instance to remove PickListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a polygon map object from the location view.
| polygonMapObject | The polygon map object instance PolygonMapObject. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes a polyline map object from the location view.
| polylineMapObject | The polyline map object instance PolylineMapObject. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Removes previously added sublocation change listener.
| listener | Listener instance to remove SublocationChangeListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Converts screen coordinates (pixels) to metrics coordinates (meters).
| point | (x,y) coordinates in screen pixels. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Selects a map feature by its feature ID.
| featureId | The feature ID from the mapFeaturePickResult PickListener. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Current camera position in meters. Camera.
| newCamera |
Java code snippet:
Kotlin code snippet:
|
inlinestatic |
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). |
Definition at line 872 of file LocationWindow.java.
|
abstract |
Maximum zoom level for the location view (pixels per meter).
| newMaxZoomFactor |
Java code snippet:
Kotlin code snippet:
|
abstract |
Minimum zoom level for the location view (pixels per meter).
| newMinZoomFactor |
Java code snippet:
Kotlin code snippet:
|
abstract |
Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.
| newPickRadius |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.
| newRotateGestureEnabled |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether scroll gestures (e.g., pan gesture) are enabled.
| newScrollGesturesEnabled |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
| newStickToBorder |
Java code snippet:
Kotlin code snippet:
|
abstract |
Method is used to switch the location view between sublocations (e.g., floors).
| id | Sublocation unique identifier Sublocation. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.
| newTiltGesturesEnabled |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.
| newZoomFactor |
Java code snippet:
Kotlin code snippet:
|
abstract |
Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.
| newZoomGesturesEnabled |
Java code snippet:
Kotlin code snippet: