public abstract class

GeoView

extends Control
java.lang.Object
   ↳ javafx.scene.Node
     ↳ javafx.scene.Parent
       ↳ javafx.scene.layout.Region
         ↳ javafx.scene.control.Control
           ↳ com.esri.arcgisruntime.mapping.view.GeoView
Known Direct Subclasses

Class Overview

A GeoView is the base class for working with views in an MVC architecture. In this architecture, an ArcGISMap or ArcGISScene represents the model and a GeoView represents the view. A GeoView provides properties and methods inherited by the 2D MapView and the 3D SceneView; these derived classes must only be created and used on the UI thread.

Summary

[Expand]
Inherited Constants
From class javafx.scene.layout.Region
From class javafx.scene.Node
Public Methods
void addAttributionTextChangedListener(AttributionTextChangedListener listener)
Registers an AttributionTextChangedListener to be called when the attribution text of the GeoView changes, for example if a layer is removed or added the attribution text needs to update.
void addDrawStatusChangedListener(DrawStatusChangedListener listener)
Adds a draw status changed listener.
void addLayerViewStateChangedListener(LayerViewStateChangedListener listener)
Adds a listener for changes to layer view state.
void addNavigationChangedListener(NavigationChangedListener listener)
Adds a listener for when navigation has changed.
void addSpatialReferenceChangedListener(SpatialReferenceChangedListener listener)
Adds a listener for changes to the SpatialReference.
void addViewpointChangedListener(ViewpointChangedListener listener)
Adds a ViewpointChangedListener.
BooleanProperty attributionTextVisibleProperty()
If attribution text is visible.
abstract ReadOnlyDoubleProperty attributionTopProperty()
Returns a read-only property containing the distance from the top of the view to the top of the attribution text.
void dispose()
Dispose the GeoView
BooleanProperty enableKeyboardNavigationProperty()
If true keyboard navigation is enabled.
BooleanProperty enableMousePanProperty()
If true mouse panning is enabled.
BooleanProperty enableMouseZoomProperty()
If true mouse wheel zooming is enabled.
BooleanProperty enableTouchPanProperty()
If true touch panning is enabled.
BooleanProperty enableTouchRotateProperty()
If true touch rotate is enabled.
BooleanProperty enableTouchZoomProperty()
If true touch zoom (pinch) is enabled.
ListenableFuture<Image> exportImageAsync()
Asynchronously exports the GeoView into an Image.
String getAttributionText()
Gets a concatenated string with attributions from all layers.
abstract double getAttributionTop()
Returns the distance from the top of the view to the top of the attribution text.
final Callout getCallout()
Gets the Callout for this GeoView.
Viewpoint getCurrentViewpoint(Viewpoint.Type viewpointType)
Gets the current viewpoint.
DrawStatus getDrawStatus()
Returns the current draw status.
ListenableList<GraphicsOverlay> getGraphicsOverlays()
Gets a modifiable list of the graphics overlays.
InteractionListener getInteractionListener()
Gets the current interaction listener.
EnumSet<LayerViewStatus> getLayerViewState(Layer layer)
Gets the layer view status for a given layer.
abstract SpatialReference getSpatialReference()
Gets the spatial reference.
ListenableFuture<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayAsync(GraphicsOverlay graphicsOverlay, Point2D screenPoint, double tolerance, boolean returnPopupsOnly)
Asynchronously identifies the topmost visible graphic in the given graphics overlay, near given screen point.
ListenableFuture<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayAsync(GraphicsOverlay graphicsOverlay, Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)
Asynchronously identifies visible graphics in the given graphics overlay, near the given screen point.
ListenableFuture<List<IdentifyGraphicsOverlayResult>> identifyGraphicsOverlaysAsync(Point2D screenPoint, double tolerance, boolean returnPopupsOnly)
Asynchronously identifies the topmost visible graphic in each graphics overlay attached to this view, near the given screen point.
ListenableFuture<List<IdentifyGraphicsOverlayResult>> identifyGraphicsOverlaysAsync(Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)
Asynchronously identifies visible graphics in all graphics overlays attached to this view near given screen point.
ListenableFuture<IdentifyLayerResult> identifyLayerAsync(Layer layer, Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)
Asynchronously identifies geo-elements in the given layer, near given screen point.
ListenableFuture<IdentifyLayerResult> identifyLayerAsync(Layer layer, Point2D screenPoint, double tolerance, boolean returnPopupsOnly)
Asynchronously identifies the topmost visible geo-element in the given layer, near given screen point.
ListenableFuture<List<IdentifyLayerResult>> identifyLayersAsync(Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)
Asynchronously identifies geo-elements on all identifiable layers attached to the map, near given screen point.
ListenableFuture<List<IdentifyLayerResult>> identifyLayersAsync(Point2D screenPoint, double tolerance, boolean returnPopupsOnly)
Asynchronously identifies the topmost visible geo-element in each identifiable layer attached to the map, near given screen point.
boolean isAttributionTextVisible()
Returns true if attribution text is visible, otherwise false.
boolean isEnableKeyboardNavigation()
Returns true if keyboard navigation is enabled, otherwise false.
boolean isEnableMousePan()
Returns true if mouse pan is enabled, otherwise false.
boolean isEnableMouseZoom()
Returns true if mouse wheel zoom is enabled, otherwise false.
boolean isEnableTouchPan()
Returns true if touch pan is enabled, otherwise false.
boolean isEnableTouchRotate()
Returns true if touch rotate is enabled, otherwise false.
boolean isEnableTouchZoom()
Returns true if touch zoom (pinch) is enabled, otherwise false.
boolean isLogoVisible()
This method is deprecated. as of 100.2.0 Returns false.
boolean isNavigating()
Indicates whether the GeoView is being interacted with or not.
boolean isResizable()
boolean isWrapAroundEnabled()
Indicates the wrap around mode.
boolean removeAttributionTextChangedListener(AttributionTextChangedListener listener)
Unregisters an AttributionTextChangedListener that was previously added using addAttributionTextChangedListener(AttributionTextChangedListener).
boolean removeDrawStatusChangedListener(DrawStatusChangedListener listener)
Removes a draw status changed listener.
boolean removeLayerViewStateChangedListener(LayerViewStateChangedListener listener)
Removes a layer view state listener.
boolean removeNavigationChangedListener(NavigationChangedListener listener)
Removes a navigation change listener.
boolean removeSpatialReferenceChangedListener(SpatialReferenceChangedListener listener)
Removes a SpatialReference changed listener.
boolean removeViewpointChangedListener(ViewpointChangedListener listener)
Removes a ViewpointChangedListener.
void setAttributionTextVisible(boolean visible)
Sets the visibility of the Esri attribution text.
void setEnableKeyboardNavigation(boolean enable)
Enables or disables keyboard navigation.
void setEnableMousePan(boolean enable)
Enables or disables mouse panning.
void setEnableMouseZoom(boolean enable)
Enables or disables mouse wheel zooming.
void setEnableTouchPan(boolean enable)
Enables or disables touch panning.
void setEnableTouchRotate(boolean enable)
Enables or disables touch rotate.
void setEnableTouchZoom(boolean enable)
Enables or disables touch zoom (pinch).
void setInteractionListener(InteractionListener interactionListener)
Sets the listener to handle input interactions on the GeoView.
void setLogoVisible(boolean visible)
This method is deprecated. as of 100.2.0 This is a no-operation.
void setViewpoint(Viewpoint viewpoint)
Sets the view to a given location and scale.
ListenableFuture<Boolean> setViewpointAsync(Viewpoint viewpoint, float durationSeconds)
Set viewpoint with duration asynchronously.
ListenableFuture<Boolean> setViewpointAsync(Viewpoint viewpoint)
Sets the viewpoint asynchronously.
[Expand]
Inherited Methods
From class javafx.scene.control.Control
From class javafx.scene.layout.Region
From class javafx.scene.Parent
From class javafx.scene.Node
From class java.lang.Object
From interface javafx.css.Styleable
From interface javafx.event.EventTarget
From interface javafx.scene.control.Skinnable

Public Methods

public void addAttributionTextChangedListener (AttributionTextChangedListener listener)

Registers an AttributionTextChangedListener to be called when the attribution text of the GeoView changes, for example if a layer is removed or added the attribution text needs to update.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the listener to register
Throws
NullPointerException if the listener is null

public void addDrawStatusChangedListener (DrawStatusChangedListener listener)

Adds a draw status changed listener.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the listener
Throws
NullPointerException if the argument is null

public void addLayerViewStateChangedListener (LayerViewStateChangedListener listener)

Adds a listener for changes to layer view state.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the listener
Throws
NullPointerException if the argument is null

public void addNavigationChangedListener (NavigationChangedListener listener)

Adds a listener for when navigation has changed.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the listener
Throws
NullPointerException if the listener is null

public void addSpatialReferenceChangedListener (SpatialReferenceChangedListener listener)

Adds a listener for changes to the SpatialReference.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the listener
Throws
NullPointerException if the argument is null

public void addViewpointChangedListener (ViewpointChangedListener listener)

Adds a ViewpointChangedListener.

This listener will fire when the Viewpoint of this GeoView has changed.

This listener will be invoked on the UI thread if it is added from the UI thread, otherwise it is not guaranteed on which thread the listener is invoked.

Parameters
listener the ViewpointChangedListener to add
Throws
IllegalArgumentException if listener is null

public BooleanProperty attributionTextVisibleProperty ()

If attribution text is visible.

Returns
  • property for controlling attribution text visibility

public abstract ReadOnlyDoubleProperty attributionTopProperty ()

Returns a read-only property containing the distance from the top of the view to the top of the attribution text. This can be used to position nodes on the view such that they don't obscure the attribution.

Returns
  • the attribution top property, 0 if attribution is not visible

public void dispose ()

Dispose the GeoView

public BooleanProperty enableKeyboardNavigationProperty ()

If true keyboard navigation is enabled.

Returns
  • property for controlling keyboard navigation

public BooleanProperty enableMousePanProperty ()

If true mouse panning is enabled.

Returns
  • property for controlling mouse panning

public BooleanProperty enableMouseZoomProperty ()

If true mouse wheel zooming is enabled.

Returns
  • property for controlling mouse wheel zooming

public BooleanProperty enableTouchPanProperty ()

If true touch panning is enabled.

Returns
  • property for controlling touch panning

public BooleanProperty enableTouchRotateProperty ()

If true touch rotate is enabled.

Returns
  • property for controlling touch rotation

public BooleanProperty enableTouchZoomProperty ()

If true touch zoom (pinch) is enabled.

Returns
  • property for controlling touch zooming

public ListenableFuture<Image> exportImageAsync ()

Asynchronously exports the GeoView into an Image. The Image will only contain content of an ArcGISMap or ArcGISScene that is currently visible. Elements drawn on top of the GeoView such as Callouts will not be in the Image.

Returns
  • a ListenableFuture that provides an Image of GeoView upon successful completion of the asynchronous operation.

public String getAttributionText ()

Gets a concatenated string with attributions from all layers. This returns an empty string if there is no attribution text.

Returns
  • a concatenated string with attributions from all layers; empty string if there is no attribution text

public abstract double getAttributionTop ()

Returns the distance from the top of the view to the top of the attribution text. This can be used to position nodes on the view such that they don't obscure the attribution.

Returns
  • the distance to the attribution top, 0 if attribution is not visible

public final Callout getCallout ()

Gets the Callout for this GeoView. A callout displays a Region that contains text and/or other content. A GeoView has only one Callout.

Returns
  • the Callout object for this GeoView

public Viewpoint getCurrentViewpoint (Viewpoint.Type viewpointType)

Gets the current viewpoint.

For a MapView, the Camera of the viewpoint will always be null.

For a SceneView the Camera will never be null.

Parameters
viewpointType the viewpoint type
Returns
  • the current viewpoint
Throws
IllegalArgumentException if the argument is null

public DrawStatus getDrawStatus ()

Returns the current draw status.

Returns
  • the current draw status

public ListenableList<GraphicsOverlay> getGraphicsOverlays ()

Gets a modifiable list of the graphics overlays. Add or remove graphics overlays from this list to modify what is displayed. The list returned can be empty but not null. You can add listeners to this list to monitor changes to the list. A graphics overlay can only be in the list once.

Returns
  • the graphics overlays

public InteractionListener getInteractionListener ()

Gets the current interaction listener.

Returns
  • the current interaction listener

public EnumSet<LayerViewStatus> getLayerViewState (Layer layer)

Gets the layer view status for a given layer.

Parameters
layer the layer
Returns
Throws
IllegalArgumentException if the argument is null

public abstract SpatialReference getSpatialReference ()

Gets the spatial reference.

Returns
  • the spatial reference

public ListenableFuture<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayAsync (GraphicsOverlay graphicsOverlay, Point2D screenPoint, double tolerance, boolean returnPopupsOnly)

Asynchronously identifies the topmost visible graphic in the given graphics overlay, near given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include the topmost visible graphic, when rendered with the appropriate symbol, that intersect this circle.

Parameters
graphicsOverlay the graphics overlay to identify a graphic within
screenPoint the screen point at which to identify a graphic
tolerance The radius, of a circle centered at the screenPoint within which to identify a graphic. A value of 0 will only identify a graphic at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify Graphics as well
Returns
  • a ListenableFuture for tracking when the operation is done and getting the result; Add a listener to the future to be notified when the identify operation is complete. The result of the future is an IdentifyGraphicsOverlayResult object if the operation completed successfully
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • graphicsOverlay is null
  • screenPoint is null
  • tolerance less than zero or greater than 100

public ListenableFuture<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayAsync (GraphicsOverlay graphicsOverlay, Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)

Asynchronously identifies visible graphics in the given graphics overlay, near the given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include any visible graphics, when rendered with the appropriate symbols, that intersect this circle, up to the maximumResults parameter limit.

Parameters
graphicsOverlay the graphics overlay to identify graphics within
screenPoint the screen point at which to identify graphics
tolerance The radius, of a circle centered at the screenPoint within which to identify graphics. A value of 0 will only identify graphics at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify Graphics as well
maximumResults the maximum number of results to be returned; must be greater than zero with the exception that -1 can be used to indicate unlimited results
Returns
  • a ListenableFuture for tracking when the operation is done and getting the result; Add a listener to the future to be notified when the identify operation is complete. The result of the future is an IdentifyGraphicsOverlayResult object if the operation completed successfully
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • graphicsOverlay is null
  • screenPoint is null
  • tolerance less than zero or greater than 100
  • maximumResults is zero or less than -1

public ListenableFuture<List<IdentifyGraphicsOverlayResult>> identifyGraphicsOverlaysAsync (Point2D screenPoint, double tolerance, boolean returnPopupsOnly)

Asynchronously identifies the topmost visible graphic in each graphics overlay attached to this view, near the given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include the topmost visible graphic, when rendered with the appropriate symbol, from each graphics overlay that intersect this circle.

Parameters
screenPoint the screen point at which to identify graphics
tolerance The radius, of a circle centered at the screenPoint within which to identify graphics. A value of 0 will only identify the graphics at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify Graphics as well
Returns
  • a ListenableFuture for tracking when the operation is done and getting the result; Add a listener to the future to be notified when the identify operation is complete. The result of the future is a list of IdentifyGraphicsOverlayResult objects if the operation completed successfully
Throws
IllegalArgumentException if
  • screenPoint is null
  • tolerance less than zero or greater than 100
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView

public ListenableFuture<List<IdentifyGraphicsOverlayResult>> identifyGraphicsOverlaysAsync (Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)

Asynchronously identifies visible graphics in all graphics overlays attached to this view near given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include any visible graphics, when rendered with the appropriate symbols, that intersect this circle, up to the maximumResults parameter limit for each graphics overlay.

Parameters
screenPoint the screen point at which to identify graphics
tolerance The radius, of a circle centered at the screenPoint within which to identify graphics. A value of 0 will only identify the graphics at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify Graphics as well
maximumResults the maximum number of results to be returned; must be greater than zero with the exception that -1 can be used to indicate unlimited results
Returns
  • a ListenableFuture for tracking when the operation is done and getting the result; Add a listener to the future to be notified when the identify operation is complete. The result of the future is a list of IdentifyGraphicsOverlayResult objects if the operation completed successfully
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • screenPoint is null
  • tolerance less than zero or greater than 100
  • mmaximumResults is zero or less than -1

public ListenableFuture<IdentifyLayerResult> identifyLayerAsync (Layer layer, Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)

Asynchronously identifies geo-elements in the given layer, near given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include any visible geo-element, when rendered with the appropriate symbol, that intersects this circle, up to the maximumResults parameter limit.

Parameters
layer layer to identify geo-elements wtihin
screenPoint the screen point to identify on
tolerance The radius, of a circle centered at the screenPoint within which to identify geo-elements. A value of 0 will only identify geo-elements at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify GeoElements as well
maximumResults the maximum number of results to be returned; must be greater than zero with the exception that -1 can be used to indicate unlimited results
Returns
  • A ListenableFuture that provides an IdentifyLayerResult upon successful completion of the async operation.
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • layer is null
  • screenPoint is null
  • tolerance less than zero or greater than 100
  • maximumResults is zero or less than -1

public ListenableFuture<IdentifyLayerResult> identifyLayerAsync (Layer layer, Point2D screenPoint, double tolerance, boolean returnPopupsOnly)

Asynchronously identifies the topmost visible geo-element in the given layer, near given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include the topmost visible geo-element, when rendered with the appropriate symbol, that intersects this circle.

Parameters
layer layer to identify a geo-element within
screenPoint the screen point to identify on
tolerance The radius, of a circle centered at the screenPoint within which to identify a geo-element. A value of 0 will only identify a geo-element at the screenPoint's physical pixel. The maximum allowed value 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify GeoElements as well
Returns
  • a ListenableFuture that provides an IdentifyLayerResult upon successful completion of the async operation. Add a listener to the future to be notified when the identify operation is complete.
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • layer is null
  • screenPoint is null
  • tolerance less than zero or greater than 100

public ListenableFuture<List<IdentifyLayerResult>> identifyLayersAsync (Point2D screenPoint, double tolerance, boolean returnPopupsOnly, int maximumResults)

Asynchronously identifies geo-elements on all identifiable layers attached to the map, near given screen point.

As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include any visible geo-elements, when rendered with the appropriate symbol, that intersects this circle, up to the maximumResults parameter limit per identifiable layer.

Parameters
screenPoint the screen point to identify on
tolerance The radius, of a circle centered at the screenPoint within which to identify geo-elements. A value of 0 will only identify geo-elements at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels.
returnPopupsOnly true to identify Popups only, false to identify GeoElements as well
maximumResults the maximum number of results to be returned; must be greater than zero with the exception that -1 can be used to indicate unlimited results
Returns
  • A ListenableFuture that provides an unmodifiable list of IdentifyLayerResults upon successful completion of the asynchronous operation. The list contains an IdentifyLayerResult for each layer in which a geo-element was identified; layers with no identified geo-element are not represented in the list.
Throws
ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView
IllegalArgumentException if
  • the screen point is null
  • the tolerance is less than one or greater than 100
  • the maximumResults is zero or less than -1
  • public ListenableFuture<List<IdentifyLayerResult>> identifyLayersAsync (Point2D screenPoint, double tolerance, boolean returnPopupsOnly)

    Asynchronously identifies the topmost visible geo-element in each identifiable layer attached to the map, near given screen point.

    As locations from user gestures are not always accurate to the exact pixel, a tolerance for the identify can be defined. The tolerance parameter indicates the radius of a circle, centered at screenPoint. The result returned will include the topmost visible geo-element, when rendered with the appropriate symbol, that intersects this circle from each identifiable layer.

    Parameters
    screenPoint the screen point to identify on
    tolerance The radius, of a circle centered at the screenPoint within which to identify geo-elements. A value of 0 will only identify geo-elements at the screenPoint's physical pixel. The maximum allowed value is 100 density independent pixels
    returnPopupsOnly true to identify Popups only, false to identify GeoElements as well
    Returns
    • A ListenableFuture that provides an unmodifiable list of IdentifyLayerResults upon successful completion of the async operation. The list contains an IdentifyLayerResult for each layer in which a geo-element was identified; layers with no identified geo-element are not represented in the list.
    Throws
    IllegalArgumentException if
    • screenPoint is null
    • tolerance less than zero or greater than 100
    ArcGISRuntimeException if screenPoint translates to a point outside the current viewpoint set to the GeoView

    public boolean isAttributionTextVisible ()

    Returns true if attribution text is visible, otherwise false.

    Returns
    • true if the attribution text is visible

    public boolean isEnableKeyboardNavigation ()

    Returns true if keyboard navigation is enabled, otherwise false.

    Returns
    • true, if keyboard navigation is enabled

    public boolean isEnableMousePan ()

    Returns true if mouse pan is enabled, otherwise false.

    Returns
    • true, if mouse panning is enabled

    public boolean isEnableMouseZoom ()

    Returns true if mouse wheel zoom is enabled, otherwise false.

    Returns
    • true if enabled

    public boolean isEnableTouchPan ()

    Returns true if touch pan is enabled, otherwise false.

    Returns
    • true, if touch panning is enabled

    public boolean isEnableTouchRotate ()

    Returns true if touch rotate is enabled, otherwise false.

    Returns
    • true, if touch rotate is enabled

    public boolean isEnableTouchZoom ()

    Returns true if touch zoom (pinch) is enabled, otherwise false.

    Returns
    • true, if touch zoom is enabled

    public boolean isLogoVisible ()

    This method is deprecated.
    as of 100.2.0 Returns false.

    Returns
    • false always

    public boolean isNavigating ()

    Indicates whether the GeoView is being interacted with or not.

    Returns
    • true, if the GeoView is being interacted with.

    public boolean isResizable ()

    public boolean isWrapAroundEnabled ()

    Indicates the wrap around mode.

    If a MapView is in wrap around mode then you can pan across the international date line if your BaseMap is in a suitable SpatialReference. A SceneView is always in wrap around mode.

    Returns
    • true, if wrap around is enabled

    public boolean removeAttributionTextChangedListener (AttributionTextChangedListener listener)

    Unregisters an AttributionTextChangedListener that was previously added using addAttributionTextChangedListener(AttributionTextChangedListener).

    Parameters
    listener the listener to remove
    Returns
    • true if the listener was successfully removed; false otherwise
    Throws
    NullPointerException if the listener is null

    public boolean removeDrawStatusChangedListener (DrawStatusChangedListener listener)

    Removes a draw status changed listener.

    Parameters
    listener the listener
    Throws
    NullPointerException if the argument is null

    public boolean removeLayerViewStateChangedListener (LayerViewStateChangedListener listener)

    Removes a layer view state listener.

    Parameters
    listener the listener
    Returns
    • true, if successful
    Throws
    NullPointerException if the argument is null

    public boolean removeNavigationChangedListener (NavigationChangedListener listener)

    Removes a navigation change listener.

    Parameters
    listener the listener
    Returns
    • true, if successful
    Throws
    NullPointerException if the listener is null

    public boolean removeSpatialReferenceChangedListener (SpatialReferenceChangedListener listener)

    Removes a SpatialReference changed listener.

    Parameters
    listener the listener
    Returns
    • true, if successful
    Throws
    NullPointerException if the argument is null

    public boolean removeViewpointChangedListener (ViewpointChangedListener listener)

    Removes a ViewpointChangedListener.

    Parameters
    listener the ViewpointChangedListener to remove
    Returns
    • true, if successful

    public void setAttributionTextVisible (boolean visible)

    Sets the visibility of the Esri attribution text. The Esri attribution text must be visible if your app uses data served by Esri through ArcGIS Online.

    Parameters
    visible true if the attribution text should be visible

    public void setEnableKeyboardNavigation (boolean enable)

    Enables or disables keyboard navigation.

    Parameters
    enable true to enable keyboard navigation

    public void setEnableMousePan (boolean enable)

    Enables or disables mouse panning.

    Parameters
    enable true to enable mouse panning

    public void setEnableMouseZoom (boolean enable)

    Enables or disables mouse wheel zooming.

    Parameters
    enable true to enable mouse wheel zoom

    public void setEnableTouchPan (boolean enable)

    Enables or disables touch panning.

    Parameters
    enable true to enable touch panning

    public void setEnableTouchRotate (boolean enable)

    Enables or disables touch rotate.

    Parameters
    enable true to enable touch rotate

    public void setEnableTouchZoom (boolean enable)

    Enables or disables touch zoom (pinch).

    Parameters
    enable true to enable touch zooming

    public void setInteractionListener (InteractionListener interactionListener)

    Sets the listener to handle input interactions on the GeoView.

    Parameters
    interactionListener listener to handle input interactions on the GeoView
    Throws
    IllegalArgumentException if the interactionListener is null

    public void setLogoVisible (boolean visible)

    This method is deprecated.
    as of 100.2.0 This is a no-operation.

    Parameters
    visible the new logo visible

    public void setViewpoint (Viewpoint viewpoint)

    Sets the view to a given location and scale.

    In a MapView, only the geometry/location and scale properties of the viewpoint are used.

    In a SceneView the Camera of the viewpoint is used first; if there is no Camera, the geometry/location and scale properties are used to calculate an approximate Camera. For SceneView, you could also use setViewpointCamera(Camera).

    Parameters
    viewpoint the new viewpoint
    Throws
    IllegalArgumentException if the argument is null

    public ListenableFuture<Boolean> setViewpointAsync (Viewpoint viewpoint, float durationSeconds)

    Set viewpoint with duration asynchronously.

    Parameters
    viewpoint the viewpoint
    durationSeconds the duration seconds
    Returns
    • a ListenableFuture whose result indicates if the operation completed successfully or not. Add a listener to this to know when the viewpoint has finished animating.
    Throws
    IllegalArgumentException if the viewpoint is null

    public ListenableFuture<Boolean> setViewpointAsync (Viewpoint viewpoint)

    Sets the viewpoint asynchronously.

    Parameters
    viewpoint the new viewpoint
    Returns
    • a ListenableFuture whose result indicates if the operation completed successfully or not. Add a listener to this to know when the viewpoint has finished animating.
    Throws
    IllegalArgumentException if the argument is null