Loading...
Searching...
No Matches
com.navigine.idl.java.LocationWindow Class Referenceabstract

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.
 

Detailed Description

Interface for interacting with the location view.

Referenced from LocationView.

Definition at line 19 of file LocationWindow.java.

Member Function Documentation

◆ addCameraListener()

abstract void com.navigine.idl.java.LocationWindow.addCameraListener ( CameraListener listener)
abstract

Adds a CameraListener to receive camera movement events.

Parameters
listenerThe CameraListener instance CameraListener.
Note
Remove the listener when no longer needed.

◆ addCircleMapObject()

abstract CircleMapObject com.navigine.idl.java.LocationWindow.addCircleMapObject ( )
abstract

Creates and adds a circle map object to the location view.

Returns
A CircleMapObject instance CircleMapObject if successful, null otherwise.

◆ addDottedPolylineMapObject()

abstract DottedPolylineMapObject com.navigine.idl.java.LocationWindow.addDottedPolylineMapObject ( )
abstract

Creates and adds a polyline points map object to the location view.

Returns
A DottedPolylineMapObject instance DottedPolylineMapObject if successful, null otherwise.

◆ addIconMapObject()

abstract IconMapObject com.navigine.idl.java.LocationWindow.addIconMapObject ( )
abstract

Creates and adds an icon map object to the location view.

Returns
An IconMapObject instance IconMapObject if successful, null otherwise.

◆ addInputListener()

abstract void com.navigine.idl.java.LocationWindow.addInputListener ( InputListener listener)
abstract

Adds an InputListener to receive input events.

Parameters
listenerThe InputListener instance InputListener.
Note
Remove the listener when no longer needed.

◆ addPickListener()

abstract void com.navigine.idl.java.LocationWindow.addPickListener ( PickListener listener)
abstract

Adds a PickListener to receive picking result events.

Parameters
listenerThe PickListener instance PickListener.
Note
Remove the listener when no longer needed.

◆ addPolygonMapObject()

abstract PolygonMapObject com.navigine.idl.java.LocationWindow.addPolygonMapObject ( )
abstract

Creates and adds a polygon map object to the location view.

Returns
A PolygonMapObject instance PolygonMapObject if successful, null otherwise.

◆ addPolylineMapObject()

abstract PolylineMapObject com.navigine.idl.java.LocationWindow.addPolylineMapObject ( )
abstract

Creates and adds a polyline map object to the location view.

Returns
A PolylineMapObject instance PolylineMapObject if successful, null otherwise.

◆ applyFilter()

abstract void com.navigine.idl.java.LocationWindow.applyFilter ( String filter,
String layer )
abstract

Applies a filter to a specific map layer.

Parameters
filterThe filter stringю
layerThe map layer to apply the filter to.
Returns
true if the operation is successful, false otherwise.

◆ deselectAllMapFeatures()

abstract void com.navigine.idl.java.LocationWindow.deselectAllMapFeatures ( )
abstract

Deselects all currently selected map features.

◆ deselectMapFeature()

abstract boolean com.navigine.idl.java.LocationWindow.deselectMapFeature ( String featureId)
abstract

Deselects a map feature by its feature ID.

Parameters
featureIdThe feature ID from the mapFeaturePickResult PickListener.
Returns
true if the operation is successful, false otherwise.

◆ flyTo()

abstract void com.navigine.idl.java.LocationWindow.flyTo ( Camera camera,
int duration,
CameraCallback callback )
abstract

Moves the map camera to a new position with an easing animation.

Parameters
cameraThe new camera position Camera.
durationAnimation duration in milliseconds.
callbackCallback to execute when the animation completes CameraCallback.

◆ getCamera()

abstract Camera com.navigine.idl.java.LocationWindow.getCamera ( )
abstract

Current camera position in meters. Camera.

Returns

◆ getDebugFlag()

static boolean com.navigine.idl.java.LocationWindow.getDebugFlag ( DebugFlag flag)
inlinestatic

Gets the state of a debug flag.

Parameters
flagThe debug flag to query DebugFlag.
Returns
true if the debug flag is enabled, false otherwise.

Definition at line 439 of file LocationWindow.java.

◆ getMaxZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getMaxZoomFactor ( )
abstract

Maximum zoom level for the location view (pixels per meter).

Returns

◆ getMinZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getMinZoomFactor ( )
abstract

Minimum zoom level for the location view (pixels per meter).

Returns

◆ getPickRadius()

abstract float com.navigine.idl.java.LocationWindow.getPickRadius ( )
abstract

Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.

Returns

◆ getRotateGestureEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getRotateGestureEnabled ( )
abstract

Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.

Returns

◆ getScrollGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getScrollGesturesEnabled ( )
abstract

Specifies whether scroll gestures (e.g., pan gesture) are enabled.

Returns

◆ getSelectedMapFeatures()

abstract ArrayList< String > com.navigine.idl.java.LocationWindow.getSelectedMapFeatures ( )
abstract

List of currently selected map feature IDs.

Returns

◆ getStickToBorder()

abstract boolean com.navigine.idl.java.LocationWindow.getStickToBorder ( )
abstract

Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.

Returns

◆ getTiltGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getTiltGesturesEnabled ( )
abstract

Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.

Returns

◆ getZoomFactor()

abstract float com.navigine.idl.java.LocationWindow.getZoomFactor ( )
abstract

Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.

Returns

◆ getZoomGesturesEnabled()

abstract boolean com.navigine.idl.java.LocationWindow.getZoomGesturesEnabled ( )
abstract

Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.

Returns

◆ metersToScreenPosition()

abstract android.graphics.PointF com.navigine.idl.java.LocationWindow.metersToScreenPosition ( Point point,
boolean clipToViewport )
abstract

Converts metrics coordinates (meters) to screen coordinates (pixels).

Parameters
point(x,y) coordinates in meters Point.
clipToViewportIf true, coordinates outside the viewport are clipped to the viewport edge.
Returns
(x,y) coordinates in screen pixels ScreenPoint.

◆ moveTo()

abstract void com.navigine.idl.java.LocationWindow.moveTo ( Camera camera,
int duration,
AnimationType animationType,
CameraCallback callback )
abstract

Moves the map camera to a new position with a smooth pan-and-zoom animation.

Parameters
cameraThe new camera position Camera.
durationAnimation duration in milliseconds (-1 for default duration).
animationTypeThe type of easing animation AnimationType.
callbackCallback to execute when the animation completes CameraCallback.

◆ pickMapFeatureAt()

abstract void com.navigine.idl.java.LocationWindow.pickMapFeatureAt ( android.graphics.PointF point)
abstract

Selects visible map features (e.g., venues) at the specified screen position.

Parameters
pointPosition in screen pixels to pick from ScreenPoint. Results are delivered to the PickListener via onMapFeaturePickComplete PickListener.

◆ pickMapObjectAt()

abstract void com.navigine.idl.java.LocationWindow.pickMapObjectAt ( android.graphics.PointF point)
abstract

Selects a visible, interactive map object at the specified screen position.

Parameters
pointPosition in screen pixels to pick from ScreenPoint. Results are delivered to the PickListener via onMapObjectPickComplete PickListener.

◆ removeAllMapObjects()

abstract void com.navigine.idl.java.LocationWindow.removeAllMapObjects ( )
abstract

Removes all map objects from the location view.

◆ removeCameraListener()

abstract void com.navigine.idl.java.LocationWindow.removeCameraListener ( CameraListener listener)
abstract

Removes a previously added CameraListener.

Parameters
listenerThe CameraListener instance to remove CameraListener.

◆ removeCircleMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeCircleMapObject ( CircleMapObject circleMapObject)
abstract

Removes a circle map object from the location view.

Parameters
circleMapObjectThe circle map object instance CircleMapObject.
Returns
true if the operation is successful, false otherwise.

◆ removeDottedPolylineMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeDottedPolylineMapObject ( DottedPolylineMapObject dottedPolylineMapObject)
abstract

Removes a polyline points map object from the location view.

Parameters
dottedPolylineMapObjectThe polyline points map object instance DottedPolylineMapObject.
Returns
true if the operation is successful, false otherwise.

◆ removeIconMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removeIconMapObject ( IconMapObject iconMapObject)
abstract

Removes an icon map object from the location view.

Parameters
iconMapObjectThe icon map object instance IconMapObject.
Returns
true if the operation is successful, false otherwise.

◆ removeInputListener()

abstract void com.navigine.idl.java.LocationWindow.removeInputListener ( InputListener listener)
abstract

Removes a previously added InputListener.

Parameters
listenerThe InputListener instance to remove InputListener.

◆ removePickListener()

abstract void com.navigine.idl.java.LocationWindow.removePickListener ( PickListener listener)
abstract

Removes a previously added PickListener.

Parameters
listenerThe PickListener instance to remove PickListener.

◆ removePolygonMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removePolygonMapObject ( PolygonMapObject polygonMapObject)
abstract

Removes a polygon map object from the location view.

Parameters
polygonMapObjectThe polygon map object instance PolygonMapObject.
Returns
true if the operation is successful, false otherwise.

◆ removePolylineMapObject()

abstract boolean com.navigine.idl.java.LocationWindow.removePolylineMapObject ( PolylineMapObject polylineMapObject)
abstract

Removes a polyline map object from the location view.

Parameters
polylineMapObjectThe polyline map object instance PolylineMapObject.
Returns
true if the operation is successful, false otherwise.

◆ screenPositionToMeters()

abstract Point com.navigine.idl.java.LocationWindow.screenPositionToMeters ( android.graphics.PointF point)
abstract

Converts screen coordinates (pixels) to metrics coordinates (meters).

Parameters
point(x,y) coordinates in screen pixels ScreenPoint.
Returns
(x,y) coordinates in meters Point.

◆ selectMapFeature()

abstract boolean com.navigine.idl.java.LocationWindow.selectMapFeature ( String featureId)
abstract

Selects a map feature by its feature ID.

Parameters
featureIdThe feature ID from the mapFeaturePickResult PickListener.
Returns
true if the operation is successful, false otherwise.

◆ setCamera()

abstract void com.navigine.idl.java.LocationWindow.setCamera ( Camera newCamera)
abstract

Current camera position in meters. Camera.

Parameters
newCamera

◆ setDebugFlag()

static void com.navigine.idl.java.LocationWindow.setDebugFlag ( DebugFlag flag,
boolean on )
inlinestatic

Sets the state of a debug flag.

Parameters
flagThe debug flag to set DebugFlag.
onSpecifies whether the debug flag is enabled (true) or disabled (false).

Definition at line 426 of file LocationWindow.java.

◆ setMaxZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setMaxZoomFactor ( float newMaxZoomFactor)
abstract

Maximum zoom level for the location view (pixels per meter).

Parameters
newMaxZoomFactor

◆ setMinZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setMinZoomFactor ( float newMinZoomFactor)
abstract

Minimum zoom level for the location view (pixels per meter).

Parameters
newMinZoomFactor

◆ setPickRadius()

abstract void com.navigine.idl.java.LocationWindow.setPickRadius ( float newPickRadius)
abstract

Radius for picking features on the map, in density-independent pixels. Default: 0.5 dp.

Parameters
newPickRadius

◆ setRotateGestureEnabled()

abstract void com.navigine.idl.java.LocationWindow.setRotateGestureEnabled ( boolean newRotateGestureEnabled)
abstract

Specifies whether rotation gestures (e.g., two-finger rotation) are enabled.

Parameters
newRotateGestureEnabled

◆ setScrollGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setScrollGesturesEnabled ( boolean newScrollGesturesEnabled)
abstract

Specifies whether scroll gestures (e.g., pan gesture) are enabled.

Parameters
newScrollGesturesEnabled

◆ setStickToBorder()

abstract void com.navigine.idl.java.LocationWindow.setStickToBorder ( boolean newStickToBorder)
abstract

Specifies whether sublocation content sticks to screen borders. If true, content sticks to screen bounds; if false, content is centered. Default: true.

Parameters
newStickToBorder

◆ setSublocationId()

abstract void com.navigine.idl.java.LocationWindow.setSublocationId ( int id)
abstract

Method is used to switch the location view between sublocations (e.g., floors).

Parameters
idSublocation unique identifier Sublocation.

◆ setTiltGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setTiltGesturesEnabled ( boolean newTiltGesturesEnabled)
abstract

Specifies whether tilt gestures (e.g., two-finger parallel pan) are enabled.

Parameters
newTiltGesturesEnabled

◆ setZoomFactor()

abstract void com.navigine.idl.java.LocationWindow.setZoomFactor ( float newZoomFactor)
abstract

Specifies the zoom level of the location view, in pixels per meter. Default: approximately 100 meters across the screen width.

Parameters
newZoomFactor

◆ setZoomGesturesEnabled()

abstract void com.navigine.idl.java.LocationWindow.setZoomGesturesEnabled ( boolean newZoomGesturesEnabled)
abstract

Specifies whether zoom gestures (e.g., two-finger pinch) are enabled.

Parameters
newZoomGesturesEnabled

The documentation for this class was generated from the following file: