public class FeatureCollection extends BaseFeatureCollection
Modifier | Constructor and Description |
---|---|
protected |
FeatureCollection(List<Feature> features)
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
static FeatureCollection |
fromFeatures(Feature[] features) |
static FeatureCollection |
fromFeatures(List<Feature> features)
Create a
FeatureCollection from a List of features. |
List<Feature> |
getFeatures()
Get the List containing all the features within collection.
|
fromJson, getType, toJson
public List<Feature> getFeatures()
public static FeatureCollection fromFeatures(List<Feature> features)
FeatureCollection
from a List of features.features
- List of Feature
FeatureCollection
public static FeatureCollection fromFeatures(Feature[] features)
© 2015–2016 Mapbox. All rights reserved.