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 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.
 

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.

Java code snippet:

// Add camera listener
cameraListener = new CameraListenerImpl();
locationWindow.addCameraListener(cameraListener);
System.out.println("Added camera listener");

Kotlin code snippet:

// Add camera listener
cameraListener = CameraListenerImpl()
locationWindow!!.addCameraListener(cameraListener!!)
println("Added camera listener")

◆ 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.

Java code snippet:

// Add circle map object
circleMapObject = locationWindow.addCircleMapObject();
System.out.println("Added circle map object");

Kotlin code snippet:

// Add circle map object
circleMapObject = locationWindow!!.addCircleMapObject()
println("Added circle map object")

◆ 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.

Java code snippet:

// Add dotted polyline map object
dottedPolylineMapObject = locationWindow.addDottedPolylineMapObject();
System.out.println("Added dotted polyline map object");

Kotlin code snippet:

// Add dotted polyline map object
dottedPolylineMapObject = locationWindow!!.addDottedPolylineMapObject()
println("Added dotted polyline map object")

◆ 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.

Java code snippet:

// Add icon map object
iconMapObject = locationWindow.addIconMapObject();
System.out.println("Added icon map object");

Kotlin code snippet:

// Add icon map object
iconMapObject = locationWindow!!.addIconMapObject()
println("Added icon map object")

◆ 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.

Java code snippet:

// Add input listener
inputListener = new InputListenerImpl();
locationWindow.addInputListener(inputListener);
System.out.println("Added input listener");

Kotlin code snippet:

// Add input listener
inputListener = InputListenerImpl()
locationWindow!!.addInputListener(inputListener!!)
println("Added input listener")

◆ 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.

Java code snippet:

// Add pick listener
pickListener = new PickListenerImpl();
locationWindow.addPickListener(pickListener);
System.out.println("Added pick listener");

Kotlin code snippet:

// Add pick listener
pickListener = PickListenerImpl()
locationWindow!!.addPickListener(pickListener!!)
println("Added pick listener")

◆ 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.

Java code snippet:

// Add polygon map object
polygonMapObject = locationWindow.addPolygonMapObject();
System.out.println("Added polygon map object");

Kotlin code snippet:

// Add polygon map object
polygonMapObject = locationWindow!!.addPolygonMapObject()
println("Added polygon map object")

◆ 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.

Java code snippet:

// Add polyline map object
polylineMapObject = locationWindow.addPolylineMapObject();
System.out.println("Added polyline map object");

Kotlin code snippet:

// Add polyline map object
polylineMapObject = locationWindow!!.addPolylineMapObject()
println("Added polyline map object")

◆ addSublocationChangeListener()

abstract void com.navigine.idl.java.LocationWindow.addSublocationChangeListener ( SublocationChangeListener listener)
abstract

Adds listener for sublocation change events.

Parameters
listenerSublocation change listener SublocationChangeListener.

Java code snippet:

locationWindow.addSublocationChangeListener(listener);
System.out.println("Added sublocation change listener");

Kotlin code snippet:

locationWindow!!.addSublocationChangeListener(listener)
println("Added sublocation change listener")

◆ 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.

◆ deselectAllMapFeatures()

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

Deselects all currently selected map features.

Java code snippet:

// Deselect all map features
locationWindow.deselectAllMapFeatures();
System.out.println("Deselected all map features");

Kotlin code snippet:

// Deselect all map features
locationWindow!!.deselectAllMapFeatures()
println("Deselected all 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.

Java code snippet:

// Deselect specific map feature
boolean deselected = locationWindow.deselectMapFeature(featureId);
System.out.println("Deselected map feature " + featureId + ": " + deselected);

Kotlin code snippet:

// Deselect specific map feature
val deselected = locationWindow!!.deselectMapFeature(featureId)
println("Deselected map feature $featureId: $deselected")

◆ 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.

Java code snippet:

// Fly to position with smooth animation
Point targetPoint = new Point(150.0, 250.0);
Camera targetCamera = new Camera(targetPoint, 75.0, 45.0);
CameraCallback callback = new CameraCallbackImpl();
locationWindow.flyTo(targetCamera, 2000, callback);
System.out.println("Started fly to animation to point (" + targetPoint.x + ", " + targetPoint.y + ")");

Kotlin code snippet:

// Fly to position with smooth animation
val targetPoint = Point(150.0, 250.0)
val targetCamera = Camera(targetPoint, 75.0, 45.0)
val callback = CameraCallbackImpl()
locationWindow!!.flyTo(targetCamera, 2000, callback)
println("Started fly to animation to point (${targetPoint.x}, ${targetPoint.y})")

◆ getCamera()

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

Current camera position in meters. Camera.

Returns

Java code snippet:

// Set camera position without animation
locationWindow.setCamera(newCamera);
System.out.println("Set camera position to (" + newPoint.x + ", " + newPoint.y + ") with zoom 50.0 and rotation 0°");

Kotlin code snippet:

// Set camera position without animation
locationWindow!!.camera = newCamera
println("Set camera position to (${newPoint.x}, ${newPoint.y}) with zoom 50.0 and rotation 0°")

◆ 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 885 of file LocationWindow.java.

◆ getEnclosingCamera()

abstract Camera com.navigine.idl.java.LocationWindow.getEnclosingCamera ( BoundingBox boundingBox)
abstract

Calculates camera that fits provided bounding box.

Parameters
boundingBoxMetrics bounding box to enclose.

Java code snippet:

BoundingBox boundingBox = new BoundingBox(new Point(0.0, 0.0), new Point(20.0, 30.0));
Camera camera = locationWindow.getEnclosingCamera(boundingBox);
System.out.println("Camera that fits bounding box: " + camera);

Kotlin code snippet:

val boundingBox = BoundingBox(Point(0.0, 0.0), Point(20.0, 30.0))
val camera = locationWindow!!.getEnclosingCamera(boundingBox)
println("Camera that fits bounding box: $camera")

◆ getMaxZoomFactor()

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

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

Returns

Java code snippet:

// Set maximum zoom factor
locationWindow.setMaxZoomFactor(300.0);
System.out.println("Set maximum zoom factor to 300.0");

Kotlin code snippet:

// Set maximum zoom factor
locationWindow!!.maxZoomFactor = 300.0
println("Set maximum zoom factor to 300.0")

◆ getMinZoomFactor()

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

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

Returns

Java code snippet:

// Set minimum zoom factor
locationWindow.setMinZoomFactor(50.0);
System.out.println("Set minimum zoom factor to 50.0");

Kotlin code snippet:

// Set minimum zoom factor
locationWindow!!.minZoomFactor = 50.0
println("Set minimum zoom factor to 50.0")

◆ 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

Java code snippet:

// Set pick radius
locationWindow.setPickRadius(10.0);
System.out.println("Set pick radius to 10.0 pixels");

Kotlin code snippet:

// Set pick radius
locationWindow!!.pickRadius = 10.0
println("Set pick radius to 10.0 pixels")

◆ getRotateGestureEnabled()

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

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

Returns

Java code snippet:

// Set rotate gesture enabled
locationWindow.setRotateGestureEnabled(true);
System.out.println("Set rotate gesture enabled to true");

Kotlin code snippet:

// Set rotate gesture enabled
locationWindow!!.rotateGestureEnabled = true
println("Set rotate gesture enabled to true")

◆ getScrollGesturesEnabled()

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

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

Returns

Java code snippet:

// Set scroll gestures enabled
locationWindow.setScrollGesturesEnabled(true);
System.out.println("Set scroll gestures enabled to true");

Kotlin code snippet:

// Set scroll gestures enabled
locationWindow!!.scrollGesturesEnabled = true
println("Set scroll gestures enabled to true")

◆ getSelectedMapFeatures()

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

List of currently selected map feature IDs.

Returns

Java code snippet:

// Get list of selected map features
List<String> selectedFeatures = locationWindow.getSelectedMapFeatures();
System.out.println("Currently selected map features: " + selectedFeatures.size() + " features");
for (String feature : selectedFeatures) {
System.out.println(" - " + feature);
}

Kotlin code snippet:

// Get list of selected map features
val selectedFeatures = locationWindow!!.selectedMapFeatures
println("Currently selected map features: ${selectedFeatures.size} features")
for (feature in selectedFeatures) {
println(" - $feature")
}

◆ 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

Java code snippet:

// Set stick to border property
locationWindow.setStickToBorder(true);
System.out.println("Set stick to border to true");

Kotlin code snippet:

// Set stick to border property
locationWindow!!.stickToBorder = true
println("Set stick to border to true")

◆ getSublocationId()

abstract Integer com.navigine.idl.java.LocationWindow.getSublocationId ( )
abstract

Returns current sublocation ID if set, otherwise null.

Java code snippet:

Integer currentId = locationWindow.getSublocationId();
if (currentId != null) {
System.out.println("Current sublocation id: " + currentId);
} else {
System.out.println("Current sublocation id is not set");
}

Kotlin code snippet:

val currentId = locationWindow!!.getSublocationId()
if (currentId != null) {
println("Current sublocation id: $currentId")
} else {
println("Current sublocation id is not set")
}

◆ getTiltGesturesEnabled()

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

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

Returns

Java code snippet:

// Set tilt gestures enabled
locationWindow.setTiltGesturesEnabled(true);
System.out.println("Set tilt gestures enabled to true");

Kotlin code snippet:

// Set tilt gestures enabled
locationWindow!!.tiltGesturesEnabled = true
println("Set tilt gestures enabled to true")

◆ 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

Java code snippet:

// Set zoom factor
locationWindow.setZoomFactor(150.0);
System.out.println("Set zoom factor to 150.0");

Kotlin code snippet:

// Set zoom factor
locationWindow!!.zoomFactor = 150.0
println("Set zoom factor to 150.0")

◆ getZoomGesturesEnabled()

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

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

Returns

Java code snippet:

// Set zoom gestures enabled
locationWindow.setZoomGesturesEnabled(true);
System.out.println("Set zoom gestures enabled to true");

Kotlin code snippet:

// Set zoom gestures enabled
locationWindow!!.zoomGesturesEnabled = true
println("Set zoom gestures enabled to true")

◆ 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.

Java code snippet:

// Convert meters to screen position with clipping
Point metersPoint3 = new Point(50.0, 75.0);
Point screenPoint3 = locationWindow.metersToScreenPosition(metersPoint3, true);
System.out.printf("Meters position (%.1f, %.1f) converted to screen with clipping: (%.1f, %.1f)%n",
metersPoint3.getX(), metersPoint3.getY(), screenPoint3.getX(), screenPoint3.getY());

Kotlin code snippet:

// Convert meters to screen position with clipping
val metersPoint3 = Point(50.0, 75.0)
val screenPoint3 = locationWindow!!.metersToScreenPosition(metersPoint3, true)
println("Meters position (${metersPoint3.x}, ${metersPoint3.y}) converted to screen with clipping: (${screenPoint3.x}, ${screenPoint3.y})")

◆ 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.

Java code snippet:

// Move to position with linear animation
Point targetPoint = new Point(200.0, 300.0);
Camera targetCamera = new Camera(targetPoint, 100.0, 90.0);
CameraCallback callback = new CameraCallbackImpl();
locationWindow.moveTo(targetCamera, 1500, AnimationType.LINEAR, callback);
System.out.println("Started move to with linear animation");

Kotlin code snippet:

// Move to position with linear animation
val targetPoint = Point(200.0, 300.0)
val targetCamera = Camera(targetPoint, 100.0, 90.0)
val callback = CameraCallbackImpl()
locationWindow!!.moveTo(targetCamera, 1500, AnimationType.LINEAR, callback)
println("Started move to with linear animation")

◆ 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. Results are delivered to the PickListener via onMapFeaturePickComplete PickListener.

Java code snippet:

// Pick map feature at screen position
Point featurePoint = new Point(150.0, 250.0);
locationWindow.pickMapFeatureAt(featurePoint);
System.out.println("Picked map feature at screen position (" + featurePoint.x + ", " + featurePoint.y + ")");

Kotlin code snippet:

// Pick map feature at screen position
val featurePoint = Point(150.0, 250.0)
locationWindow!!.pickMapFeatureAt(featurePoint)
println("Picked map feature at screen position (${featurePoint.x}, ${featurePoint.y})")

◆ 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. Results are delivered to the PickListener via onMapObjectPickComplete PickListener.

Java code snippet:

// Pick map object at screen position
Point screenPoint = new Point(100.0, 200.0);
locationWindow.pickMapObjectAt(screenPoint);
System.out.println("Picked map object at screen position (" + screenPoint.x + ", " + screenPoint.y + ")");

Kotlin code snippet:

// Pick map object at screen position
val screenPoint = Point(100.0, 200.0)
locationWindow!!.pickMapObjectAt(screenPoint)
println("Picked map object at screen position (${screenPoint.x}, ${screenPoint.y})")

◆ removeAllMapObjects()

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

Removes all map objects from the location view.

Java code snippet:

// Remove all map objects
locationWindow.removeAllMapObjects();
System.out.println("Removed all map objects");

Kotlin code snippet:

// Remove all map objects
locationWindow!!.removeAllMapObjects()
println("Removed all map objects")

◆ removeCameraListener()

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

Removes a previously added CameraListener.

Parameters
listenerThe CameraListener instance to remove CameraListener.

Java code snippet:

// Remove camera listener
locationWindow.removeCameraListener(cameraListener);
cameraListener = null;
System.out.println("Removed camera listener");

Kotlin code snippet:

// Remove camera listener
locationWindow!!.removeCameraListener(cameraListener!!)
cameraListener = null
println("Removed camera listener")

◆ 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.

Java code snippet:

// Remove circle map object
if (circleMapObject != null) {
boolean removed = locationWindow.removeCircleMapObject(circleMapObject);
System.out.println("Removed circle map object: " + removed);
circleMapObject = null;
}

Kotlin code snippet:

// Remove circle map object
if (circleMapObject != null) {
val removed = locationWindow!!.removeCircleMapObject(circleMapObject!!)
println("Removed circle map object: $removed")
circleMapObject = null
}

◆ 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.

Java code snippet:

// Remove dotted polyline map object
if (dottedPolylineMapObject != null) {
boolean removed = locationWindow.removeDottedPolylineMapObject(dottedPolylineMapObject);
System.out.println("Removed dotted polyline map object: " + removed);
dottedPolylineMapObject = null;
}

Kotlin code snippet:

// Remove dotted polyline map object
if (dottedPolylineMapObject != null) {
val removed = locationWindow!!.removeDottedPolylineMapObject(dottedPolylineMapObject!!)
println("Removed dotted polyline map object: $removed")
dottedPolylineMapObject = null
}

◆ 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.

Java code snippet:

// Remove icon map object
if (iconMapObject != null) {
boolean removed = locationWindow.removeIconMapObject(iconMapObject);
System.out.println("Removed icon map object: " + removed);
iconMapObject = null;
}

Kotlin code snippet:

// Remove icon map object
if (iconMapObject != null) {
val removed = locationWindow!!.removeIconMapObject(iconMapObject!!)
println("Removed icon map object: $removed")
iconMapObject = null
}

◆ removeInputListener()

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

Removes a previously added InputListener.

Parameters
listenerThe InputListener instance to remove InputListener.

Java code snippet:

// Remove input listener
locationWindow.removeInputListener(inputListener);
inputListener = null;
System.out.println("Removed input listener");

Kotlin code snippet:

// Remove input listener
locationWindow!!.removeInputListener(inputListener!!)
inputListener = null
println("Removed input listener")

◆ removePickListener()

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

Removes a previously added PickListener.

Parameters
listenerThe PickListener instance to remove PickListener.

Java code snippet:

locationWindow.removePickListener(listeners[i]);
System.out.println("Removed pick listener " + i);

Kotlin code snippet:

locationWindow!!.removePickListener(listener)
println("Removed pick listener $i")

◆ 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.

Java code snippet:

// Remove polygon map object
if (polygonMapObject != null) {
boolean removed = locationWindow.removePolygonMapObject(polygonMapObject);
System.out.println("Removed polygon map object: " + removed);
polygonMapObject = null;
}

Kotlin code snippet:

// Remove polygon map object
if (polygonMapObject != null) {
val removed = locationWindow!!.removePolygonMapObject(polygonMapObject!!)
println("Removed polygon map object: $removed")
polygonMapObject = null
}

◆ 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.

Java code snippet:

// Remove polyline map object
if (polylineMapObject != null) {
boolean removed = locationWindow.removePolylineMapObject(polylineMapObject);
System.out.println("Removed polyline map object: " + removed);
polylineMapObject = null;
}

Kotlin code snippet:

// Remove polyline map object
if (polylineMapObject != null) {
val removed = locationWindow!!.removePolylineMapObject(polylineMapObject!!)
println("Removed polyline map object: $removed")
polylineMapObject = null
}

◆ removeSublocationChangeListener()

abstract void com.navigine.idl.java.LocationWindow.removeSublocationChangeListener ( SublocationChangeListener listener)
abstract

Removes previously added sublocation change listener.

Parameters
listenerListener instance to remove SublocationChangeListener.

Java code snippet:

locationWindow.removeSublocationChangeListener(listener);
System.out.println("Removed sublocation change listener");

Kotlin code snippet:

locationWindow!!.removeSublocationChangeListener(listener)
println("Removed sublocation change listener")

◆ 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.
Returns
(x,y) coordinates in meters Point.

Java code snippet:

// Convert screen position to meters
Point screenPoint = new Point(100.0, 200.0);
Point metersPoint = locationWindow.screenPositionToMeters(screenPoint);
System.out.printf("Screen position (%.1f, %.1f) converted to meters: (%.1f, %.1f)%n",
screenPoint.getX(), screenPoint.getY(), metersPoint.getX(), metersPoint.getY());

Kotlin code snippet:

// Convert screen position to meters
val screenPoint = Point(100.0, 200.0)
val metersPoint = locationWindow!!.screenPositionToMeters(screenPoint)
println("Screen position (${screenPoint.x}, ${screenPoint.y}) converted to meters: (${metersPoint.x}, ${metersPoint.y})")

◆ 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.

Java code snippet:

// Select map feature by ID
String featureId = "room_101";
boolean selected = locationWindow.selectMapFeature(featureId);
System.out.println("Selected map feature " + featureId + ": " + selected);

Kotlin code snippet:

// Select map feature by ID
val featureId = "room_101"
val selected = locationWindow!!.selectMapFeature(featureId)
println("Selected map feature $featureId: $selected")

◆ setCamera()

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

Current camera position in meters. Camera.

Parameters
newCamera

Java code snippet:

// Set camera position without animation
locationWindow.setCamera(newCamera);
System.out.println("Set camera position to (" + newPoint.x + ", " + newPoint.y + ") with zoom 50.0 and rotation 0°");

Kotlin code snippet:

// Set camera position without animation
locationWindow!!.camera = newCamera
println("Set camera position to (${newPoint.x}, ${newPoint.y}) with zoom 50.0 and rotation 0°")

◆ 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 872 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

Java code snippet:

// Set maximum zoom factor
locationWindow.setMaxZoomFactor(300.0);
System.out.println("Set maximum zoom factor to 300.0");

Kotlin code snippet:

// Set maximum zoom factor
locationWindow!!.maxZoomFactor = 300.0
println("Set maximum zoom factor to 300.0")

◆ setMinZoomFactor()

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

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

Parameters
newMinZoomFactor

Java code snippet:

// Set minimum zoom factor
locationWindow.setMinZoomFactor(50.0);
System.out.println("Set minimum zoom factor to 50.0");

Kotlin code snippet:

// Set minimum zoom factor
locationWindow!!.minZoomFactor = 50.0
println("Set minimum zoom factor to 50.0")

◆ 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

Java code snippet:

// Set pick radius
locationWindow.setPickRadius(10.0);
System.out.println("Set pick radius to 10.0 pixels");

Kotlin code snippet:

// Set pick radius
locationWindow!!.pickRadius = 10.0
println("Set pick radius to 10.0 pixels")

◆ 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

Java code snippet:

// Set rotate gesture enabled
locationWindow.setRotateGestureEnabled(true);
System.out.println("Set rotate gesture enabled to true");

Kotlin code snippet:

// Set rotate gesture enabled
locationWindow!!.rotateGestureEnabled = true
println("Set rotate gesture enabled to true")

◆ setScrollGesturesEnabled()

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

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

Parameters
newScrollGesturesEnabled

Java code snippet:

// Set scroll gestures enabled
locationWindow.setScrollGesturesEnabled(true);
System.out.println("Set scroll gestures enabled to true");

Kotlin code snippet:

// Set scroll gestures enabled
locationWindow!!.scrollGesturesEnabled = true
println("Set scroll gestures enabled to true")

◆ 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

Java code snippet:

// Set stick to border property
locationWindow.setStickToBorder(true);
System.out.println("Set stick to border to true");

Kotlin code snippet:

// Set stick to border property
locationWindow!!.stickToBorder = true
println("Set stick to border to true")

◆ 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.

Java code snippet:

// Set sublocation ID to switch between floors
locationWindow.setSublocationId(1);
System.out.println("Set sublocation ID to 1 (first floor)");

Kotlin code snippet:

// Set sublocation ID to switch between floors
locationWindow!!.setSublocationId(1)
println("Set sublocation ID to 1 (first floor)")

◆ 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

Java code snippet:

// Set tilt gestures enabled
locationWindow.setTiltGesturesEnabled(true);
System.out.println("Set tilt gestures enabled to true");

Kotlin code snippet:

// Set tilt gestures enabled
locationWindow!!.tiltGesturesEnabled = true
println("Set tilt gestures enabled to true")

◆ 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

Java code snippet:

// Set zoom factor
locationWindow.setZoomFactor(150.0);
System.out.println("Set zoom factor to 150.0");

Kotlin code snippet:

// Set zoom factor
locationWindow!!.zoomFactor = 150.0
println("Set zoom factor to 150.0")

◆ 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

Java code snippet:

// Set zoom gestures enabled
locationWindow.setZoomGesturesEnabled(true);
System.out.println("Set zoom gestures enabled to true");

Kotlin code snippet:

// Set zoom gestures enabled
locationWindow!!.zoomGesturesEnabled = true
println("Set zoom gestures enabled to true")

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