logo
API Documentation
Tutorials
Getting Started Initialization Layers Third party Controls Geometries Vector styles Measures InfoBox Utils
Releases

Documentation

Modules

  • Constants

Events

  • FEATURE_CLICK
  • FEATURE_HOVER
  • CENTER_DATE_IMAGE
  • CHANGE_MEASURE
  • CLICK
  • COMPLETE_COLLECTIONS
  • FEATURES_CLICK
  • FIND_IMAGES_LOADED
  • FINISH_MEASURE
  • MAP_INITIALIZE
  • MAP_STATUS_EVENT
  • MOVE_END
  • NO_3D_IMAGES
  • POINTER_MOVE
  • START_MEASURE
  • TILES_END_LOAD
  • TILES_START_LOAD
  • FEATURE_CLICK
  • FEATURE_HOVER

General

Classes / Controls

  • Bar
  • Button
  • Swipe
  • Toggle

Classes / Managers

  • CollectionManager
  • OverlayManager

Classes

  • Map

Classes / View

  • MapStatusView

Geometry

Classes

  • Extent
  • Feature
  • Line
  • Location
  • MultiPolygon
  • Point
  • Polygon

Classes / Readers

  • GeoJSON
  • WKT

InfoBox

Classes

  • InfoBox

Layers

Classes

  • ArcGISLayer
  • BingLayer
  • GroupLayer
  • ImageryLayer
  • OSMLayer
  • VectorLayer
  • VectorTileLayer
  • WFSLayer
  • WMSLayer
  • WMTSLayer
  • XYZLayer

Classes / Base Layers

  • BaseLayer
  • BaseVectorLayer

Measurements

Classes / Tools

  • CircleTool
  • HeightTool
  • LineTool
  • PointTool
  • PolygonTool
  • RectangleTool
  • RelativeHeightTool

Classes

  • Measure

Objects

Classes

  • Collection
  • CollectionStatus
  • Image
  • LayerCollections
  • LayerCollectionsStatus
  • MapStatus

Services

Classes

  • UserService

Styles

Classes

  • Circle
  • Fill
  • Icon
  • RegularShape
  • Stroke
  • Style
  • Text

Utils

Classes

  • Transform

Class

ImageryLayer

ImageryLayer

Represents a specialized map layer for displaying imagery data. Provides functionality to interact with imagery in both 2D and 3D modes, including changing view modes, adjusting opacity and visibility, retrieving metadata, and managing infrared mode.

Extends

  • BaseLayer

Classes

ImageryLayer

Methods

# changeImage3D(id)

Loads a 3D image by its image ID.

Parameters:
Name Type Description
id string

The ID of the image to load in 3D mode.

# changeMode(mode) → {Promise.<{status: number, msg: string}>}

Changes the view mode of the map.

Parameters:
Name Type Description
mode '3D' | '2D'

The mode to switch to.

  • A promise resolving with the operation status and message, or rejecting on failure.
Promise.<{status: number, msg: string}>

# changeOrientation(orientation) → {Promise.<{status: number, msg: string}>}

Changes the imagery orientation in 3D mode.

Parameters:
Name Type Description
orientation string

The orientation to change to.

  • A promise resolving with the operation status and message, or rejecting if 3D mode is not active.
Promise.<{status: number, msg: string}>

# disableInfrared()

Disables infrared mode.

# enableInfrared()

Enables infrared mode.

# getAvailableLayerCollections() → {Array.<LayerCollectionsStatus>}

Get all collections in center separated by layer collections.

Array.<LayerCollectionsStatus>

# getCenterImageMetadata() → {Image}

Retrieves metadata of the images at the center of the view.

The image metadata.

Image

# getLayerCollections() → {Array.<LayerCollections>}

Get all collections separated by layer collections.

Array.<LayerCollections>

# getMaxZoom() → {number}

Gets the maximum zoom level of the layer.

Overrides:
  • BaseLayer#getMaxZoom

The maximum zoom level of the layer.

number

# getMinZoom() → {number}

Gets the minimum zoom level of the layer.

Overrides:
  • BaseLayer#getMinZoom

The minimum zoom level of the layer.

number

# getMode() → {'3D'|'2D'}

Get the mode of the map.

mode for current view

'3D' | '2D'

# getOpacity() → {number}

Gets the opacity of the layer (between 0 and 1).

Overrides:
  • BaseLayer#getOpacity

The opacity of the layer.

number

# getOrientation() → {string}

Return view orientation

string

# getVisible() → {boolean}

Gets the visibility of the layer (true or false).

Overrides:
  • BaseLayer#getVisible

The visibility of the layer.

boolean

# hasInfrared() → {boolean}

Checks if infrared imagery is available in the current mode.

  • Returns true if infrared imagery is available, otherwise false.
boolean

# hideVexcelSources(vexcelLayers)

Sets the sources for removing in the base Imagery Layer

Parameters:
Name Type Description
vexcelLayers Array.<string>

List of layer sources to remove. Should be values from VexcelLayers

# is3DAvailable(collectionIdopt, centeropt, zoomopt) → {boolean}

Checks if 3D mode is available for a specific collection, center, and zoom level. If center or zoom are not specified or are null, the function will use the map's current center and zoom.

Parameters:
Name Type Attributes Default Description
collectionId string <optional>
null

The ID of the collection to check. If not provided, it will check all available collections.

center Location <optional>
null

The geographical center [longitude, latitude] to check for 3D availability. Defaults to the map's current center if not provided.

zoom number <optional>
null

The zoom level to check for 3D mode. Defaults to the map's current zoom if not provided.

  • Returns true if 3D mode is available, otherwise false.
boolean

# isOrientationAvailable(orientation, collectionIdopt) → {boolean}

Checks whether orientation is available for the given collection (if specified).

Parameters:
Name Type Attributes Default Description
orientation string

The orientation to check. Defaults to the map's current orientation if not provided.

collectionId string | null <optional>
null

The ID of the collection to check. If null, checks globally.

  • Returns true if the orientation is available, otherwise false.
boolean

# loadDiscreteByProject(layerCollection, collectionId)

Loads discrete imagery by project.

Parameters:
Name Type Description
layerCollection string

The layer collections identifier.

collectionId string

The collection name.

# selectCollection(id)

Selects a collection to be displayed in the imagery.

Parameters:
Name Type Description
id string

The collection to set on top.

# setMaxZoom(maxZoom)

Sets the maximum zoom (exclusive) at which the layer is visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.

Parameters:
Name Type Description
maxZoom number

The maximum zoom of the layer.

Overrides:
  • BaseLayer#setMaxZoom

# setMinZoom(minZoom)

Sets the minimum zoom (inclusive) at which the layer is visible. Note that the zoom levels for layer visibility are based on the view zoom level, which may be different from a tile source zoom level.

Parameters:
Name Type Description
minZoom number

The minimum zoom of the layer.

Overrides:
  • BaseLayer#setMinZoom

# setOpacity(opacity)

Sets the opacity of the layer, allowed values range from 0 to 1.

Parameters:
Name Type Description
opacity number

The opacity of the layer.

Overrides:
  • BaseLayer#setOpacity

# setVisible(visible)

Sets the visibility of the layer (true or false).

Parameters:
Name Type Description
visible boolean

The visibility of the layer.

Overrides:
  • BaseLayer#setVisible

# showVexcelSources(vexcelLayers)

Sets the sources for the base Imagery Layer to the specified list, removing all others

Parameters:
Name Type Description
vexcelLayers Array.<string>

List of layer sources to keep. Should be values from VexcelLayers

Documentation generated by Vexcel Imaging