com.esri.client.local
Class ArcGISLocalFeatureLayer

java.lang.Object
  extended by com.esri.map.Layer
      extended by com.esri.map.GraphicsLayer
          extended by com.esri.map.ArcGISFeatureLayer
              extended by com.esri.client.local.ArcGISLocalFeatureLayer
All Implemented Interfaces:
TimeAwareLayer

public class ArcGISLocalFeatureLayer
extends ArcGISFeatureLayer

Class representing an ArcGIS feature layer on the LocalServer. ArcGISLocalFeatureLayer is a type of GraphicsLayer that allows you to display, select and query graphic features which consist of geometry and attributes. Features can be edited via a LocalFeatureService. This layer is initialized with the path to a locally held map package, that is an MPK file and with the layer's integer ID or name.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.map.ArcGISFeatureLayer
ArcGISFeatureLayer.EditCapabilities, ArcGISFeatureLayer.MODE, ArcGISFeatureLayer.SELECTION_METHOD
 
Nested classes/interfaces inherited from class com.esri.map.Layer
Layer.LayerStatus
 
Field Summary
 
Fields inherited from class com.esri.map.ArcGISFeatureLayer
_isEditable
 
Fields inherited from class com.esri.map.Layer
_credentials, _progress, _resolutionList, serviceInfo
 
Constructor Summary
ArcGISLocalFeatureLayer(String path, int layer)
          Constructs from a path and a layer ID.
ArcGISLocalFeatureLayer(String path, int layer, boolean editable)
          Constructs from a path to an MPK file, a layer ID and an indication of whether features can be edited.
ArcGISLocalFeatureLayer(String path, String layer)
          Constructs from a path to an MPK file and a layer name.
ArcGISLocalFeatureLayer(String path, String layer, boolean editable)
          Constructs from a path to an MPK file, a layer name and an indication of whether features can be edited.
 
Method Summary
 int getMaximumRecords()
          Gets the maximum number of records that the feature layer can return.
 LocalMapService getSource()
          Gets the LocalMapService or LocalFeatureService to which this layer belongs to.
protected  void internalInit()
           
 void setMaximumRecords(int maxRecords)
          Sets the maximum records that the feature layer can return.
 void setUrl(String url)
          Sets the URL of the map service associated with the layer.
 
Methods inherited from class com.esri.map.ArcGISFeatureLayer
addAttachment, addAttachment, addSelectedGraphic, applyEdits, clear, clearSelection, createFeatureWithTemplate, createFeatureWithType, createFromLayerDefinition, createMode, deleteAttachments, finalize, getAttachmentURL, getAttachmentURL, getBufferFactor, getDefaultZ, getDefinitionExpression, getDisplayField, getEditCapabilities, getEditFieldsInfo, getEditInfo, getFields, getGeometryType, getLayerType, getLegendImageGeometry, getObjectIdField, getOperationMode, getOutFields, getOwnershipBasedAccessControlForFeatures, getPopupInfo, getPopupInfo, getRelationShips, getSelectedFeatures, getSubTypes, getTemplates, getTimeExtent, getTimeInfo, getTimeInterval, getTypes, hasAttachments, hasM, hasZ, initializeNativeLayer, initLayerInfo, isDefaultZEnabled, isEditable, isTable, isTimeAware, queryAttachmentInfos, queryFeatures, queryRelatedRecords, recycle, refresh, requery, retrieveAttachment, selectFeatures, setBufferFactor, setDefinitionExpression, setDynamicLayerInfo, setOperationMode, setOutFields, setTimeInterval, startlisteningToMapEvents, stopListeningToMapEvents, updateSpatialReferenceStatus, validateMapTip
 
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, setVisible, unlock
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcGISLocalFeatureLayer

public ArcGISLocalFeatureLayer(String path,
                               String layer)
Constructs from a path to an MPK file and a layer name.

Parameters:
path - Path to the data.
layer - Name of a layer.

ArcGISLocalFeatureLayer

public ArcGISLocalFeatureLayer(String path,
                               String layer,
                               boolean editable)
Constructs from a path to an MPK file, a layer name and an indication of whether features can be edited.

Parameters:
path - Path to the data.
layer - Name of a layer.
editable - True if the layer is to allow feature edits.

ArcGISLocalFeatureLayer

public ArcGISLocalFeatureLayer(String path,
                               int layer)
Constructs from a path and a layer ID.

Parameters:
path - Path to the data.
layer - ID of a layer. IDs start at 0 and are unique for each layer from the service.

ArcGISLocalFeatureLayer

public ArcGISLocalFeatureLayer(String path,
                               int layer,
                               boolean editable)
Constructs from a path to an MPK file, a layer ID and an indication of whether features can be edited.

Parameters:
path - Path to the data.
layer - ID of a layer. IDs start at 0 and are unique for each layer from the service.
editable - True if the layer is to allow edits.
Method Detail

getSource

public LocalMapService getSource()
Gets the LocalMapService or LocalFeatureService to which this layer belongs to.

Returns:
If this feature layer in not editable, returns the LocalMapService to which this layer belongs. If this feature layer is editable returns the LocalFeatureService (a subclass of LocalMapService) to which this layer belongs.

setUrl

public void setUrl(String url)
Description copied from class: Layer
Sets the URL of the map service associated with the layer.

Overrides:
setUrl in class Layer
Parameters:
url - the URL pointing to your map service.

internalInit

protected void internalInit()
Overrides:
internalInit in class ArcGISFeatureLayer

setMaximumRecords

public void setMaximumRecords(int maxRecords)
Sets the maximum records that the feature layer can return.

Parameters:
maxRecords - the number of records records

getMaximumRecords

public int getMaximumRecords()
Gets the maximum number of records that the feature layer can return.

Returns:
the maximum records


Copyright © 2012. All Rights Reserved.