Constructor
(abstract) new GeoJSONBase()
Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
Methods
(abstract, protected) _getNativeFeatures(nativeFeaturesData) → {Array.<Object>}
Parses an object and return an array of the
parsed features. If no feature has been parsed it may return an
empty array.
Parameters:
Name | Type | Description |
---|---|---|
nativeFeaturesData |
Object |
Returns:
List of native features to be added
- Type
- Array.<Object>
(protected) _handleFeatureClicked(nativeFeature)
Callback executed when a native feature has been clicked.
It receives the feature as parameter, and emits a 'featureClick'
event with the wrapped feature as event data.
Parameters:
Name | Type | Description |
---|---|---|
nativeFeature |
Object | Feature to be wrapped and sent |
(abstract, protected) _wrapNativeFeature(nativeFeature) → {Object}
Wraps a native feature.
Parameters:
Name | Type | Description |
---|---|---|
nativeFeature |
Object |
Returns:
Wrapped native feature
- Type
- Object
addData(nativeFeaturesData)
Receives an object with native features data and tries
to parse it with the implemented method _getNativeFeatures.
If the generated Array of native features is not empty, it fires
a 'featuresAdded' event.
Parameters:
Name | Type | Description |
---|---|---|
nativeFeaturesData |
Object | Data to be processed. |