FeatureTemplate class final

A feature template defines the default attribute values for the fields of a newly created ArcGISFeature and suggests a type of drawing tool to sketch the feature's geometry.

The owner of the ArcGIS feature service can define one or more feature templates when they publish the service. These are held within the "Templates" tag of the ArcGIS feature service's REST Services Directory. Each template has a name, description, suggested drawing tool, and a list of attributes with their initial values (called prototype). You can obtain the feature service's collection of feature templates from the ArcGISFeatureTable.featureTemplates. Alternatively, if you are using a FeatureType, you can obtain its templates from FeatureType.templates. Use ArcGISFeatureTable.createFeatureWithTemplate to create a feature with the feature template.

If you are building an editing application, you can present users with a list of feature templates. Upon choosing a template, the app can create a feature with the attributes populated with their default values and present geometry sketching tools to match the FeatureTemplate.drawingTool.

Implemented types

Properties

description String
The description of the feature template.
no setter
drawingTool DrawingTool
The type of drawing tool that could be used to draw this feature in an editing application.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the feature template.
no setter
prototypeAttributes Map<String, dynamic>
The default attribute values used when creating a feature.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited