com.esri.map
Class ArcGISFeatureLayer

java.lang.Object
  extended by com.esri.map.Layer
      extended by com.esri.map.GraphicsLayer
          extended by com.esri.map.ArcGISFeatureLayer
All Implemented Interfaces:
TimeAwareLayer
Direct Known Subclasses:
ArcGISLocalFeatureLayer, CSVLayer

public class ArcGISFeatureLayer
extends GraphicsLayer
implements TimeAwareLayer

ArcGISFeatureLayer is a type of GraphicsLayer that allows you to display, select and query graphic features which consist of geometry and attributes. FeatureLayers provide the basis of a number of functional areas of the API: definition expressions, selection, and editing functionality.


Nested Class Summary
static class ArcGISFeatureLayer.EditCapabilities
           
static class ArcGISFeatureLayer.MODE
          The feature layer can work under 3 modes.
static class ArcGISFeatureLayer.SELECTION_METHOD
          The modes used for the select features method.
 
Nested classes/interfaces inherited from class com.esri.map.Layer
Layer.LayerStatus
 
Field Summary
protected  boolean _isEditable
           
 
Fields inherited from class com.esri.map.Layer
_credentials, _progress, _resolutionList, serviceInfo
 
Constructor Summary
protected ArcGISFeatureLayer()
           
  ArcGISFeatureLayer(String url)
          Constructs a layer from a URL to a service endpoint.
  ArcGISFeatureLayer(String url, UserCredentials credentials)
          Constructs a layer from a URL and credentials for the secure service.
 
Method Summary
 void addAttachment(int objectId, File file, CallbackListener<FeatureEditResult> callback)
          Adds an attachment to the feature specified by the ObjectId.
 void addAttachment(int objectId, File file, String mime, CallbackListener<FeatureEditResult> callback)
          Adds an attachment to the feature specified by the ObjectId.
 int addSelectedGraphic(Graphic g)
           
 void applyEdits(Graphic[] adds, Graphic[] deletes, Graphic[] updates, CallbackListener<FeatureEditResult[][]> callback)
          Applies edits to the editable feature layer.
 void clear()
          Clears all selection and removes all graphics from the layer.
 void clearSelection()
          Clears the current selection.
 Graphic createFeatureWithTemplate(FeatureTemplate template, Geometry geometry)
          Creates a new feature based on the specified feature SubType and feature template.
 Graphic createFeatureWithType(FeatureType type, Geometry geometry)
          Creates a new feature based on the specified feature SubType.
static ArcGISFeatureLayer createFromLayerDefinition(String layerDef)
          Creates an empty feature layer from a layer definition.
protected  void createMode()
           
 void deleteAttachments(int objectId, int[] attachmentids, CallbackListener<FeatureEditResult[]> callback)
          Deletes one or more attachments for the feature specified by the input ObjectId.
protected  void finalize()
           
 String getAttachmentURL(Graphic graphic, int attachmentId)
          Gets the URL of an attachment.
 String getAttachmentURL(int objectId, int attachmentId)
          Gets the URL of an attachment.
 int getBufferFactor()
          Returns the factor used to calculate buffered extent.
 double getDefaultZ()
          Gets the default Z value.
 String getDefinitionExpression()
          Returns the current definition expression.
 String getDisplayField()
          Returns the name of the field that contains the Display Field for the layer.
 ArcGISFeatureLayer.EditCapabilities getEditCapabilities(Graphic graphic)
          Gets the edit capabilities.
 EditFieldsInfo getEditFieldsInfo()
          Gets the edit fields info.
 EditInfo getEditInfo(Graphic graphic, EditInfo.ACTION_TYPE action)
          Gets the available editing information for the graphic.
 Field[] getFields()
          Gets the fields.
 Geometry.Type getGeometryType()
          Gets the type of the geometry holding by the feature layer.
protected  String getLayerType()
           
protected  Geometry getLegendImageGeometry()
           
 String getObjectIdField()
          Returns the name of the field that contains the ObjectID field for the layer.
 QueryMode getOperationMode()
          Gets the operation mode.
 String[] getOutFields()
          The array of field names included in the feature layer based on the ArcGISFeatureLayer.Options.outFields parameter.
 OwnershipBasedAccessControlForFeatures getOwnershipBasedAccessControlForFeatures()
          Gets the ownership based access control for features.
 com.esri.core.map.popup.PopupInfo getPopupInfo()
          Gets the PopupInfo associated with this feature layer.
 ArcGISPopupInfo getPopupInfo(int sublayerId)
           
 List<LayerRelationship> getRelationShips()
          Gets any relationships the layer participates in with other layers / tables
 Graphic[] getSelectedFeatures()
          Returns the selected features.
 FeatureType[] getSubTypes()
          Gets the sub-types.
 List<FeatureTemplate> getTemplates()
          Gets the templates.
 TimeExtent getTimeExtent()
          Gets the valid TimeExtent object for the Layer or null if this service does not support time based queries.
 TimeInfo getTimeInfo()
          Get all the time awareness information for this layer.
 TimeExtent getTimeInterval()
          Get the current date/time range that this layer is filtered by.
 FeatureType[] getTypes()
          Returns an array of feature types defined in the feature service layer.
 boolean hasAttachments()
          True if attachments are enabled by the service on the feature layer.
 boolean hasM()
          Checks if M values are supported.
 boolean hasZ()
          Checks if Z values are supported.
protected  void initializeNativeLayer()
           
protected  Layer initLayerInfo(boolean useServiceRenderer)
           
protected  void internalInit()
           
 boolean isDefaultZEnabled()
          Checks if is default Z is enabled.
 boolean isEditable()
          Returns true if the feature layer is editable.
 boolean isTable()
          Indicates whether this layer is defined as a table by the service.
 boolean isTimeAware()
          Indicates whether or not this particular layer instance is time aware.
 void queryAttachmentInfos(int objectId, CallbackListener<AttachmentInfo[]> callback)
          Queries for information about attachments associated with the specified ObjectIds.
 void queryFeatures(Query query, CallbackListener<FeatureSet> callback)
          Query features from the feature layer.
 void queryRelatedRecords(int[] objectIds, int relationshipId, String[] outFields, boolean returnGeometry, CallbackListener<Map<Integer,FeatureSet>> callback)
          Query related records.
 void recycle()
          Releases resources referenced by the Layer so that they can be recycled.
 void refresh()
          Based on the mode of the feature layer, the method call can update the graphics from the associate service or refresh the layer from local cache.
 void requery()
          Refreshes this layer with features from the server.
 InputStream retrieveAttachment(int objectId, int attachmentId)
          Fetches the contents of the specified attachment.
 void selectFeatures(Query query, ArcGISFeatureLayer.SELECTION_METHOD selectionMethod, CallbackListener<FeatureSet> callback)
          Selects features from the feature layer.
 void setBufferFactor(int bufferFactor)
          Sets the factor used to calculate buffered extent.
 void setDefinitionExpression(String expression)
          Sets the definition expression of the feature layer.
 void setDynamicLayerInfo(DynamicLayerInfo dynamicLayerInfo)
          Set the Dynamic Layer information required to use this feature layer with a layer in a map service.
 void setOperationMode(QueryMode queryMode)
          Sets the operation mode.
 void setOutFields(String[] outFields)
          An array of field names to include in the feature layer.
 void setTimeInterval(TimeExtent timeInterval)
          Set the current date/time range that this layer will be filtered by.
protected  void startlisteningToMapEvents(JMap map)
          Starts this layer listening to map events.
protected  void stopListeningToMapEvents(JMap map)
          Stops this layer listening to map events.
protected  void updateSpatialReferenceStatus(int SRStatus)
           
protected  void validateMapTip(MapTip mapTip)
          Validates maptip.
 
Methods inherited from class com.esri.map.GraphicsLayer
addGraphic, addGraphics, attributesToJson, bringToFront, createNativeLayer, createSymbolImage, createSymbolImages, generateLegendInfo, getGraphic, getGraphicIDs, getGraphicIDs, getGraphicIDs, getLegend, getLegendImageGeometryByType, getMapTip, getMaxDrawOrder, getMaxScale, getMinDrawOrder, getMinScale, getNumberOfGraphics, getRenderer, getSelectionColor, getSelectionIDs, getSelectionSymbol, init, initLayer, isGraphicSelected, movePointGraphic, removeAll, removeGraphic, select, sendToBack, setGraphicVisible, setMapTip, setMaxScale, setMinScale, setRenderer, setSelectionColor, setSelectionIDs, setSelectionSymbol, unselect, updateGraphic, updateGraphic, updateGraphic, updateGraphic, updateGraphic, updateGraphic, updateGraphic, updateGraphic
 
Methods inherited from class com.esri.map.Layer
addLayerInitializeCompleteListener, fireLayerCreateCompleteEvent, fireLayerCreateErrorEvent, fireLayerCreateErrorEvent, getCopyrightText, getCredentialsInternal, getDefaultSpatialReference, getDescription, getException, getExtent, getFullExtent, getInitialExtent, getInitializationError, getLayerHandle, getMap, getMapServer, getMapServerInfo, getMapServerLegendInfo, getName, getOpacity, getResolution, getResolutionList, getServiceDescription, getSpatialReference, getStatus, getUrl, getUrlHashCode, initializeAsync, internalGetLayerLegendInfos, isHidingNoDataTiles, isInitialized, isReady, isShowingCopyright, isVisible, loadServiceInfo, lock, reinitializeAsync, removeLayerInitializeCompleteListener, setCopyrightText, setCredentials, setDefaultSpatialReference, setDescription, setError, setException, setFullExtent, setInitialExtent, setLayerHandle, setMap, setMapServer, setName, setOpacity, setPopupInfos, setServiceDescription, setShowingCopyright, setStatus, setUrl, setVisible, unlock
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_isEditable

protected boolean _isEditable
Constructor Detail

ArcGISFeatureLayer

public ArcGISFeatureLayer(String url)
Constructs a layer from a URL to a service endpoint.

Parameters:
url - the url

ArcGISFeatureLayer

public ArcGISFeatureLayer(String url,
                          UserCredentials credentials)
Constructs a layer from a URL and credentials for the secure service.

Parameters:
url - the url
credentials - the credentials

ArcGISFeatureLayer

protected ArcGISFeatureLayer()
Method Detail

createFromLayerDefinition

public static ArcGISFeatureLayer createFromLayerDefinition(String layerDef)
Creates an empty feature layer from a layer definition. Feature layer is not initialized.

Parameters:
layerDef - the layer definition
Returns:
the feature layer

internalInit

protected void internalInit()
Overrides:
internalInit in class GraphicsLayer

getOperationMode

public QueryMode getOperationMode()
Gets the operation mode.

Returns:
QueryMode

setOperationMode

public void setOperationMode(QueryMode queryMode)
Sets the operation mode. Set this before the layer is initialized.

Parameters:
queryMode -

validateMapTip

protected void validateMapTip(MapTip mapTip)
Description copied from class: GraphicsLayer
Validates maptip.

Overrides:
validateMapTip in class GraphicsLayer
Parameters:
mapTip - maptip to be validated.

createMode

protected void createMode()

initLayerInfo

protected Layer initLayerInfo(boolean useServiceRenderer)
                       throws Exception
Parameters:
parser -
useServiceRenderer -
Throws:
Exception

initializeNativeLayer

protected void initializeNativeLayer()
Overrides:
initializeNativeLayer in class GraphicsLayer

getDefinitionExpression

public String getDefinitionExpression()
Returns the current definition expression.

Returns:
the definition.
See Also:
setDefinitionExpression(String)

setDefinitionExpression

public void setDefinitionExpression(String expression)
Sets the definition expression of the feature layer. Only the features that match the definition expression are displayed. A definition expression limits the features available for display and queries by applying constraints to the layer's attribute fields. Setting a definition expression is useful when the dataset is large and you don't want to bring everything to the client for analysis. This method is typically called before adding the layer to the map. If the method is called after the layer is added to the map the layer will refresh itself to reflect the new definition expression.

Parameters:
expression - the definition expression.

getBufferFactor

public int getBufferFactor()
Returns the factor used to calculate buffered extent. When in ONDEMAND mode, you have a choice to fetch the features within current extent or buffered extent. The buffer is calculated as:

width = extent.width * (bufferFactor * 2 + 1);

height = extent.height * (bufferFactor * 2 + 1);

By default it is 1 (100%).


setBufferFactor

public void setBufferFactor(int bufferFactor)
Sets the factor used to calculate buffered extent. When in ONDEMAND mode, you have a choice to fetch the features within current extent or buffered extent. The buffered extent is calculated as: width = extent.width * bufferFactor * 2 + 1); height = extent.height * (bufferFactor * 2 + 1);

By default it is 1 (100%).


getSubTypes

public FeatureType[] getSubTypes()
Gets the sub-types.

Returns:
The sub-types.

getFields

public Field[] getFields()
Gets the fields.

Returns:
The fields.

refresh

public void refresh()
Based on the mode of the feature layer, the method call can update the graphics from the associate service or refresh the layer from local cache.


selectFeatures

public void selectFeatures(Query query,
                           ArcGISFeatureLayer.SELECTION_METHOD selectionMethod,
                           CallbackListener<FeatureSet> callback)
Selects features from the feature layer. The selection method defines how query results are passed to the selection. The feature layer will highlight the current selection if a selection symbol has been defined. Whenever possible, the feature layer will perform the query operation on the client side. Note that the input geometry for the query must be in the spatial reference of the feature service. In order for this to be the case, the input geometry must be projected manually to the service's spatial reference; the Query class' setters for the input and output spatial reference of the query do not accomplish this.

Parameters:
query - The input query.
selectionMethod - the selection mode.
callback - The function to call when the method is completed or on error.

getSelectedFeatures

public Graphic[] getSelectedFeatures()
Returns the selected features.

Returns:
the selected features.

clearSelection

public void clearSelection()
Clears the current selection.

Overrides:
clearSelection in class GraphicsLayer

addAttachment

public void addAttachment(int objectId,
                          File file,
                          CallbackListener<FeatureEditResult> callback)
Adds an attachment to the feature specified by the ObjectId. Only applicable if isEditable() and hasAttachments() are true.

Parameters:
objectId - The ObjectId of the feature to which the attachment is added.
file - The path of the attachment on the device.
callback - The path of the attachment on the device.

addAttachment

public void addAttachment(int objectId,
                          File file,
                          String mime,
                          CallbackListener<FeatureEditResult> callback)
Adds an attachment to the feature specified by the ObjectId. Only applicable if isEditable() and hasAttachments() are true.

Parameters:
objectId - The ObjectId of the feature to which the attachment is added.
file - The path of the attachment on the device.
mime - the content-type to send the file. e.g. text/plain. When mime is omitted the content-type is determined by the file extension of the attachment. By default the content-type is "application/octet-stream".
callback - The path of the attachment on the device.

deleteAttachments

public void deleteAttachments(int objectId,
                              int[] attachmentids,
                              CallbackListener<FeatureEditResult[]> callback)
Deletes one or more attachments for the feature specified by the input ObjectId. Only applicable if isEditable() and hasAttachments() are true.

Parameters:
objectId - The ObjectId of the feature from which the attachment is removed.
attachmentids - The ObjectId of the feature from which the attachment is removed.
callback - This listener will be called when the operation is complete or on error.

queryAttachmentInfos

public void queryAttachmentInfos(int objectId,
                                 CallbackListener<AttachmentInfo[]> callback)
Queries for information about attachments associated with the specified ObjectIds.

Parameters:
objectId - The ObjectId of the feature upon which the attachment information is queried.
callback - This listener will be called when the operation is complete or on error.

applyEdits

public void applyEdits(Graphic[] adds,
                       Graphic[] deletes,
                       Graphic[] updates,
                       CallbackListener<FeatureEditResult[][]> callback)
Applies edits to the editable feature layer. Only applicable for layers in a feature service.
  • For new features, the applyEdit will submit all the features to server side. If succeed, all of the new features will be updated with the OID and GID and will be added to the layer graphics.
  • For updating and deleting, the graphics will be adjusted based on the response.

    Parameters:
    adds - Apply edits to the feature layer. Only applicable for layers in a feature service.
    deletes - Array of features to be deleted. Features must have valid ObjectIds.
    updates - Array of features whose geometry and/or attributes have changed. Features must have valid ObjectIds. The geometry of features is typically modified using the Editing tools. Attributes are modified using the Attribute Inspector.
    callback - This listener will be called when the operation is complete or on error.

  • isEditable

    public boolean isEditable()
    Returns true if the feature layer is editable. If the layer is editable the following operations can be performed.
  • Add new features.
  • Modify the geometry and attributes of existing features.
  • Delete features. You need to wait until the layer initialization is done before calling this method.

    Returns:
    true if it is editable or false otherwise.

  • queryFeatures

    public void queryFeatures(Query query,
                              CallbackListener<FeatureSet> callback)
    Query features from the feature layer. Layer definition and time definition are honored. Whenever possible the feature layer will perform the query on the client.

    Parameters:
    query - The input query. 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 feature layer 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.
    callback - The function to call when the method has completed.

  • createFeatureWithTemplate

    public Graphic createFeatureWithTemplate(FeatureTemplate template,
                                             Geometry geometry)
    Creates a new feature based on the specified feature SubType and feature template. Note, the new feature is only available on the device at this point, it is not committed to the server.

    Parameters:
    template - the feature template to use while creating the feature.
    geometry - the geometry to create the Graphic.
    Returns:
    the Graphic with the given geometry and the template.

    createFeatureWithType

    public Graphic createFeatureWithType(FeatureType type,
                                         Geometry geometry)
    Creates a new feature based on the specified feature SubType. Note, the new feature is only available on the device at this point, it is not committed to the server. This method uses the first template in the feature type.

    Parameters:
    type - the type of feature to create.
    geometry - the geometry to create the Graphic.
    Returns:
    the Graphic with the given geometry and the template (defined in the type).

    getTypes

    public FeatureType[] getTypes()
    Returns an array of feature types defined in the feature service layer. Only applicable for ArcGIS Server feature service layers.

    Returns:
    the array of FeatureType.

    getTemplates

    public List<FeatureTemplate> getTemplates()
    Gets the templates.

    Returns:
    The templates.

    getOutFields

    public String[] getOutFields()
    The array of field names included in the feature layer based on the ArcGISFeatureLayer.Options.outFields parameter. If none are specified, in the Options class then the feature layer will return all fields and this methods will return null. If "*" was specified in the Options class this method will return ["*"]. If some field names are set in the Options class, but the ObjectId field was not included it will be included in the feature layer and will also be returned in this String array.

    Returns:
    the name of the fields
    See Also:
    Options

    getObjectIdField

    public String getObjectIdField()
    Returns the name of the field that contains the ObjectID field for the layer.

    Returns:
    the name of the field.

    getDisplayField

    public String getDisplayField()
    Returns the name of the field that contains the Display Field for the layer.

    Returns:
    the name of the field.

    setOutFields

    public void setOutFields(String[] outFields)
    An array of field names to include in the feature layer. If not specified, the feature layer will return all fields. The ObjectId field should always be returned.

    If the renderer of the layer is depended on some fields, those fields should also be specified in this list. For example, when the layer has a Unique Value Render which is using the value of the field "FieldA" to create symbol of graphics. The "FieldA" then must be specified in the outField list, otherwise the graphics may not be properly rendered.

    Parameters:
    outFields - the name of the fields.

    hasAttachments

    public boolean hasAttachments()
    True if attachments are enabled by the service on the feature layer. Use the queryAttachmentInfos(int, CallbackListener) method to determine if the feature has attachments, then you can retrieve an attachment. If the layer is editable (isEditable()) and supports attachments the following operations can be performed.
  • Add attachments to features.
  • Delete existing attachments.


  • retrieveAttachment

    public InputStream retrieveAttachment(int objectId,
                                          int attachmentId)
                                   throws Exception
    Fetches the contents of the specified attachment. Please make sure call the InputStream.close() after you get the data.

    Parameters:
    objectId - the ObjectId of the feature to which the attachment belongs.
    attachmentId - the ID of the attachment to fetch.
    Throws:
    Exception

    clear

    public void clear()
    Clears all selection and removes all graphics from the layer.


    getGeometryType

    public Geometry.Type getGeometryType()
    Gets the type of the geometry holding by the feature layer. You should not call this method until the layer is initialized.

    Returns:
    the geometry type or null if not initialized.

    hasZ

    public boolean hasZ()
    Checks if Z values are supported.

    Returns:
    true, if successful

    hasM

    public boolean hasM()
    Checks if M values are supported.

    Returns:
    true, if successful

    isDefaultZEnabled

    public boolean isDefaultZEnabled()
    Checks if is default Z is enabled.

    Returns:
    true, if is default Z enabled

    getDefaultZ

    public double getDefaultZ()
    Gets the default Z value.

    Returns:
    the default Z value

    finalize

    protected void finalize()
                     throws Throwable
    Overrides:
    finalize in class Layer
    Throws:
    Throwable

    recycle

    public void recycle()
    Description copied from class: Layer
    Releases resources referenced by the Layer so that they can be recycled.

    Overrides:
    recycle in class GraphicsLayer

    updateSpatialReferenceStatus

    protected void updateSpatialReferenceStatus(int SRStatus)
    Overrides:
    updateSpatialReferenceStatus in class Layer

    addSelectedGraphic

    public int addSelectedGraphic(Graphic g)

    setDynamicLayerInfo

    public void setDynamicLayerInfo(DynamicLayerInfo dynamicLayerInfo)
    Set the Dynamic Layer information required to use this feature layer with a layer in a map service. This allows the feature layer to be created from a given datasource in the map service and using the given drawing information.

    Parameters:
    dynamicLayerInfo - the dynamic layer information to set

    getTimeExtent

    public TimeExtent getTimeExtent()
    Description copied from interface: TimeAwareLayer
    Gets the valid TimeExtent object for the Layer or null if this service does not support time based queries.

    Specified by:
    getTimeExtent in interface TimeAwareLayer
    Returns:
    the valid range of dates for this layer.

    getTimeInterval

    public TimeExtent getTimeInterval()
    Description copied from interface: TimeAwareLayer
    Get the current date/time range that this layer is filtered by.

    Specified by:
    getTimeInterval in interface TimeAwareLayer
    Returns:
    the current date/time range

    setTimeInterval

    public void setTimeInterval(TimeExtent timeInterval)
    Description copied from interface: TimeAwareLayer
    Set the current date/time range that this layer will be filtered by.

    Specified by:
    setTimeInterval in interface TimeAwareLayer
    Parameters:
    timeInterval - the new date/time range

    getTimeInfo

    public TimeInfo getTimeInfo()
    Description copied from interface: TimeAwareLayer
    Get all the time awareness information for this layer.

    Specified by:
    getTimeInfo in interface TimeAwareLayer
    Returns:

    isTimeAware

    public boolean isTimeAware()
    Description copied from interface: TimeAwareLayer
    Indicates whether or not this particular layer instance is time aware.

    Specified by:
    isTimeAware in interface TimeAwareLayer
    Returns:
    True if this is a time aware layer, false otherwise.

    requery

    public void requery()
    Refreshes this layer with features from the server.


    startlisteningToMapEvents

    protected void startlisteningToMapEvents(JMap map)
    Starts this layer listening to map events.

    Parameters:
    map - The map to listen to.

    stopListeningToMapEvents

    protected void stopListeningToMapEvents(JMap map)
    Stops this layer listening to map events.

    Parameters:
    map - The map to stop listening to.

    queryRelatedRecords

    public void queryRelatedRecords(int[] objectIds,
                                    int relationshipId,
                                    String[] outFields,
                                    boolean returnGeometry,
                                    CallbackListener<Map<Integer,FeatureSet>> callback)
    Query related records.

    Parameters:
    objectIds - the object IDs to query for
    relationshipId - the relationship id
    outFields - the out fields
    returnGeometry - true to return geometry in the result
    callback - the call back executed when the query completes

    isTable

    public boolean isTable()
    Indicates whether this layer is defined as a table by the service. Table items have no geometry.

    Returns:
    True if the layer is a table.

    getRelationShips

    public List<LayerRelationship> getRelationShips()
    Gets any relationships the layer participates in with other layers / tables

    Returns:
    the relation ships

    getAttachmentURL

    public String getAttachmentURL(Graphic graphic,
                                   int attachmentId)
    Gets the URL of an attachment.

    Parameters:
    graphic - the graphic
    attachmentId - the attachment id
    Returns:
    the URL

    getAttachmentURL

    public String getAttachmentURL(int objectId,
                                   int attachmentId)
    Gets the URL of an attachment.

    Parameters:
    objectId - the object id
    attachmentId - the attachment id
    Returns:
    the URL

    getLayerType

    protected String getLayerType()
    Overrides:
    getLayerType in class GraphicsLayer

    getLegendImageGeometry

    protected Geometry getLegendImageGeometry()
    Overrides:
    getLegendImageGeometry in class GraphicsLayer

    getEditFieldsInfo

    public EditFieldsInfo getEditFieldsInfo()
    Gets the edit fields info.

    Returns:
    the editFieldsInfo

    getOwnershipBasedAccessControlForFeatures

    public OwnershipBasedAccessControlForFeatures getOwnershipBasedAccessControlForFeatures()
    Gets the ownership based access control for features.

    Returns:
    the ownershipBasedAccessControlForFeatures

    getEditInfo

    public EditInfo getEditInfo(Graphic graphic,
                                EditInfo.ACTION_TYPE action)
    Gets the available editing information for the graphic.

    Parameters:
    graphic - the graphic to check.
    action - the editing action.
    Returns:
    the editing information for the given graphic.

    getEditCapabilities

    public ArcGISFeatureLayer.EditCapabilities getEditCapabilities(Graphic graphic)
    Gets the edit capabilities.

    Parameters:
    graphic - the graphic
    Returns:
    the edit capabilities

    getPopupInfo

    public com.esri.core.map.popup.PopupInfo getPopupInfo()
    Gets the PopupInfo associated with this feature layer.

    Returns:
    PopupInfo
    Since:
    1.0

    getPopupInfo

    public ArcGISPopupInfo getPopupInfo(int sublayerId)
    Overrides:
    getPopupInfo in class Layer


    Copyright © 2012. All Rights Reserved.