Create a LocalFeatureLayer from a feature layer that is serialized as a FeatureCollection.
An object that contains service level metadata about whether or not the layer supports queries using statistics, order by fields, DISTINCT, pagination, query with distance, and returning queries with extents.
Returns true if the geometry of the features in the layer can be edited, false otherwise.
The URL, when available, where the layer's attribution data is stored.
Information about the capabilities enabled for this layer.
class attribute of the layer's node.
Copyright information for the layer.
Provides credential information for the layer such as userid and token if the layer represents a resource that is secured with token-based authentication.
List of attribute fields added as custom data attributes to graphics node.
Metadata describing the default definition expression for the layer as defined by the service.
Indicates the default visibility for the layer.
The description of the layer as defined in the map service.
The name of the layer's primary display field.
Indicates the field names for the editor fields.
The array of fields in the layer.
The full extent of the layer.
The geodatabase version.
Geometry type of the features in the layer.
The globalIdField for the layer.
Array of features in the layer.
True if attachments are enabled on the feature layer.
When true, the layer has attribution data.
The html popup type defined for the layer.
ID assigned to the layer.
The info template for the layer.
Label definition for this layer, specified as an array of label classes.
Unique ID of the layer that the FeatureLayer was constructed against.
Set if the layer failed to load.
When the layer is loaded, the value becomes "true", and layer properties can be accessed.
The maximum allowable offset, only applicable for layers that are not editable.
The maximum number of results that will be returned from a query.
Maximum visible scale for the layer.
Minimum visible scale for the layer.
Supports feature services whose data source is a multipatch featureclass.
The name of the layer as defined in the map service.
The name of the field that contains the Object ID field for the layer.
Opacity or transparency of layer.
Indicates the ownership access control configuration.
Refresh interval of the layer in minutes.
Each element in the array is an object that describes the layer's relationship with another layer or table.
The renderer for the layer.
When true, the layer's attribution is displayed on the map.
Determines if labels are displayed.
The dynamic layer or table source.
Indicates whether the layer is responsible for styling graphics.
When true, the layer supports orderByFields in a query operation.
When true, the layer supports uploading attachments with Uploads REST operation, which then can be used in the Add Attachment or Update Attachment REST operations.
When true, the layer supports the Calculate REST operation when updating features.
When true, the layer supports statistical functions in query operations.
Type of vector graphics surface used to draw graphics.
When true, the layer is suspended.
An array of feature templates defined in the Feature Service layer.
Time information for the layer, such as start time field, end time field, track id field, layers time extent and the draw time interval.
Specifies the type of layer.
The field that represents the Type ID field.
An array of sub types defined in the Feature Service layer.
URL to the ArcGIS Server REST resource that represents a map service.
The version of ArcGIS Server where the layer is published.
Visibility of the layer.
When true, the layer is visible at the current map scale.
Delegate to either on-demand or snapshot mode depending on the characteristics of the service.
In on-demand mode, the feature layer retrieves features from the server when needed.
In selection mode, features are retrieved from the server only when they are selected.
In snapshot mode, the feature layer retrieves all the features from the associated layer resource and displays them as graphics on the client.
The popup displays content in HTML/TEXT.
No popup type defined.
The popup displays the contents of a URL.
Adds features to the current selection set.
Creates a new selection.
Removes features from the current selection.
Adds a graphic.
The graphic to add.
Add an attachment to the feature specified by the ObjectId.
The ObjectId of the feature to which the attachment is added.
HTML form that contains a file upload field pointing to the file to be added as an attachment.
The function to call when the method has completed.
An error object is returned if an error occurs during task execution.
Apply edits to the feature layer.
Array of features to add to the layer in the feature service.
Array of features whose geometry and/or attributes have changed.
Array of features to delete.
This function will be called when the operation is complete.
An error object is returned if an error occurs.
Adds a new attribute or changes the value of an existing attribute on the layer's node.
The name of the attribute.
The value of the attribute.
Clears all graphics.
Clears the current selection.
Delete one or more attachments for the feature specified by the input ObjectId.
The ObjectId of the feature from which the attachment is removed.
The array of attachment ids to delete.
The function to call when the method has completed.
An error object is returned if an error occurs.
Disables all mouse events on the graphics layer.
Enables all mouse events on the graphics layer.
Asynchrously returns custom data for the layer when available.
Returns the current definition expression.
Returns the Domain associated with the given field name.
Name of the attribute field.
Please see the options object specification table below.
Returns an object that describes the edit capabilities of the layer.
If the layer supports ownership based access control, use the options to determine if the specified user can edit features.
Returns an object describing the most recent edit operation performed on the given feature, if available.
The feature to get the edit info for.
See the object specifications table below for the structure of the options object.
Returns a localized summary of the last edit operation performed on the given feature, if available.
The feature to get the edit summary for.
See the object specifications table below for the structure of the options object.
Returns the Field given the specified field name.
Name of the attribute field.
Returns reference to the map control the layer is added to.
Returns the current value of the maxAllowableOffset used by the layer.
Returns the layer's DOM node.
Returns the list of fields used to order features by.
Gets the currently selected features.
Gets the current selection symbol.
Get the current time definition applied to the feature layer.
Returns a FeatureType describing the feature's type.
A feature from this layer.
Returns true if geometryType is esriGeometryMultipatch and multipatchOption is xyFootprint.
Sets the visibility of the layer to "false".
Returns true if the FeatureLayer is editable.
Returns true if the layer is visible at the given scale.
The scale at which to check if the layer is visible.
Fires when addAttachments() is complete.
Fired before edits are applied to the feature layer.
Fired when the capabilities of the layer are modified using the setEditable method.
Fires when a feature has been double clicked.
Fires when deleteAttachments is complete.
Fires after applyEdits() is complete.
Fired when the geodatabase version is switched.
Fired when labeling info on the layer changes.
Fires when queryAttachmentInfos method is called.
Fires when the query for the count is complete.
Fires when queryExtent method has completed.
Fires when queryFeatures() is complete.
Fires when queryIds() is complete.
Fired when the feature layer could not draw all the features due to a maxRecordCount limitation on a query operation.
Fires when queryRelatedFeatures() is complete.
Fires when a layer resumes drawing.
Fires when a layer's minScale and/or maxScale is changed.
Fires when a layer's scale visibility changes.
Fires after clearSelection has been called.
Fires when selectFeatures() completes.
Fired when the feature layer's labels are changed.
Fires when a layer suspends drawing.
Fired when the layer has finished updating its content.
Fired when the layer begins to update its content.
Query for information about attachments associated with the specified ObjectIds.
The ObjectId for the feature to query for attachment information.
The function to call when the method has completed.
An error object is returned if an error occurs.
Get a count of the number of features that satisfy the input query.
The input query.
The function to call when the method has completed.
An error object is returned if an error occurs.
Get the extent of features that satisfy the input query.
The query definition.
The function called when the method has completed.
The function called when error occurred.
Special query handling for local feature layers, overriding queryFeatures
of the Esri API.
The Esri API allows only simple extent-based queries to be performed clientside. For more complex queries (involving polygons, for example), the Esri API will query the server.
Local feature layers, which exist in a disconnected state (no URL), have no associated server endpoint available to query.
In order to perform queries with complex geometry on local feature layers, this method performs the query with a simplified version of the geometry (an extent) which yields false positives, which we then manually filter out by using the Esri geometry engine.
Query for ObjectIds.
The input query.
The function to call when the method has completed.
An error object is returned if an error occurs.
Query features or records, from another layer or table, related to features in this layer.
The input query.
The function to call when the method has completed.
An error object is returned if an error occurs.
Redraws all the graphics in the graphics layer.
Refreshes the features in the feature layer.
Removes a graphic.
The graphic to remove.
Resumes layer drawing.
Selects features from the FeatureLayer.
The input query.
The selection method defines how the rest of the selection is combined with the existing selection.
The function to call when the method has completed.
An error object is returned if an error occurs.
Enable or disable auto generalization for the layer.
When true, auto generalize is enabled.
Sets the definition expression for the FeatureLayer.
The definition expression to apply.
Set the editability of feature layers created from a feature collection.
When true, the layer will be set as editable.
Set the layer's data source to the specified geodatabase version.
The name of the geodatabase version to use as the layer's data source.
Specify or change the info template for a layer.
The new info template.
Sets labeling info on the layer.
This is the label definition for this layer, specified as an array of label classes.
Sets the maximum allowable offset used when generalizing geometries.
The maximum allowable offset.
Set the maximum scale for the layer.
The maximum scale at which the layer is visible.
Set the minimum scale for the layer.
The minimum scale at which the layer is visible.
Initial opacity or transparency of layer.
Value from 0 to 1, where 0 is 100% transparent and 1 has no transparency.
Changes the layer's refresh interval to the given value (in minutes).
Refresh interval of the layer in minutes.
Set the renderer for the feature layer.
The renderer to apply to the feature layer
Set the scale range for the layer.
The minimum scale for the layer.
The maximum scale for the layer.
Sets the selection symbol for the feature layer.
Symbol for the current selection.
Sets whether to display labels or not.
Set to true to show labels.
Sets the time definition for the feature layer.
The new time extent used to filter the layer.
Time offset allows you to display the features at a different time so they can be overlaid on top of previous or future time periods.
The length of time to offset from "this" time.
Units in which the offset is specified.
Determine if the layer will update its content based on the map's current time extent.
When false the layer will not update its content based on the map's time extent.
Sets the visibility of the layer.
Set the visibility of the layer.
Sets the visibility of the layer to "true".
Suspends layer drawing.
Returns an easily serializable object representation of the layer.
Specialized esri feature layer that exists in a disconnected state (no URL).