public class VectorSource extends Source
counter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
VectorSource(List<Feature> features)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VectorSource |
addFeature(Feature feature)
Adds a feature to the list of features for this data source.
|
VectorSource |
features(List<Feature> features)
Sets the list of features for this source.
|
List<Feature> |
getFeatures()
Returns a list of features for this source.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
VectorSource |
removeFeature(Feature feature)
Removes a feature from the list of features for this layer.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setFeatures(List<Feature> features)
Sets the list of features for this source.
|
escapeQuoteJs, getJsId, getJsIdWithSuffixpublic List<Feature> getFeatures()
public void setFeatures(List<Feature> features)
features - List of Feature instancespublic VectorSource features(List<Feature> features)
features - List of Feature instancespublic VectorSource addFeature(Feature feature)
feature - Feature to add to this layerpublic VectorSource removeFeature(Feature feature)
feature - Feature instance to removepublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class Sourcepublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class SourceCopyright © 2015. All rights reserved.