Class: GeoJSONBase

(abstract) GeoJSONBase()

GeoJSONBase Allows adding controls (called features) to the map, that produce diverse actions. For example, a button for centering the map view will act as a feature.

Constructor

(abstract) new GeoJSONBase()

Source:

Members

(static, non-null) STATE :Object

State definition.
Type:
  • Object
Source:

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
Source:
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
Source:

(abstract, protected) _wrapNativeFeature(nativeFeature) → {Object}

Wraps a native feature.
Parameters:
Name Type Description
nativeFeature Object
Source:
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.
Source: