Initializes a new instance of the {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.Feature} class.
The options for the new Feature. (i.e. graphic / layer / resolveLayerFields / allowUnsafeContent)
Get the attachment infos associated with the feature.
Indicates that the attachmentInfos collection has been initialized.
The attributes for the Feature.
The border color of the Feature.
The border width of the Feature.
the features related data links
The default format to use for displaying date fields that have no explicit format.
The default format to use for displaying number fields that have no explicit format.
The description for the Feature.
The description format this Feature uses to render a description.
The IANA ID of the time zone in which this feature's field data will be displayed. Primarily used as a fallback when the FieldInfo object cannot access the appropriate ID.
Gets the Esri feature attached to the Geocortex feature.
The extended properties for the Feature.
The esri feature layer associated with the feature.
The last featureSet that this feature was added to.
The unique id's of the featureSets (if any) that currently contain this feature. With the introduction of Save Selections, it is now possible for a feature to be added to multiple feature sets simultaneously. The id of the latest featureSet that this feature is added to will be added to the end of the arrray. This array is automatically managed when this feature is added to or removed from a featureSet.
The fill color of the Feature.
Gets a value indicating whether the feature has attachments.
Gets a value indicating whether the feature has geometry attached.
Gets a value indicating whether the feature has relationships.
Gets a value indicating whether the feature has a valid geometry attached.
Gets a value indicating whether the feature has visible relationships.
The hyperlinks associated with the feature (if any)
Observable public members - Layer config overrides
The id of the Feature.
Whether the feature attribute data has been locally modified.
The label for the Feature.
The label format this Feature uses to render a label.
The Layer this Feature is a part of.
linked data associated with a feature's linked attributes
The long description for the Feature.
The long description format this Feature uses to render a long description.
The configured max scale of the Feature.
The configured min scale of the Feature.
The plain label for the Feature, stripped of any HTML.
Will be true when this feature is added to the starred selection. Is not flagged for any other result set. Note that creating a Feature via the constructor will set up bindings on this observable such that setting or unsetting it will also add/remove from the starred selection.
The IANA ID of the time zone in which this feature's field data are current. Primarily used as a fallback when the FieldInfo object cannot access the appropriate ID.
The token that should uniquely identify this feature for a specific application instance and run
The zoom extent of the Feature.
The zoom factor of the Feature.
The zoom scale of the Feature.
We will not wait for any tokens that take longer than this to resolve
Calculates a scale at which the layer would be visible if it's not already.
The scale
The scale at which the layer is visible, calculated to zoom in or out just enough such that the layer would be visible. If the layer is already visible, the current map scale is returned.
Checks if the given Geocortex essentials feature is equal to this feature
The method formatTemplateString was made public to be consistent with silverlight viewer. It is used by Hyperlink class "geocortex.essentialsHtmlViewer.mapping.modules.FeatureDetails.FeatureDetailsProviders.Hyperlink". Note that this will not populate any async replacement values, and the consumer will have to update later if these are needed.
A string containing replacement tokens to be processed.
An optional observable to update with any async values as they come in.
Use this version if you can, it returns a promise which will always resolve with the correct and final result.
A string containing replacement tokens to be processed.
Returns a set of all of the attributes associated with this feature
boolean: Whether we should look at the layers fields to resolve the names.
array an of FeatureAttribute objects where we have attempted to resolve the names using this feature
Takes a collection of attributes from an Esri Graphic (feature) and returns a collection of feature attributes with the proper naming.
attribute Collection of name value pairs to which we will attempt to resolve names using this feature
Whether or not we should attempt to resolve the layers fields. Defaults to true.
Finds the extended property matching the specified name.
The name of the property to find.
Gets the Url to the feature.
Url to the Esri feature.
Gets the value of the primary key field (ObjectID)
Value of the primary key field.
Gets the feature's type as defined by its feature layer.
Load the feature attributes with proper naming
Whether or not we should attempt to resolve the layers fields. Defaults to true.
Process the fieldName into a dataLink/attributeName pair
String containing the value of datalink ID and attribute name
Empty map object used to store the datalink ID and attribute name
Given a replacement token find an appropriate replacement value and return it as a string or a promise of a string in the case of async operations.
The token to replace
Clears the attachmentInfos and forces a re-query of all the attachments from the server the next attachmentInfos.get() is called.
Sets the extended property matching the specified name.
The name of the property to update.
The property value.
Determines whether a Geocortex essentials feature is structurally equal to the current instance.
Structural equality means that two objects are equal because they have equal values.
It differs from reference equality, which indicates that two object references are equal because they reference the same physical object.
Note: This comparison does not take geometry into account
true
if the two objects are equal; otherwise, false
.
Same as above but only returns true if the scale is below the min scale (not zoomed out too far)
Determines if the specified scale is within this layer's min and max scale.
The scale value to test if it is between this layer's min and max scale. If a value is not provided for this parameter, then the map's current scale value will be used.
Observable view model for an ESRI Feature.