GraphicFeatureLayer
Base Type: DataObjectTable
A class that represents a layer in the map.
Property |
Type |
Description |
---|---|---|
GeometryFieldName |
string |
The name of the geometry field. |
GeometryType |
The type of geometry. | |
LayerDrawingDescription |
Returns information on the layers symbols and labels. | |
MaxScale |
int |
The maximum scale for the layer. |
MinScale |
int |
The minimum scale for the layer |
SpatialExtent |
The spatial extent of the layer. | |
SpatialReference |
The spatial reference of the layer. | |
Symbol |
The symbol used if the layer has a simple value renderer. |
Remarks
If IsScaleDependent is true, MinScale and MaxScale constitute the scale limits in which features are shown in a map.
Getting the type and template information depends on the renderer. For layers with a simple value renderer, class breaks renderer or tables without subtypes, you get the templates directly from DataObjectTable.Templates. For layers with a unique value renderer or tables with subtypes, you get the types and templates using DataObjectTable.Types. TemplateInfo.Prototype can be used to get information about how each template is defined including the fields in the template and the default values. The GraphicFeatureLayer.LayerDrawingDescription can be used get to determine the renderer of a layer and to get the symbols.