# Class: FlowCoreDataSource
# Hierarchy
- FlowCoreDataSource
# Constructors
# constructor
+ new FlowCoreDataSource(options
: FlowCoreMapDataSourceOptions): FlowCoreDataSource
# Parameters:
Name | Type |
---|---|
options | FlowCoreMapDataSourceOptions |
Returns: FlowCoreDataSource
# Properties
# id
• id: string
# type
• type: string
# Accessors
# maplibreSourceDef
• get maplibreSourceDef(): maplibregl.AnySourceData
Returns: maplibregl.AnySourceData
# src
• get src(): string | FeatureCollection
Returns: string | FeatureCollection
• set src(src
: string | FeatureCollection): void
# Parameters:
Name | Type |
---|---|
src | string | FeatureCollection |
Returns: void
# Methods
# closeAllPopups
▸ closeAllPopups(): void
Close all selection popups.
Returns: void
# closePopup
▸ closePopup(featureId
: string | number): void
Close the selection popup for the specified feature.
# Parameters:
Name | Type | Description |
---|---|---|
featureId | string | number | Feature ID |
Returns: void
# openPopup
▸ openPopup(feature
: maplibregl.MapboxGeoJSONFeature, clickedPoint?
: [number, number]): void
Open a selection popup for the specified feature.
For point features, clickedPoint is ignored and the popup is opened at the feature point.
For LineStrings, the popup is opened at the closest point on the line to the clicked point.
For Polygons, the popup is opened at the clicked point.
If clicked point is not specified then the feature centroid is used.
# Parameters:
Name | Type | Description |
---|---|---|
feature | maplibregl.MapboxGeoJSONFeature | Map feature |
clickedPoint? | [number, number] | Lng/Lat of clicked point. |
Returns: void
# Object literals
# defaultOptions
▪ Static
defaultOptions: object
# Properties:
Name | Type | Value |
---|---|---|
cluster | false | false |
clusterMaxZoom | number | 20 |
clusterRadius | number | 50 |
selectionClear | false | false |
selectionMode | "none" | "none" |
type | string | "vector" |