FeatureManager<T> constructor

FeatureManager<T>(
  1. {@required String sourceId,
  2. @required String layerId,
  3. @required MapboxMap map,
  4. FeatureTapCallback onTap}
)

Implementation

FeatureManager({
  @required this.sourceId,
  @required this.layerId,
  @required this.map,
  this.onTap,
}) {
  var featureSource = GeoJsonSource(data: FeatureCollection(features: []));
  map.addSource(sourceId, featureSource);
  initLayer();
  _initClickHandler();
  _initDragHandler();
}