Initializes a new instance of the FeatureLayerService class.
The URL of the service.
Occurs when initialization of this object fails.
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.
Whether or not the map service is initially visible.
The URL, when available, where the layer's attribution data is stored.
The base map group that this service belongs to, if applicable.
The zero-based index of this map service within its base map group, if applicable.
Indicates whether the base map group that this service belongs to allows only one base map to be selected at a time.
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.
Whether or not the FeatureLayerService is editable and supports feature additions.
Whether or not the {@link geocortex.essentials.FeatureLayerService} can add attachments to features.
Whether or not the FeatureLayerService is editable and supports feature deletions.
Whether or not the FeatureLayerService is editable.
Whether or not the FeatureLayerService is editable and supports feature updates.
The catalog id
The clustering Layer object.
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 .
The initial opacity defined in the Site.
The initial visibility defined in the Site. This will be True if the default is to have the map service visible, false otherwise.
The attribution information for the layer.
The default data provider (e.g. "Oracle", "SqlServer") for all layers in this map service.
The default format string used for formatting date values originating from this map service.
The default format string used for formatting numeric values originating from this map service.
Description of the map service.
Whether or not to disable caching of the FeatureLayerService on the client.
The display name of the MapService.
The drawing behavior of this map service. One of:
Are the vertices of the geometry of the features in this feature layer are editable.
The Map that the MapService belongs to.
The Layer object for exploded clusters.
Any extensions of the MapService, as defined by the administrator on the server.
The failure action, which describes how the end user application should deal with a failed service.
The timeout (in seconds) before this mapService will be deemed to have failed
Boolean indicating whether the map service has timed out yet. This does not, in itself indicate an error. Subsequent resolution is possible.
Used to indicate what the MapService is capable of and is currently doing regarding clustering
The URL of the geometry service.
If the current map service has attribution data or not
Indicates whether this instance has layer catalog.
The heap map settings for this map service.
URI to an icon representation of this map service, for display in client applications.
The ID of the MapService.
Whether or not this mapService can be identified in the client application.
Format in which images will be drawn.
Observable indicating whether this map service is in the active theme or not.
Whether or not the catalog items for this mapService should be included in identify results or not.
Whether or not to include this map service in the layer lists of client applications.
Whether or not the mosaic dataset values for this mapService should be included in identify results or not.
Gets the error that occurred during initialization of the service layer, or null if there were no errors during initialization.
Indicates whether the map service is searchable through Instant Search.
Whether or not the map service will be expanded by default when shown in a layer list.
Whether or not the object was successfully initialized.
Indicates whether or not the service layer (Esri's native layer) has been loaded.
Boolean indicating whether this map service is time aware or not
Indicates whether or not a mapService was created by a user at runtime
A collection of LayerHyperlinks associated with this map service.
A collection containing the layer theme settings for this map service.
The collection of Layer objects.
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
The logical function of the MapService, either Base or Operational.
The type of MapService.
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.*
A maximum scale value that overrides the map service's defined maximum scale.
A minimum scale value that overrides the map service's defined minimum scale.
Whether or not the features geometry can be edited and moved on the map.
The size of the client cache Note not used currently in esri JS API, so ignored.
function invoked when the failure timeout threshold is exceeded
The opacity of the map service.
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.
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.
The original URL of the Essentials map service REST endpoint.
The outFields configuration parameter
The properties of the MapService, as defined by the administrator on the server.
The proxy URL for this service.
Represents an esri.layers.FeatureLayer MODE type. One of:
The renderer as defined by the Site.
The request encoding for a WMTS service. Can be KVP or RESTful.
Whether the features geometry can rotated or not.
Can the geometry of the features in this feature layer can be scaled.
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.
The map server version for the service host.
A unique identifier for the service.
The security token that must be provided when requesting the service from ArcGIS Server.
The URL of the map service published by ArcGIS Server.
The short display name for the map service.
The {@link geocortex.essentials.Site} that this resource belongs to.
The set of subdomains to use in a WebTiledLayer tile request.
Whether or not the map service supports dynamic layers.
The collection of table objects.
The size of the virtual tiles used in on-demand mode
The URL used to retrieve tile images in the case of a RESTful WMTS service, which may be a URL template.
The size of the virtual tiles used in on-demand mode
Controls format of requests to time aware OGC services, as they don't follow the esri map settings. "Disabled", "Instant", or "Range"
The time information for this map service - if it is time aware.
The IANA ID of the time zone in which the data in this layer's fields are current.
The URL that this resource was initialized from.
The type of user created layer. One of:
Only applies to layers created at runtime.
The {@link esri.layers.FeatureLayer} WHERE clause expression.
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.
A Layer to add to the map service
Adds the layers specified by the layer catalog details to the map service.
The details.
A list of the layers that were added.
Converts the map service to use to dynamic layers. This will only have an effect if the map service supports dynamic layers.
Populates the map service from a dynamic object which represents a map service.
An object which represents the map service.
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.
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.
The callback function to execute when this instance has been initialized.
Find the Layer matching the specified Id.
The Id of the Layer to find.
Find the table matching both the name and id.
The name of the table
The id of the table
Find the Layer or Table matching the specified Id. If the specified Id matches both a Layer and Table, the Layer will be returned.
The Id of the Layer or Table to find.
Find the Layer or Table matching the specified name. If the specified name matches both a Layer and Table, the Layer will be returned.
The name of the Layer or Table to find.
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.
Gets the access token for the map service, if there is one, by looking in a number of places.
Find the Table matching the specified Id.
The Id of the Table to find.
Find the Table matching the specified name.
The name of the Table to find.
Find the table matching both the name and id.
The name of the table
The id of the table
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.
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.
Gets a layers DynamicLayerInfo from the ServiceLayer by the layer's id. Works only when the underlying ServiceLayer is of esri.layers.ArcGISDynamicMapServiceLayer type.
The layer id.
A DynamicLayerInfo or null if not found.
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.
An empty Feature Collection object.
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.
Retrieves the layer theme settings for this mapService by specified layer theme or layer theme id
Returns a Feature Layer pointing to the table referenced in the specified relationship.
The id of the relationship.
The success callback to invoke if the request completes successfully.
An error callback to invoke when an error occurs.
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.
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.
Initializes the {@link geocortex.essentials.AsyncInitializable}. This is an asynchronous method, you may subscribe to the onInitialized and onInitializationFailed events for completion information.
Gets whether or not this map service is Tiled (i.e. instance of esri.layers.TiledMapServiceLayer).
true if this map service is tiled; false otherwise
Gets whether the MapService is currently visible.
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:
The input query.
The success callback to invoke when the query has completed successfully.
An error callback to invoke when an error occurs.
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:
The input query.
The success callback to invoke when the query has completed successfully.
An error callback to invoke when an error occurs.
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:
The input query.
The success callback to invoke when the query has completed successfully.
An error callback to invoke when an error occurs.
Queries related features or records from another layer or table.
The input query.
The success callback to invoke when the query has completed successfully.
An error callback to invoke when an error occurs.
Refreshes the map service by making a new request to the server.
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.
An optional parameter which, if set will disable client caching on the service layer (if supported) prior to refreshing it. Defaults to false.
Refreshes the layersFilteredView collection.
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.
A layer to remove from the map service
Replace the FeatureLayer (service layer) currently associated with this FeatureLayerService with a new one.
The layer to use for the replacement.
Indicate that we should maintain the same visibility setting for the new feature layer as the one being replaced.
Indicate that we should maintain the same opacity setting for the new feature layer as the one being replaced.
Indicate that we should maintain the same renderer for the new feature layer as the one being replaced.
Restore the FeatureLayer (service layer) that was created from the Site configuration.
Sets the inActiveTheme property of the MapService. Raises the "MapServiceInActiveThemeChangedEvent" event.
The value to set.
Sets the opacity of the FeatureLayerService.
The opacity to be set, between 0.0 and 1.0 inclusive.
Sets the opacity filter of the MapService.
The opacity filter to be set, between 0.0 and 1.0 inclusive.
Sets the visibility of the MapService.
The visibility to be set (true: visible, false: hidden).
Returns whether or not this service supports layer visibility.
Exports the state of the map service as a JSON object. This can be used to recreate the layer again via createFromDefinition().
Represents an ArcGIS feature layer. The properties in this class represent the configuration served from the Essentials REST API.