Constructor
new Feature()
- Since:
- Source:
Extends
Members
defaults :Object
Default attributes for Feature models
Type:
Properties:
| Name |
Type |
Description |
properties |
Object
|
Property names (keys) and property values
(values) for properties set on this feature. For example, the properties that
would be in an attributes table for a shapefile. |
mapAsset |
MapAsset
|
If the feature is part of a Map Asset, then the
model for that asset. For example, if this is a feature if a 3D tileset, then
the Cesium3DTileset map asset model. |
featureID |
string
|
number
|
An ID that's used to identify this feature
in the map. It should be unique among all map features. (In Cesium, this is the
Pick ID key.) |
featureObject |
*
|
The object that a Map widget uses to represent this
feature in the map. For example, in Cesium this could be a
Cesium.Cesium3DTileFeature or a Cesium.Entity. |
label |
string
|
An optional friendly label or name for this feature. |
- Source:
type :string
The name of this type of model
Type:
- Source:
Methods
isDefault() → {boolean}
Checks if the attributes for this model are only the default attributes.
- Source:
Returns:
Returns true if all of the attributes are equal to the
default attributes, false otherwise.
-
Type
-
boolean
setToDefault()
Clears all the model attributes and sets them to the default values. This will
trigger a change event. No event is triggered if all of the value are already
set to default.
- Source: