FeatureCollection
Definition
A FeatureCollection
groups one or more map features together. Any events that occur on a feature in the collection will also trigger the corresponding event in the collection component. FeatureCollection
s can be loaded from external resources to populate Map
s with content. GeoJSON is the only format supported at this time.
Properties
- Features
- Gets the list of features attached to the
FeatureCollection
(without regard to the value of the feature’sVisible
property). This list also includes any features created on theFeatureCollection
by calls toFeatureFromDescription
. - FeaturesFromGeoJSON
- Populates the feature collection from a string containing GeoJSON content. Given the size of such strings, it is recommended to load the feature collection from assets or the web using the
Source
property. - Height
- Specifies the
FeatureCollection
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
FeatureCollection
’s vertical height as a percentage of theScreen
’sHeight
. - Source
- Specifies the source URL used to populate the feature collection. If the feature collection was not loaded from a URL, this will be the empty string.
- Visible
- Specifies whether the
FeatureCollection
should be visible on the screen. Value istrue
if theFeatureCollection
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
FeatureCollection
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
FeatureCollection
as a percentage of theScreen
’sWidth
.