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 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 | flyTo (Camera camera, int duration, CameraCallback callback) |
Moves the map camera to a new position with an easing 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 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 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. |
|
abstract |
Creates and adds a circle map object to the location view.
|
abstract |
Creates and adds a polyline points map object to the location view.
|
abstract |
Creates and adds an icon map object to the location view.
|
abstract |
Adds an InputListener to receive input events.
listener | The InputListener instance InputListener. |
|
abstract |
Adds a PickListener to receive picking result events.
listener | The PickListener instance PickListener. |
|
abstract |
Creates and adds a polygon map object to the location view.
|
abstract |
Creates and adds a polyline map object to the location view.
|
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.
|
abstract |
Deselects a map feature by its feature ID.
featureId | The feature ID from the mapFeaturePickResult PickListener. |
|
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. |
|
abstract |
Current camera position in meters. Camera.
|
inlinestatic |
Gets the state of a debug flag.
flag | The debug flag to query DebugFlag. |
Definition at line 439 of file LocationWindow.java.
|
abstract |
Maximum zoom level for the location view (pixels per meter).
|
abstract |
Minimum zoom level for the location view (pixels per meter).
|
abstract |
Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.
|
abstract |
Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.
|
abstract |
Specifies whether scroll gestures (e.g., pan gesture) are enabled.
|
abstract |
List of currently selected map feature IDs.
|
abstract |
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
|
abstract |
Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.
|
abstract |
Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.
|
abstract |
Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.
|
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. |
|
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. |
|
abstract |
Selects visible map features (e.g., venues) at the specified screen position.
point | Position in screen pixels to pick from ScreenPoint. Results are delivered to the PickListener via onMapFeaturePickComplete PickListener. |
|
abstract |
Selects a visible, interactive map object at the specified screen position.
point | Position in screen pixels to pick from ScreenPoint. Results are delivered to the PickListener via onMapObjectPickComplete PickListener. |
|
abstract |
Removes all map objects from the location view.
|
abstract |
Removes a previously added CameraListener.
listener | The CameraListener instance to remove CameraListener. |
|
abstract |
Removes a circle map object from the location view.
circleMapObject | The circle map object instance CircleMapObject. |
|
abstract |
Removes a polyline points map object from the location view.
dottedPolylineMapObject | The polyline points map object instance DottedPolylineMapObject. |
|
abstract |
Removes an icon map object from the location view.
iconMapObject | The icon map object instance IconMapObject. |
|
abstract |
Removes a previously added InputListener.
listener | The InputListener instance to remove InputListener. |
|
abstract |
Removes a previously added PickListener.
listener | The PickListener instance to remove PickListener. |
|
abstract |
Removes a polygon map object from the location view.
polygonMapObject | The polygon map object instance PolygonMapObject. |
|
abstract |
Removes a polyline map object from the location view.
polylineMapObject | The polyline map object instance PolylineMapObject. |
|
abstract |
Converts screen coordinates (pixels) to metrics coordinates (meters).
point | (x,y) coordinates in screen pixels ScreenPoint. |
|
abstract |
Selects a map feature by its feature ID.
featureId | The feature ID from the mapFeaturePickResult PickListener. |
|
abstract |
Current camera position in meters. Camera.
newCamera |
|
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 426 of file LocationWindow.java.
|
abstract |
Maximum zoom level for the location view (pixels per meter).
newMaxZoomFactor |
|
abstract |
Minimum zoom level for the location view (pixels per meter).
newMinZoomFactor |
|
abstract |
Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.
newPickRadius |
|
abstract |
Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.
newRotateGestureEnabled |
|
abstract |
Specifies whether scroll gestures (e.g., pan gesture) are enabled.
newScrollGesturesEnabled |
|
abstract |
Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.
newStickToBorder |
|
abstract |
Method is used to switch the location view between sublocations (e.g., floors).
id | Sublocation unique identifier Sublocation. |
|
abstract |
Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.
newTiltGesturesEnabled |
|
abstract |
Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.
newZoomFactor |
|
abstract |
Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.
newZoomGesturesEnabled |