Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an ArcGIS feature layer. The properties in this class represent the configuration served from the Essentials REST API.

Hierarchy

Index

Constructors

Events

Properties

Methods

Constructors

constructor

Events

onInitializationFailed

onInitializationFailed: function

Occurs when initialization of this object fails.

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

onInitialized

onInitialized: function

Occurs when initialization succeeds with a response from the REST endpoint. Depending on the API, this response may actually be an error message served as a correct HTTP response.

Type declaration

    • (sender: any): void
    • Parameters

      • sender: any

      Returns void

Properties

Private _initializing

_initializing: boolean

Protected _initiallyVisible

_initiallyVisible: boolean

Whether or not the map service is initially visible.

attributionDataUrl

attributionDataUrl: string

The URL, when available, where the layer's attribution data is stored.

baseMapGroup

baseMapGroup: string

The base map group that this service belongs to, if applicable.

baseMapGroupIndex

baseMapGroupIndex: number

The zero-based index of this map service within its base map group, if applicable.

baseMapGroupIsMutuallyExclusive

baseMapGroupIsMutuallyExclusive: boolean

Indicates whether the base map group that this service belongs to allows only one base map to be selected at a time.

bingProperties

bingProperties: any

The parameters supplied for creation of a Bing map through the connection string This object will be null for any MapService which is not a Bing map.

canAdd

canAdd: boolean

Whether or not the FeatureLayerService is editable and supports feature additions.

canAddAttachments

canAddAttachments: boolean

Whether or not the {@link geocortex.essentials.FeatureLayerService} can add attachments to features.

canDelete

canDelete: boolean

Whether or not the FeatureLayerService is editable and supports feature deletions.

canEdit

canEdit: boolean

Whether or not the FeatureLayerService is editable.

canUpdate

canUpdate: boolean

Whether or not the FeatureLayerService is editable and supports feature updates.

catalogId

catalogId: string

The catalog id

clusterLayer

clusterLayer: Layer

The clustering Layer object.

color

color: number[]

The color that regular graphics are drawn with for this service. Represented by an array of RGB values, in that order, each in 0-255 .

configuredOpacity

configuredOpacity: number

The initial opacity defined in the Site.

configuredVisible

configuredVisible: boolean

The initial visibility defined in the Site. This will be True if the default is to have the map service visible, false otherwise.

copyright

copyright: string

The attribution information for the layer.

dataProvider

dataProvider: string

The default data provider (e.g. "Oracle", "SqlServer") for all layers in this map service.

defaultDateFormat

defaultDateFormat: string

The default format string used for formatting date values originating from this map service.

defaultNumberFormat

defaultNumberFormat: string

The default format string used for formatting numeric values originating from this map service.

description

description: string

Description of the map service.

disableClientCaching

disableClientCaching: boolean

Whether or not to disable caching of the FeatureLayerService on the client.

note

not used currently in esri JS API, so ignored.

deprecated

2.0

displayName

displayName: string

The display name of the MapService.

drawingBehavior

drawingBehavior: string

The drawing behavior of this map service. One of:

  • MapService - the map service is rendered on the server
  • FeatureLayer - the map service is rendered on the client

editVerticesEnabled

editVerticesEnabled: boolean

Are the vertices of the geometry of the features in this feature layer are editable.

essentialsMap

essentialsMap: Map

The Map that the MapService belongs to.

explodedClusterLayer

explodedClusterLayer: Layer

The Layer object for exploded clusters.

extensions

extensions: Extension[]

Any extensions of the MapService, as defined by the administrator on the server.

failureAction

failureAction: string

The failure action, which describes how the end user application should deal with a failed service.

failureTimeout

failureTimeout: number

The timeout (in seconds) before this mapService will be deemed to have failed

failureTimeoutThresholdExceeded

failureTimeoutThresholdExceeded: boolean

Boolean indicating whether the map service has timed out yet. This does not, in itself indicate an error. Subsequent resolution is possible.

featureClustering

featureClustering: FeatureCluster

Used to indicate what the MapService is capable of and is currently doing regarding clustering

geometryServiceUrl

geometryServiceUrl: string

The URL of the geometry service.

hasAttributionData

hasAttributionData: boolean

If the current map service has attribution data or not

hasLayerCatalog

hasLayerCatalog: boolean

Indicates whether this instance has layer catalog.

heatMap

The heap map settings for this map service.

iconUri

iconUri: string

URI to an icon representation of this map service, for display in client applications.

id

id: string

The ID of the MapService.

identifiable

identifiable: boolean

Whether or not this mapService can be identified in the client application.

imageFormat

imageFormat: string

Format in which images will be drawn.

inActiveTheme

inActiveTheme: boolean

Observable indicating whether this map service is in the active theme or not.

includeCatalogItems

includeCatalogItems: boolean

Whether or not the catalog items for this mapService should be included in identify results or not.

includeInLayerList

includeInLayerList: boolean

Whether or not to include this map service in the layer lists of client applications.

includeMosaicDatasetValues

includeMosaicDatasetValues: boolean

Whether or not the mosaic dataset values for this mapService should be included in identify results or not.

initializationFailure

initializationFailure: Error

Gets the error that occurred during initialization of the service layer, or null if there were no errors during initialization.

instantSearch

instantSearch: boolean

Indicates whether the map service is searchable through Instant Search.

isExpanded

isExpanded: boolean

Whether or not the map service will be expanded by default when shown in a layer list.

isInitialized

isInitialized: boolean

Whether or not the object was successfully initialized.

isServiceLayerLoaded

isServiceLayerLoaded: boolean

Indicates whether or not the service layer (Esri's native layer) has been loaded.

isTimeAware

isTimeAware: boolean

Boolean indicating whether this map service is time aware or not

isUserCreated

isUserCreated: boolean

Indicates whether or not a mapService was created by a user at runtime

layerHyperlinks

layerHyperlinks: LayerHyperlink[]

A collection of LayerHyperlinks associated with this map service.

layerThemeSettings

layerThemeSettings: LayerThemeSetting[]

A collection containing the layer theme settings for this map service.

layers

layers: Layer[]

The collection of Layer objects.

layersFilteredView

layersFilteredView: Layer[]

A view of the layers which is filtered to only include the active layers in the application. This will change, when, for example, a layer theme is applied. If no filter (layer theme) has been applied, then this collection will be the same as the 'layers' collection

mapServiceFunction

mapServiceFunction: string

The logical function of the MapService, either Base or Operational.

mapServiceType

mapServiceType: string

The type of MapService.

mapUrl

mapUrl: string

The URL used to retrieve a map image. Maybe a templated URL, as in the case of WMTS using RESTful encoding. May also be used to define the url that should used for WMS GetMap requests.*

maxScale

maxScale: number

A maximum scale value that overrides the map service's defined maximum scale.

minScale

minScale: number

A minimum scale value that overrides the map service's defined minimum scale.

moveEnabled

moveEnabled: boolean

Whether or not the features geometry can be edited and moved on the map.

onDemandCacheSize

onDemandCacheSize: number

The size of the client cache Note not used currently in esri JS API, so ignored.

deprecated

2.0

onFailureTimeoutThresholdExceeded

onFailureTimeoutThresholdExceeded: function

function invoked when the failure timeout threshold is exceeded

Type declaration

    • (): void
    • Returns void

opacity

opacity: number

The opacity of the map service.

opacityFilter

opacityFilter: number

A value between 0 and 1 inclusive that is used to filter the opacity of the map service. The map service's opacity will be combined with the filter to produce the final opacity seen by the end user.

operationalSpatialReference

operationalSpatialReference: string

The runtime spatial reference to use that is compatible with the map's spatial reference. For now this is just used for WMS and WFS.

originalUrl

originalUrl: string

The original URL of the Essentials map service REST endpoint.

outFields

outFields: string

The outFields configuration parameter

properties

properties: any

The properties of the MapService, as defined by the administrator on the server.

proxyUrl

proxyUrl: string

The proxy URL for this service.

queryMode

queryMode: number

Represents an esri.layers.FeatureLayer MODE type. One of:

  • esri.layers.FeatureLayer.MODE_SNAPSHOT
  • esri.layers.FeatureLayer.MODE_ONDEMAND
  • esri.layers.FeatureLayer.MODE_SELECTION

renderer

renderer: Renderer

The renderer as defined by the Site.

requestEncoding

requestEncoding: string

The request encoding for a WMTS service. Can be KVP or RESTful.

rotateEnabled

rotateEnabled: boolean

Whether the features geometry can rotated or not.

scaleEnabled

scaleEnabled: boolean

Can the geometry of the features in this feature layer can be scaled.

selectionColor

selectionColor: number[]

The color that selected graphics are drawn with for this service. Represented by an array of RGB values, in that order, each in 0-255.

serverVersion

serverVersion: string

The map server version for the service host.

serviceLayer

serviceLayer: FeatureLayer

serviceTag

serviceTag: string

A unique identifier for the service.

serviceToken

serviceToken: string

The security token that must be provided when requesting the service from ArcGIS Server.

serviceUrl

serviceUrl: string

The URL of the map service published by ArcGIS Server.

shortDisplayName

shortDisplayName: string

The short display name for the map service.

site

The {@link geocortex.essentials.Site} that this resource belongs to.

subDomains

subDomains: string[]

The set of subdomains to use in a WebTiledLayer tile request.

supportsDynamicLayers

supportsDynamicLayers: boolean

Whether or not the map service supports dynamic layers.

tables

tables: Layer[]

The collection of table objects.

tileHeight

tileHeight: number

The size of the virtual tiles used in on-demand mode

note

This option is only valid in on-demand mode and must be a square.

tileInfo

tileInfo: TileInfo

tileMatrixSet

tileMatrixSet: string

tileRestUrl

tileRestUrl: string

The URL used to retrieve tile images in the case of a RESTful WMTS service, which may be a URL template.

tileWidth

tileWidth: number

The size of the virtual tiles used in on-demand mode

note

This option is only valid in on-demand mode and must be a square.

timeAwareMode

timeAwareMode: string

Controls format of requests to time aware OGC services, as they don't follow the esri map settings. "Disabled", "Instant", or "Range"

timeInfo

timeInfo: TimeInfo

The time information for this map service - if it is time aware.

timeZoneId

timeZoneId: string

The IANA ID of the time zone in which the data in this layer's fields are current.

updateInterval

updateInterval: number

url

url: string

The URL that this resource was initialized from.

userLayerType

userLayerType: string

The type of user created layer. One of:

  • LayerAddition - the layer was added by browsing/searching for services and layers in a dialog
  • LayerCatalog - the layer was added from a catalog
  • Upload - the layer was added by uploading a file

Only applies to layers created at runtime.

where

where: string

The {@link esri.layers.FeatureLayer} WHERE clause expression.

Methods

Private _cleanUpLayer

  • _cleanUpLayer(layer: FeatureLayer): void
  • Parameters

    • layer: FeatureLayer

    Returns void

Private _configureLayers

  • _configureLayers(layerResults: any, deepInitialize: boolean): void
  • Parameters

    • layerResults: any
    • deepInitialize: boolean

    Returns void

Private _configureObject

  • _configureObject(obj: any, deepInitialize?: boolean): void
  • Parameters

    • obj: any
    • Optional deepInitialize: boolean

    Returns void

Private _configurePropertiesAndrenderer

  • _configurePropertiesAndrenderer(obj: any): void
  • Parameters

    • obj: any

    Returns void

Private _configureTables

  • _configureTables(tableResults: any, deepInitialize: boolean): void
  • Parameters

    • tableResults: any
    • deepInitialize: boolean

    Returns void

Private _configureTimeInfo

  • _configureTimeInfo(): void

Private _createFrom

  • _createFrom(obj: any): void

Private _createServiceLayer

  • _createServiceLayer(): void

Private _getDefaultGeometryServiceToken

  • _getDefaultGeometryServiceToken(): string

Private _getDefaultGeometryServiceUrl

  • _getDefaultGeometryServiceUrl(): string

Private _getLayersInfo

  • _getLayersInfo(layerId?: string): Promise<any>
  • Parameters

    • Optional layerId: string

    Returns Promise<any>

Private _handleDynamicLayers

  • _handleDynamicLayers(dynamicMapServiceLayer: ArcGISDynamicMapServiceLayer): void
  • Parameters

    • dynamicMapServiceLayer: ArcGISDynamicMapServiceLayer

    Returns void

Private _handleServiceLayerLoaded

  • _handleServiceLayerLoaded(layer: Layer): void

Private _initializationFailedHandler

  • _initializationFailedHandler(err: Error): void

Private _initializedHandler

  • _initializedHandler(sender: any): void

Private _layerLoadErrorHandler

  • _layerLoadErrorHandler(error: Error): void

Protected _processConnectionString

  • _processConnectionString(connectionString: string, obj: any): void

Private _restErrorHandler

  • _restErrorHandler(error: Error): void

Private _restLoadHandler

  • _restLoadHandler(deepInitialize: boolean, result: any): void

Private _setVisibility

  • _setVisibility(layerID: string, visible: boolean, doNotRefresh?: boolean): void
  • Parameters

    • layerID: string
    • visible: boolean
    • Optional doNotRefresh: boolean

    Returns void

Private _syncLayerVisibilities

  • _syncLayerVisibilities(visibleLayerIds: Array<string>): void

Private _updateServiceToken

  • _updateServiceToken(token: string): void

add

  • add(layer: Layer): void
  • Adds a Layer to the map service. Also manipulates the Esri Layer and adds appropriate layer info and drawing options for dynamic layers. Currently supports dynamic layers only.

    Parameters

    • layer: Layer

      A Layer to add to the map service

    Returns void

applyCatalogLayersChange

convertToDynamicLayers

  • convertToDynamicLayers(): void
  • Converts the map service to use to dynamic layers. This will only have an effect if the map service supports dynamic layers.

    Returns void

createFromDefinition

  • createFromDefinition(serviceDefinition: any): void
  • Populates the map service from a dynamic object which represents a map service.

    Parameters

    • serviceDefinition: any

      An object which represents the map service.

    Returns void

doWhenInitialized

  • doWhenInitialized(callback: function): void
  • doWhenInitialized(scope: any, callback: function): void
  • Parameters

    Returns void

  • Performs a callback function when this instance has been initialized. If this instance is already initialized when this function is called, the callback function will execute immediately.

    Parameters

    • scope: any

      The scope to using when executing the callback - i.e. the value of the 'this' variable in the callback function. This parameter may be ommitted in which cased the first parameter will be used as the callback function.

    • callback: function

      The callback function to execute when this instance has been initialized.

    Returns void

findLayerById

  • findLayerById(layerId: string): Layer
  • Find the Layer matching the specified Id.

    Parameters

    • layerId: string

      The Id of the Layer to find.

    Returns Layer

findLayerByName

  • findLayerByName(layerName: string): Layer

findLayerByNameAndId

  • findLayerByNameAndId(layerName: string, layerId: string): Layer
  • Find the table matching both the name and id.

    Parameters

    • layerName: string

      The name of the table

    • layerId: string

      The id of the table

    Returns Layer

findLayerOrTableById

  • findLayerOrTableById(id: string): Layer
  • Find the Layer or Table matching the specified Id. If the specified Id matches both a Layer and Table, the Layer will be returned.

    Parameters

    • id: string

      The Id of the Layer or Table to find.

    Returns Layer

findLayerOrTableByName

  • findLayerOrTableByName(name: string): Layer
  • Find the Layer or Table matching the specified name. If the specified name matches both a Layer and Table, the Layer will be returned.

    Parameters

    • name: string

      The name of the Layer or Table to find.

    Returns Layer

findLayerOrTableByNameAndId

  • findLayerOrTableByNameAndId(name: string, id: string): Layer
  • Somewhat of a workaround for the fact that names are not constrained unique (outside of the ESRI ecosystem) and ids could change This only returns a result if they both match, and this match is then almost guaranteed to be correct. However, there are cases where this won't return a match when there is one to make.

    Parameters

    • name: string
    • id: string

    Returns Layer

findServiceToken

  • findServiceToken(): string
  • Gets the access token for the map service, if there is one, by looking in a number of places.

    Returns string

findTableById

  • findTableById(tableId: string): Layer
  • Find the Table matching the specified Id.

    Parameters

    • tableId: string

      The Id of the Table to find.

    Returns Layer

findTableByName

  • findTableByName(tableName: string): Layer
  • Find the Table matching the specified name.

    Parameters

    • tableName: string

      The name of the Table to find.

    Returns Layer

findTableByNameAndId

  • findTableByNameAndId(tableName: string, tableId: string): Layer
  • Find the table matching both the name and id.

    Parameters

    • tableName: string

      The name of the table

    • tableId: string

      The id of the table

    Returns Layer

getConfiguredVisibleLayers

  • getConfiguredVisibleLayers(): string[]
  • Gets the IDs of the visible layers which were configured by the REST manager in an array.

    Note: If a layer is configured visible but is in fact not visible because its parent is not configured visible, that layer will not be included in the returned list of visible layers.

    Returns string[]

getDefaultVisibleLayers

  • getDefaultVisibleLayers(): string[]
  • Gets the IDs of the layers which are visible by default in the Esri service layer. Note: If a layer is visible by default but is in fact not visible because its parent is not visible by default, that layer will not be included in the returned list of visible layers.

    Returns string[]

getDynamicLayerInfoById

  • getDynamicLayerInfoById(layerId: string): DynamicLayerInfo
  • Gets a layers DynamicLayerInfo from the ServiceLayer by the layer's id. Works only when the underlying ServiceLayer is of esri.layers.ArcGISDynamicMapServiceLayer type.

    Parameters

    • layerId: string

      The layer id.

    Returns DynamicLayerInfo

    A DynamicLayerInfo or null if not found.

getEmptyFeatureCollection

  • getEmptyFeatureCollection(): any
  • Gets an empty feature collection that can be used when creating new FeatureLayer from a feature collection. It contains the layer definition of this Feature Layer but no actual features.

    Returns any

    An empty Feature Collection object.

getFeatureLayer

  • getFeatureLayer(): Promise<FeatureLayer>
  • Gets the feature layer associated with this service. Only applicable for single-layer service types such as feature layers and image services. For other types of services, use getFeatureLayer() on individual layers.

    Returns Promise<FeatureLayer>

getLayerThemeSettings

getRelatedFeatureLayer

  • getRelatedFeatureLayer(relationshipId: number, callbackResults: function, callbackErrors: function): Deferred
  • Returns a Feature Layer pointing to the table referenced in the specified relationship.

    Parameters

    • relationshipId: number

      The id of the relationship.

    • callbackResults: function

      The success callback to invoke if the request completes successfully.

        • (result: any): void
        • Parameters

          • result: any

          Returns void

    • callbackErrors: function

      An error callback to invoke when an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Deferred

getVisibleLayers

  • getVisibleLayers(): string[]
  • Gets the IDs of the currently visible layers in an array. Note: If a layer is currently set visible but is in fact not visible because its parent is not visible, that layer will not be included in the returned list of visible layers.

    Returns string[]

hasOriginRelationships

  • hasOriginRelationships(): boolean
  • Indicates whether the feature layer has relationships in which it is the origin. This will always be false for layer coming from a server prior to 10.1.

    Returns boolean

initialize

  • initialize(obj?: any): void
  • Initializes the {@link geocortex.essentials.AsyncInitializable}. This is an asynchronous method, you may subscribe to the onInitialized and onInitializationFailed events for completion information.

    Parameters

    • Optional obj: any

    Returns void

initiateServiceFailureTimer

  • initiateServiceFailureTimer(): void

isTiled

  • isTiled(): boolean
  • Gets whether or not this map service is Tiled (i.e. instance of esri.layers.TiledMapServiceLayer).

    Returns boolean

    true if this map service is tiled; false otherwise

isVisible

  • isVisible(): boolean

queryCount

  • queryCount(query: Query, callbackResults: function, callbackErrors: function): void
  • Returns a count of the number of features that satisfy the input query. Valid only for layers published using ArcGIS Server 10 SP1 or greater. Layers published with earlier versions of ArcGIS Server return an error to the error callback.

    The query object has the following restrictions to avoid conflicts between layer and map properties:

    • outFields specified by the query object are overridden by the outFields specified in the FeatureLayer constructor.
    • The returnGeometry value specified by the query object is ignored and true is used.
    • The outSpatialReference set by the query object is ignored and the map's spatial reference is used.

    Parameters

    • query: Query

      The input query.

    • callbackResults: function

      The success callback to invoke when the query has completed successfully.

        • (results: any): void
        • Parameters

          • results: any

          Returns void

    • callbackErrors: function

      An error callback to invoke when an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns void

queryFeatures

  • queryFeatures(query: Query, callbackResults: function, callbackErrors: function): Deferred
  • Queries features from the feature layer. Layer definition and time definition are honored. Whenever possible the feature layer will perform the query on the client.

    The query object has the following restrictions to avoid conflicts between layer and map properties:

    • outFields specified by the query object are overridden by the outFields specified in the FeatureLayer constructor.
    • The returnGeometry value specified by the query object is ignored and true is used.
    • The outSpatialReference set by the query object is ignored and the map's spatial reference is used.

    Parameters

    • query: Query

      The input query.

    • callbackResults: function

      The success callback to invoke when the query has completed successfully.

        • (results: any): void
        • Parameters

          • results: any

          Returns void

    • callbackErrors: function

      An error callback to invoke when an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Deferred

queryIds

  • queryIds(query: Query, callbackResults: function, callbackErrors: function): Deferred
  • Queries for OBJECTIDs. There is no limit on the number of OBJECTIDs that are returned from the server. Like queryFeatures this operation will perform queries on the client whenever possible. Valid only for layers published using ArcGIS Server 10 SP1 or greater.

    The query object has the following restrictions to avoid conflicts between layer and map properties:

    • outFields specified by the query object are overridden by the outFields specified in the FeatureLayer constructor.
    • The returnGeometry value specified by the query object is ignored and true is used.
    • The outSpatialReference set by the query object is ignored and the map's spatial reference is used.

    Parameters

    • query: Query

      The input query.

    • callbackResults: function

      The success callback to invoke when the query has completed successfully.

        • (results: any): void
        • Parameters

          • results: any

          Returns void

    • callbackErrors: function

      An error callback to invoke when an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Deferred

queryRelatedFeatures

  • queryRelatedFeatures(query: RelationshipQuery, callbackResults: function, callbackErrors: function): Deferred
  • Queries related features or records from another layer or table.

    Parameters

    • query: RelationshipQuery

      The input query.

    • callbackResults: function

      The success callback to invoke when the query has completed successfully.

        • (results: any): void
        • Parameters

          • results: any

          Returns void

    • callbackErrors: function

      An error callback to invoke when an error occurs.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Deferred

refresh

  • refresh(refreshTimeoutMs?: number, disableClientCaching?: boolean): void
  • Refreshes the map service by making a new request to the server.

    Parameters

    • Optional refreshTimeoutMs: number

      An optional parameter which if specified, will cause the map refresh to occur after the specified timeout. Any previous refresh timeouts will be cancelled when a new refresh timeout is set - ensuring that only one request goes out within the speicfied threshold. If undefined, the map refreshes immediately.

    • Optional disableClientCaching: boolean

      An optional parameter which, if set will disable client caching on the service layer (if supported) prior to refreshing it. Defaults to false.

    Returns void

refreshFilteredCollections

  • refreshFilteredCollections(): void

remove

  • remove(layer: Layer): void
  • Removes a Layer from the the map service. Also manipulates the Esri Layer and removes appropriate layer info and drawing options for the layer. Currently supports dynamic layers only.

    Parameters

    • layer: Layer

      A layer to remove from the map service

    Returns void

replaceFeatureLayer

  • replaceFeatureLayer(featureLayer: FeatureLayer, maintainVisibility: boolean, maintainOpacity: boolean, maintainRenderer: boolean): void
  • Replace the FeatureLayer (service layer) currently associated with this FeatureLayerService with a new one.

    Parameters

    • featureLayer: FeatureLayer

      The layer to use for the replacement.

    • maintainVisibility: boolean

      Indicate that we should maintain the same visibility setting for the new feature layer as the one being replaced.

    • maintainOpacity: boolean

      Indicate that we should maintain the same opacity setting for the new feature layer as the one being replaced.

    • maintainRenderer: boolean

      Indicate that we should maintain the same renderer for the new feature layer as the one being replaced.

    Returns void

restoreFeatureLayer

  • restoreFeatureLayer(): void
  • Restore the FeatureLayer (service layer) that was created from the Site configuration.

    Returns void

setInActiveTheme

  • setInActiveTheme(value: boolean): void
  • Sets the inActiveTheme property of the MapService. Raises the "MapServiceInActiveThemeChangedEvent" event.

    Parameters

    • value: boolean

      The value to set.

    Returns void

setOpacity

  • setOpacity(opacity: number): void
  • Sets the opacity of the FeatureLayerService.

    Parameters

    • opacity: number

      The opacity to be set, between 0.0 and 1.0 inclusive.

    Returns void

setOpacityFilter

  • setOpacityFilter(filter: number): void
  • Sets the opacity filter of the MapService.

    Parameters

    • filter: number

      The opacity filter to be set, between 0.0 and 1.0 inclusive.

    Returns void

setVisibility

  • setVisibility(visible: boolean): void
  • Sets the visibility of the MapService.

    Parameters

    • visible: boolean

      The visibility to be set (true: visible, false: hidden).

    Returns void

supportsLayerVisibility

  • supportsLayerVisibility(): boolean

toJson

  • toJson(): object
  • Exports the state of the map service as a JSON object. This can be used to recreate the layer again via createFromDefinition().

    Returns object

Static getGcxTimeInfo

  • getGcxTimeInfo(timeInfo: TimeInfo, restStartTimeOverrideString?: string, restEndTimeOverrideString?: string): TimeInfo
  • Parameters

    • timeInfo: TimeInfo
    • Optional restStartTimeOverrideString: string
    • Optional restEndTimeOverrideString: string

    Returns TimeInfo