@emuanalytics/flow-rdf-core 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +6 -6
- package/dist/lib/map/plugins/index.cjs +8 -6
- package/dist/lib/map/plugins/index.d.cts +8 -8
- package/dist/lib/map/plugins/index.d.mts +8 -8
- package/dist/lib/map/plugins/index.d.ts +8 -8
- package/dist/lib/map/plugins/index.mjs +7 -5
- package/dist/shared/{flow-rdf-core.04b30d7a.d.cts → flow-rdf-core.dd931ace.d.cts} +17 -17
- package/dist/shared/{flow-rdf-core.04b30d7a.d.mts → flow-rdf-core.dd931ace.d.mts} +17 -17
- package/dist/shared/{flow-rdf-core.04b30d7a.d.ts → flow-rdf-core.dd931ace.d.ts} +17 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
|
|
|
35
35
|
const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
|
|
36
36
|
const lzString__default = /*#__PURE__*/_interopDefaultCompat(lzString);
|
|
37
37
|
|
|
38
|
-
const version = "4.0.
|
|
38
|
+
const version = "4.0.1";
|
|
39
39
|
|
|
40
40
|
const CONSOLE_HIGHLIGHT_STYLE$1 = `
|
|
41
41
|
padding: 2px 4px;
|
|
@@ -2286,7 +2286,7 @@ var __publicField$3 = (obj, key, value) => {
|
|
|
2286
2286
|
};
|
|
2287
2287
|
const debug$1 = Debug__default("flow:map");
|
|
2288
2288
|
const MOUSE_MOVE_THROTTLE_DURATION = 100;
|
|
2289
|
-
const
|
|
2289
|
+
const _FlowCoreMap = class _FlowCoreMap extends EventEmitter__default {
|
|
2290
2290
|
constructor(options) {
|
|
2291
2291
|
super();
|
|
2292
2292
|
__publicField$3(this, "_context");
|
|
@@ -2315,7 +2315,7 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
|
|
|
2315
2315
|
});
|
|
2316
2316
|
this._options = {
|
|
2317
2317
|
id: randomId.randomId("map"),
|
|
2318
|
-
...
|
|
2318
|
+
..._FlowCoreMap._defaultOptions,
|
|
2319
2319
|
...options
|
|
2320
2320
|
};
|
|
2321
2321
|
this._style = new MapStyle();
|
|
@@ -2717,12 +2717,12 @@ const _FlowMap = class _FlowMap extends EventEmitter__default {
|
|
|
2717
2717
|
return requestParameters;
|
|
2718
2718
|
}
|
|
2719
2719
|
};
|
|
2720
|
-
__publicField$3(
|
|
2720
|
+
__publicField$3(_FlowCoreMap, "_defaultOptions", {
|
|
2721
2721
|
boxZoom: false,
|
|
2722
2722
|
doubleClickZoom: false,
|
|
2723
2723
|
featureClickTolerance: 0
|
|
2724
2724
|
});
|
|
2725
|
-
let
|
|
2725
|
+
let FlowCoreMap = _FlowCoreMap;
|
|
2726
2726
|
|
|
2727
2727
|
var __defProp$2 = Object.defineProperty;
|
|
2728
2728
|
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -3258,7 +3258,7 @@ exports.DEFAULT_CONTEXT_ID = DEFAULT_CONTEXT_ID;
|
|
|
3258
3258
|
exports.FillExtrusionLayerStyleBuilder = FillExtrusionLayerStyleBuilder;
|
|
3259
3259
|
exports.FillLayerStyleBuilder = FillLayerStyleBuilder;
|
|
3260
3260
|
exports.FlowContext = FlowContext;
|
|
3261
|
-
exports.
|
|
3261
|
+
exports.FlowCoreMap = FlowCoreMap;
|
|
3262
3262
|
exports.FlowRdfCoreGlobals = FlowRdfCoreGlobals;
|
|
3263
3263
|
exports.HeatmapLayerStyleBuilder = HeatmapLayerStyleBuilder;
|
|
3264
3264
|
exports.HillshadeLayerStyleBuilder = HillshadeLayerStyleBuilder;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.
|
|
2
|
-
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder,
|
|
1
|
+
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.dd931ace.cjs';
|
|
2
|
+
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.dd931ace.cjs';
|
|
3
3
|
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
4
|
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
5
|
import '@emuanalytics/flow-engine-client';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.
|
|
2
|
-
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder,
|
|
1
|
+
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.dd931ace.mjs';
|
|
2
|
+
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.dd931ace.mjs';
|
|
3
3
|
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
4
|
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
5
|
import '@emuanalytics/flow-engine-client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.
|
|
2
|
-
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder,
|
|
1
|
+
import { A as Annotation, S as StateStore, F as FlowContextOptions, a as FlowContext, M as MapStyleSpecification, b as MapDataSource, c as MapLayer } from './shared/flow-rdf-core.dd931ace.js';
|
|
2
|
+
export { B as BackgroundLayerStyleBuilder, C as CircleLayerStyleBuilder, D as DEFAULT_CONTEXT_ID, i as FillExtrusionLayerStyleBuilder, g as FillLayerStyleBuilder, K as FlowCoreMap, e as FlowEngineEndpoint, H as HeatmapLayerStyleBuilder, k as HillshadeLayerStyleBuilder, L as LineLayerStyleBuilder, x as MapAnimationOptions, y as MapCenterOptions, u as MapDataSourceOptions, v as MapDataSourceSpecification, t as MapDataSourceType, z as MapFeature, E as MapFeatureIdentifier, w as MapGeojsonData, q as MapLayerExpression, p as MapLayerOptions, s as MapLayerPropertyMetadataIndex, r as MapLayerSpecification, m as MapLayerStyleBuilder, f as MapLayerType, J as MapOptions, G as MapPaddingOptions, d as MapRegistry, I as MapSourceIdentifier, a3 as Path, a4 as PathValue, N as Query, V as QueryAttribute, _ as QueryDefinition, a0 as QueryDefinitionFn, X as QueryExtraParams, $ as QueryOptions, Y as QueryOrderClause, Q as QueryRegistry, U as QueryResultFormat, a1 as QueryResultTransformFn, Z as QuerySampleOptions, W as QueryWhereClauses, j as RasterLayerStyleBuilder, R as ReactiveExpression, a7 as SerializationFormat, a6 as StoreAnnotations, a5 as StoreConstructor, n as StyleExpression, h as SymbolLayerStyleBuilder, o as expr, l as layerStyle, O as query, P as queryMany, T as queryOne, a2 as traceReaction } from './shared/flow-rdf-core.dd931ace.js';
|
|
3
3
|
export { IDisposer, IObservableStream, ISubscription } from 'mobx-utils';
|
|
4
4
|
export { makeAutoObservable, makeObservable } from 'mobx';
|
|
5
5
|
import '@emuanalytics/flow-engine-client';
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import lzString from 'lz-string';
|
|
|
15
15
|
import 'parsimmon';
|
|
16
16
|
import 'colorbrewer';
|
|
17
17
|
|
|
18
|
-
const version = "4.0.
|
|
18
|
+
const version = "4.0.1";
|
|
19
19
|
|
|
20
20
|
const CONSOLE_HIGHLIGHT_STYLE$1 = `
|
|
21
21
|
padding: 2px 4px;
|
|
@@ -2266,7 +2266,7 @@ var __publicField$3 = (obj, key, value) => {
|
|
|
2266
2266
|
};
|
|
2267
2267
|
const debug$1 = Debug("flow:map");
|
|
2268
2268
|
const MOUSE_MOVE_THROTTLE_DURATION = 100;
|
|
2269
|
-
const
|
|
2269
|
+
const _FlowCoreMap = class _FlowCoreMap extends EventEmitter {
|
|
2270
2270
|
constructor(options) {
|
|
2271
2271
|
super();
|
|
2272
2272
|
__publicField$3(this, "_context");
|
|
@@ -2295,7 +2295,7 @@ const _FlowMap = class _FlowMap extends EventEmitter {
|
|
|
2295
2295
|
});
|
|
2296
2296
|
this._options = {
|
|
2297
2297
|
id: randomId("map"),
|
|
2298
|
-
...
|
|
2298
|
+
..._FlowCoreMap._defaultOptions,
|
|
2299
2299
|
...options
|
|
2300
2300
|
};
|
|
2301
2301
|
this._style = new MapStyle();
|
|
@@ -2697,12 +2697,12 @@ const _FlowMap = class _FlowMap extends EventEmitter {
|
|
|
2697
2697
|
return requestParameters;
|
|
2698
2698
|
}
|
|
2699
2699
|
};
|
|
2700
|
-
__publicField$3(
|
|
2700
|
+
__publicField$3(_FlowCoreMap, "_defaultOptions", {
|
|
2701
2701
|
boxZoom: false,
|
|
2702
2702
|
doubleClickZoom: false,
|
|
2703
2703
|
featureClickTolerance: 0
|
|
2704
2704
|
});
|
|
2705
|
-
let
|
|
2705
|
+
let FlowCoreMap = _FlowCoreMap;
|
|
2706
2706
|
|
|
2707
2707
|
var __defProp$2 = Object.defineProperty;
|
|
2708
2708
|
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -3226,4 +3226,4 @@ const initializeContext = globalContextRegistry.initializeContext.bind(globalCon
|
|
|
3226
3226
|
const uninitializeContext = globalContextRegistry.uninitializeContext.bind(globalContextRegistry);
|
|
3227
3227
|
const getContext = globalContextRegistry.getContext.bind(globalContextRegistry);
|
|
3228
3228
|
|
|
3229
|
-
export { BackgroundLayerStyleBuilder, CircleLayerStyleBuilder, ContextRegistry, DEFAULT_CONTEXT_ID, FillExtrusionLayerStyleBuilder, FillLayerStyleBuilder, FlowContext,
|
|
3229
|
+
export { BackgroundLayerStyleBuilder, CircleLayerStyleBuilder, ContextRegistry, DEFAULT_CONTEXT_ID, FillExtrusionLayerStyleBuilder, FillLayerStyleBuilder, FlowContext, FlowCoreMap, FlowRdfCoreGlobals, HeatmapLayerStyleBuilder, HillshadeLayerStyleBuilder, LineLayerStyleBuilder, MapDataSource, MapLayer, MapLayerStyleBuilder, MapRegistry, MapStyle, Query, QueryRegistry, RasterLayerStyleBuilder, ReactiveExpression, StateStore, StyleExpression, SymbolLayerStyleBuilder, computed, expr, getContext, getGlobalState, initializeContext, isolateGlobalState, layerStyle, observable, query, queryMany, queryOne, serialize, traceReaction, uninitializeContext };
|
|
@@ -11,8 +11,8 @@ const Debug = require('debug');
|
|
|
11
11
|
const featureTypeChecks = require('../../../shared/flow-rdf-core.a82b9be4.cjs');
|
|
12
12
|
const randomId = require('../../../shared/flow-rdf-core.f50908f0.cjs');
|
|
13
13
|
const EventEmitter = require('eventemitter3');
|
|
14
|
-
const lit = require('lit-html');
|
|
15
14
|
const maplibre = require('@emuanalytics/maplibre-gl');
|
|
15
|
+
const lit = require('lit-html');
|
|
16
16
|
const turfCircle = require('@turf/circle');
|
|
17
17
|
const turfDistance = require('@turf/distance');
|
|
18
18
|
const helpers = require('@turf/helpers');
|
|
@@ -47,8 +47,8 @@ const turfBuffer__default = /*#__PURE__*/_interopDefaultCompat(turfBuffer);
|
|
|
47
47
|
const turfLength__default = /*#__PURE__*/_interopDefaultCompat(turfLength);
|
|
48
48
|
const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
|
|
49
49
|
const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
|
|
50
|
-
const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
|
|
51
50
|
const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
|
|
51
|
+
const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
|
|
52
52
|
const turfCircle__default = /*#__PURE__*/_interopDefaultCompat(turfCircle);
|
|
53
53
|
const turfDistance__default = /*#__PURE__*/_interopDefaultCompat(turfDistance);
|
|
54
54
|
const saveAs__default = /*#__PURE__*/_interopDefaultCompat(saveAs);
|
|
@@ -1424,15 +1424,17 @@ const _DataJoin = class _DataJoin {
|
|
|
1424
1424
|
this.autorunDisposer = mobx.autorun(
|
|
1425
1425
|
async () => {
|
|
1426
1426
|
let data = this.dataExpression ? mobx.toJS(this.dataExpression.value) : this.options.data;
|
|
1427
|
-
const missingParams = this.options.parameters.map(
|
|
1428
|
-
(p) => p.required && randomId.isNil(this.parameterExpressions[p.name].value) ? p.name : void 0
|
|
1429
|
-
).filter((p) => !!p);
|
|
1427
|
+
const missingParams = this.options.parameters.map((p) => p.required && randomId.isNil(this.parameterExpressions[p.name].value) ? p.name : void 0).filter((p) => !!p);
|
|
1430
1428
|
if (randomId.isNull(data)) {
|
|
1431
1429
|
debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null data)`);
|
|
1432
1430
|
return;
|
|
1433
1431
|
}
|
|
1434
1432
|
if (missingParams.length) {
|
|
1435
|
-
debug$1(
|
|
1433
|
+
debug$1(
|
|
1434
|
+
`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(
|
|
1435
|
+
", "
|
|
1436
|
+
)})`
|
|
1437
|
+
);
|
|
1436
1438
|
return;
|
|
1437
1439
|
}
|
|
1438
1440
|
debug$1(`FlowMap<${this.map.id}>: Performing data join '${this.id}'`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as MapEvent, K as
|
|
2
|
-
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.
|
|
1
|
+
import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.dd931ace.cjs';
|
|
2
|
+
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.dd931ace.cjs';
|
|
3
3
|
import { F as Func } from '../../../shared/flow-rdf-core.63162669.cjs';
|
|
4
4
|
import EventEmitter from 'eventemitter3';
|
|
5
5
|
import * as lit from 'lit-html';
|
|
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
|
|
|
61
61
|
activeFeatureId: string | null;
|
|
62
62
|
activeFeatureType: AnnotationFeatureType | null;
|
|
63
63
|
features: AnnotationFeature[];
|
|
64
|
-
constructor(type: AnnotationEventType, map:
|
|
64
|
+
constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
type SelectionEventType = 'selectionChanged';
|
|
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
|
|
|
72
72
|
source: string;
|
|
73
73
|
sourceLayer?: string;
|
|
74
74
|
features: MapFeatureId[];
|
|
75
|
-
constructor(type: SelectionEventType, map:
|
|
75
|
+
constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
type SelectionMode = 'single' | 'multi' | 'none';
|
|
@@ -182,13 +182,13 @@ interface DataJoinParameter {
|
|
|
182
182
|
}
|
|
183
183
|
declare class DataJoin {
|
|
184
184
|
readonly id: string;
|
|
185
|
-
readonly map:
|
|
185
|
+
readonly map: FlowCoreMap;
|
|
186
186
|
private static defaultOptions;
|
|
187
187
|
private autorunDisposer;
|
|
188
188
|
private dataExpression;
|
|
189
189
|
private options;
|
|
190
190
|
private parameterExpressions;
|
|
191
|
-
constructor(id: string, map:
|
|
191
|
+
constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
|
|
192
192
|
get source(): string;
|
|
193
193
|
start(): void;
|
|
194
194
|
stop(): void;
|
|
@@ -281,7 +281,7 @@ interface MapPopupOptions {
|
|
|
281
281
|
* @noInheritDoc
|
|
282
282
|
*/
|
|
283
283
|
declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
284
|
-
readonly map:
|
|
284
|
+
readonly map: FlowCoreMap;
|
|
285
285
|
readonly options: MapPopupOptions;
|
|
286
286
|
private _feature?;
|
|
287
287
|
private _contentContainer;
|
|
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
|
296
296
|
* @param map Parent Flo.w map.
|
|
297
297
|
* @param options Popup options.
|
|
298
298
|
*/
|
|
299
|
-
constructor(map:
|
|
299
|
+
constructor(map: FlowCoreMap, options: MapPopupOptions);
|
|
300
300
|
get feature(): MapFeatureIdentifier | undefined;
|
|
301
301
|
/**
|
|
302
302
|
* Close the popup.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as MapEvent, K as
|
|
2
|
-
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.
|
|
1
|
+
import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.dd931ace.mjs';
|
|
2
|
+
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.dd931ace.mjs';
|
|
3
3
|
import { F as Func } from '../../../shared/flow-rdf-core.63162669.mjs';
|
|
4
4
|
import EventEmitter from 'eventemitter3';
|
|
5
5
|
import * as lit from 'lit-html';
|
|
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
|
|
|
61
61
|
activeFeatureId: string | null;
|
|
62
62
|
activeFeatureType: AnnotationFeatureType | null;
|
|
63
63
|
features: AnnotationFeature[];
|
|
64
|
-
constructor(type: AnnotationEventType, map:
|
|
64
|
+
constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
type SelectionEventType = 'selectionChanged';
|
|
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
|
|
|
72
72
|
source: string;
|
|
73
73
|
sourceLayer?: string;
|
|
74
74
|
features: MapFeatureId[];
|
|
75
|
-
constructor(type: SelectionEventType, map:
|
|
75
|
+
constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
type SelectionMode = 'single' | 'multi' | 'none';
|
|
@@ -182,13 +182,13 @@ interface DataJoinParameter {
|
|
|
182
182
|
}
|
|
183
183
|
declare class DataJoin {
|
|
184
184
|
readonly id: string;
|
|
185
|
-
readonly map:
|
|
185
|
+
readonly map: FlowCoreMap;
|
|
186
186
|
private static defaultOptions;
|
|
187
187
|
private autorunDisposer;
|
|
188
188
|
private dataExpression;
|
|
189
189
|
private options;
|
|
190
190
|
private parameterExpressions;
|
|
191
|
-
constructor(id: string, map:
|
|
191
|
+
constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
|
|
192
192
|
get source(): string;
|
|
193
193
|
start(): void;
|
|
194
194
|
stop(): void;
|
|
@@ -281,7 +281,7 @@ interface MapPopupOptions {
|
|
|
281
281
|
* @noInheritDoc
|
|
282
282
|
*/
|
|
283
283
|
declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
284
|
-
readonly map:
|
|
284
|
+
readonly map: FlowCoreMap;
|
|
285
285
|
readonly options: MapPopupOptions;
|
|
286
286
|
private _feature?;
|
|
287
287
|
private _contentContainer;
|
|
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
|
296
296
|
* @param map Parent Flo.w map.
|
|
297
297
|
* @param options Popup options.
|
|
298
298
|
*/
|
|
299
|
-
constructor(map:
|
|
299
|
+
constructor(map: FlowCoreMap, options: MapPopupOptions);
|
|
300
300
|
get feature(): MapFeatureIdentifier | undefined;
|
|
301
301
|
/**
|
|
302
302
|
* Close the popup.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a8 as MapEvent, K as
|
|
2
|
-
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.
|
|
1
|
+
import { a8 as MapEvent, K as FlowCoreMap, I as MapSourceIdentifier, a9 as MapFeatureId, aa as MapPluginBase, ab as PluginManager, ac as MapSourceEvent, ad as MapMouseEvent, ae as MapFeatureStream, af as PartialBy, x as MapAnimationOptions, ag as MapStyleChangeEvent, M as MapStyleSpecification, S as StateStore, E as MapFeatureIdentifier, z as MapFeature } from '../../../shared/flow-rdf-core.dd931ace.js';
|
|
2
|
+
export { ak as EventHandlers, aj as PluginConstructor, ai as PluginEventsType, ah as PluginOptionsType } from '../../../shared/flow-rdf-core.dd931ace.js';
|
|
3
3
|
import { F as Func } from '../../../shared/flow-rdf-core.63162669.js';
|
|
4
4
|
import EventEmitter from 'eventemitter3';
|
|
5
5
|
import * as lit from 'lit-html';
|
|
@@ -61,7 +61,7 @@ declare class AnnotationEvent extends MapEvent<AnnotationEventType> {
|
|
|
61
61
|
activeFeatureId: string | null;
|
|
62
62
|
activeFeatureType: AnnotationFeatureType | null;
|
|
63
63
|
features: AnnotationFeature[];
|
|
64
|
-
constructor(type: AnnotationEventType, map:
|
|
64
|
+
constructor(type: AnnotationEventType, map: FlowCoreMap, data: AnnotationEventData);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
type SelectionEventType = 'selectionChanged';
|
|
@@ -72,7 +72,7 @@ declare class SelectionEvent extends MapEvent<SelectionEventType> implements Map
|
|
|
72
72
|
source: string;
|
|
73
73
|
sourceLayer?: string;
|
|
74
74
|
features: MapFeatureId[];
|
|
75
|
-
constructor(type: SelectionEventType, map:
|
|
75
|
+
constructor(type: SelectionEventType, map: FlowCoreMap, sourceIdentifier: MapSourceIdentifier, features: MapFeatureId[]);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
type SelectionMode = 'single' | 'multi' | 'none';
|
|
@@ -182,13 +182,13 @@ interface DataJoinParameter {
|
|
|
182
182
|
}
|
|
183
183
|
declare class DataJoin {
|
|
184
184
|
readonly id: string;
|
|
185
|
-
readonly map:
|
|
185
|
+
readonly map: FlowCoreMap;
|
|
186
186
|
private static defaultOptions;
|
|
187
187
|
private autorunDisposer;
|
|
188
188
|
private dataExpression;
|
|
189
189
|
private options;
|
|
190
190
|
private parameterExpressions;
|
|
191
|
-
constructor(id: string, map:
|
|
191
|
+
constructor(id: string, map: FlowCoreMap, options: DataJoinOptions);
|
|
192
192
|
get source(): string;
|
|
193
193
|
start(): void;
|
|
194
194
|
stop(): void;
|
|
@@ -281,7 +281,7 @@ interface MapPopupOptions {
|
|
|
281
281
|
* @noInheritDoc
|
|
282
282
|
*/
|
|
283
283
|
declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
284
|
-
readonly map:
|
|
284
|
+
readonly map: FlowCoreMap;
|
|
285
285
|
readonly options: MapPopupOptions;
|
|
286
286
|
private _feature?;
|
|
287
287
|
private _contentContainer;
|
|
@@ -296,7 +296,7 @@ declare class MapPopup extends EventEmitter<MapPopupEvents> {
|
|
|
296
296
|
* @param map Parent Flo.w map.
|
|
297
297
|
* @param options Popup options.
|
|
298
298
|
*/
|
|
299
|
-
constructor(map:
|
|
299
|
+
constructor(map: FlowCoreMap, options: MapPopupOptions);
|
|
300
300
|
get feature(): MapFeatureIdentifier | undefined;
|
|
301
301
|
/**
|
|
302
302
|
* Close the popup.
|
|
@@ -10,8 +10,8 @@ import Debug from 'debug';
|
|
|
10
10
|
import { c as isPolygon, i as isLineString, b as isPoint } from '../../../shared/flow-rdf-core.1f0901c5.mjs';
|
|
11
11
|
import { d as isDefined, j as isArray, g as isStringFull, x as isFunction, f as isString, e as ensureArray, o as isNumber, A as randomId, z as isURL, k as isArrayFull, b as isNil, a as isNull, m as isObject } from '../../../shared/flow-rdf-core.25e5f6d7.mjs';
|
|
12
12
|
import EventEmitter$1, { EventEmitter } from 'eventemitter3';
|
|
13
|
-
import * as lit from 'lit-html';
|
|
14
13
|
import maplibre from '@emuanalytics/maplibre-gl';
|
|
14
|
+
import * as lit from 'lit-html';
|
|
15
15
|
import turfCircle from '@turf/circle';
|
|
16
16
|
import turfDistance from '@turf/distance';
|
|
17
17
|
import { point } from '@turf/helpers';
|
|
@@ -1395,15 +1395,17 @@ const _DataJoin = class _DataJoin {
|
|
|
1395
1395
|
this.autorunDisposer = autorun(
|
|
1396
1396
|
async () => {
|
|
1397
1397
|
let data = this.dataExpression ? toJS(this.dataExpression.value) : this.options.data;
|
|
1398
|
-
const missingParams = this.options.parameters.map(
|
|
1399
|
-
(p) => p.required && isNil(this.parameterExpressions[p.name].value) ? p.name : void 0
|
|
1400
|
-
).filter((p) => !!p);
|
|
1398
|
+
const missingParams = this.options.parameters.map((p) => p.required && isNil(this.parameterExpressions[p.name].value) ? p.name : void 0).filter((p) => !!p);
|
|
1401
1399
|
if (isNull(data)) {
|
|
1402
1400
|
debug$1(`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null data)`);
|
|
1403
1401
|
return;
|
|
1404
1402
|
}
|
|
1405
1403
|
if (missingParams.length) {
|
|
1406
|
-
debug$1(
|
|
1404
|
+
debug$1(
|
|
1405
|
+
`FlowMap<${this.map.id}>: Skipping data join '${this.id}' (null required parameters: ${missingParams.join(
|
|
1406
|
+
", "
|
|
1407
|
+
)})`
|
|
1408
|
+
);
|
|
1407
1409
|
return;
|
|
1408
1410
|
}
|
|
1409
1411
|
debug$1(`FlowMap<${this.map.id}>: Performing data join '${this.id}'`);
|
|
@@ -1559,10 +1559,10 @@ interface MapEventTypes {
|
|
|
1559
1559
|
type MapEventType = keyof MapEventTypes;
|
|
1560
1560
|
declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
|
|
1561
1561
|
type: EventType;
|
|
1562
|
-
map:
|
|
1562
|
+
map: FlowCoreMap;
|
|
1563
1563
|
originalEvent?: TOrig;
|
|
1564
|
-
static fromMaplibreEvent(type: string, map:
|
|
1565
|
-
constructor(type: EventType, map:
|
|
1564
|
+
static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
|
|
1565
|
+
constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
|
|
1566
1566
|
}
|
|
1567
1567
|
type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
|
|
1568
1568
|
declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
@@ -1575,24 +1575,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
|
1575
1575
|
*/
|
|
1576
1576
|
lngLat: [number, number];
|
|
1577
1577
|
features: MapFeature[];
|
|
1578
|
-
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map:
|
|
1579
|
-
constructor(type: MapMouseEventType, map:
|
|
1578
|
+
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
|
|
1579
|
+
constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
|
|
1580
1580
|
}
|
|
1581
1581
|
type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
|
|
1582
1582
|
declare class MapSourceEvent extends MapEvent<SourceEventType> {
|
|
1583
1583
|
source: string;
|
|
1584
|
-
constructor(type: SourceEventType, map:
|
|
1584
|
+
constructor(type: SourceEventType, map: FlowCoreMap, source: string);
|
|
1585
1585
|
}
|
|
1586
1586
|
type LoadingEventType = 'loading';
|
|
1587
1587
|
declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
|
|
1588
1588
|
loading: boolean;
|
|
1589
|
-
constructor(map:
|
|
1589
|
+
constructor(map: FlowCoreMap, loading: boolean);
|
|
1590
1590
|
}
|
|
1591
1591
|
type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
|
|
1592
1592
|
declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
|
|
1593
1593
|
oldStyle: MapStyleSpecification;
|
|
1594
1594
|
newStyle: MapStyleSpecification;
|
|
1595
|
-
constructor(type: StyleChangeEventType, map:
|
|
1595
|
+
constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
interface Handler {
|
|
@@ -1611,8 +1611,8 @@ declare class PluginManager {
|
|
|
1611
1611
|
private _plugins;
|
|
1612
1612
|
private _initialized;
|
|
1613
1613
|
private _exclusivePlugins;
|
|
1614
|
-
get map():
|
|
1615
|
-
constructor(map:
|
|
1614
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1615
|
+
constructor(map: FlowCoreMap);
|
|
1616
1616
|
usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
|
|
1617
1617
|
getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
|
|
1618
1618
|
removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
|
|
@@ -1653,7 +1653,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
|
|
|
1653
1653
|
declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
|
|
1654
1654
|
private _pluginManager;
|
|
1655
1655
|
options: Options;
|
|
1656
|
-
get map():
|
|
1656
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1657
1657
|
get pluginManager(): PluginManager;
|
|
1658
1658
|
abstract readonly name: string;
|
|
1659
1659
|
constructor(pluginManager: PluginManager, options?: Options);
|
|
@@ -1716,7 +1716,7 @@ declare class ImageRegistry {
|
|
|
1716
1716
|
interface FeatureStreamOptions {
|
|
1717
1717
|
featureIds: Array<string | number>;
|
|
1718
1718
|
fireImmediately?: boolean;
|
|
1719
|
-
map:
|
|
1719
|
+
map: FlowCoreMap;
|
|
1720
1720
|
source: string;
|
|
1721
1721
|
sourceLayer?: string;
|
|
1722
1722
|
}
|
|
@@ -1746,7 +1746,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
|
|
|
1746
1746
|
featureClickTolerance?: number;
|
|
1747
1747
|
contextId?: string;
|
|
1748
1748
|
}
|
|
1749
|
-
declare class
|
|
1749
|
+
declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
|
|
1750
1750
|
private static _defaultOptions;
|
|
1751
1751
|
private _context;
|
|
1752
1752
|
private _initialized;
|
|
@@ -1854,13 +1854,13 @@ declare class MapRegistry {
|
|
|
1854
1854
|
* @param id Map ID.
|
|
1855
1855
|
* @param map Map to register.
|
|
1856
1856
|
*/
|
|
1857
|
-
registerMap(map:
|
|
1857
|
+
registerMap(map: FlowCoreMap): FlowCoreMap;
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Un-register a Flo.w map.
|
|
1860
1860
|
*
|
|
1861
1861
|
* @param id Map ID.
|
|
1862
1862
|
*/
|
|
1863
|
-
unregisterMap(map:
|
|
1863
|
+
unregisterMap(map: FlowCoreMap): void;
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Retrieve the specified map.
|
|
1866
1866
|
*
|
|
@@ -1868,7 +1868,7 @@ declare class MapRegistry {
|
|
|
1868
1868
|
*
|
|
1869
1869
|
* @param id Map ID.
|
|
1870
1870
|
*/
|
|
1871
|
-
getMap(id: string): Promise<
|
|
1871
|
+
getMap(id: string): Promise<FlowCoreMap>;
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
declare const DEFAULT_CONTEXT_ID = "default";
|
|
@@ -1903,4 +1903,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
|
|
|
1903
1903
|
evaluateExpression(expr: string): any;
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
|
-
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J,
|
|
1906
|
+
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
|
|
@@ -1559,10 +1559,10 @@ interface MapEventTypes {
|
|
|
1559
1559
|
type MapEventType = keyof MapEventTypes;
|
|
1560
1560
|
declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
|
|
1561
1561
|
type: EventType;
|
|
1562
|
-
map:
|
|
1562
|
+
map: FlowCoreMap;
|
|
1563
1563
|
originalEvent?: TOrig;
|
|
1564
|
-
static fromMaplibreEvent(type: string, map:
|
|
1565
|
-
constructor(type: EventType, map:
|
|
1564
|
+
static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
|
|
1565
|
+
constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
|
|
1566
1566
|
}
|
|
1567
1567
|
type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
|
|
1568
1568
|
declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
@@ -1575,24 +1575,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
|
1575
1575
|
*/
|
|
1576
1576
|
lngLat: [number, number];
|
|
1577
1577
|
features: MapFeature[];
|
|
1578
|
-
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map:
|
|
1579
|
-
constructor(type: MapMouseEventType, map:
|
|
1578
|
+
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
|
|
1579
|
+
constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
|
|
1580
1580
|
}
|
|
1581
1581
|
type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
|
|
1582
1582
|
declare class MapSourceEvent extends MapEvent<SourceEventType> {
|
|
1583
1583
|
source: string;
|
|
1584
|
-
constructor(type: SourceEventType, map:
|
|
1584
|
+
constructor(type: SourceEventType, map: FlowCoreMap, source: string);
|
|
1585
1585
|
}
|
|
1586
1586
|
type LoadingEventType = 'loading';
|
|
1587
1587
|
declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
|
|
1588
1588
|
loading: boolean;
|
|
1589
|
-
constructor(map:
|
|
1589
|
+
constructor(map: FlowCoreMap, loading: boolean);
|
|
1590
1590
|
}
|
|
1591
1591
|
type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
|
|
1592
1592
|
declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
|
|
1593
1593
|
oldStyle: MapStyleSpecification;
|
|
1594
1594
|
newStyle: MapStyleSpecification;
|
|
1595
|
-
constructor(type: StyleChangeEventType, map:
|
|
1595
|
+
constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
interface Handler {
|
|
@@ -1611,8 +1611,8 @@ declare class PluginManager {
|
|
|
1611
1611
|
private _plugins;
|
|
1612
1612
|
private _initialized;
|
|
1613
1613
|
private _exclusivePlugins;
|
|
1614
|
-
get map():
|
|
1615
|
-
constructor(map:
|
|
1614
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1615
|
+
constructor(map: FlowCoreMap);
|
|
1616
1616
|
usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
|
|
1617
1617
|
getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
|
|
1618
1618
|
removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
|
|
@@ -1653,7 +1653,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
|
|
|
1653
1653
|
declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
|
|
1654
1654
|
private _pluginManager;
|
|
1655
1655
|
options: Options;
|
|
1656
|
-
get map():
|
|
1656
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1657
1657
|
get pluginManager(): PluginManager;
|
|
1658
1658
|
abstract readonly name: string;
|
|
1659
1659
|
constructor(pluginManager: PluginManager, options?: Options);
|
|
@@ -1716,7 +1716,7 @@ declare class ImageRegistry {
|
|
|
1716
1716
|
interface FeatureStreamOptions {
|
|
1717
1717
|
featureIds: Array<string | number>;
|
|
1718
1718
|
fireImmediately?: boolean;
|
|
1719
|
-
map:
|
|
1719
|
+
map: FlowCoreMap;
|
|
1720
1720
|
source: string;
|
|
1721
1721
|
sourceLayer?: string;
|
|
1722
1722
|
}
|
|
@@ -1746,7 +1746,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
|
|
|
1746
1746
|
featureClickTolerance?: number;
|
|
1747
1747
|
contextId?: string;
|
|
1748
1748
|
}
|
|
1749
|
-
declare class
|
|
1749
|
+
declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
|
|
1750
1750
|
private static _defaultOptions;
|
|
1751
1751
|
private _context;
|
|
1752
1752
|
private _initialized;
|
|
@@ -1854,13 +1854,13 @@ declare class MapRegistry {
|
|
|
1854
1854
|
* @param id Map ID.
|
|
1855
1855
|
* @param map Map to register.
|
|
1856
1856
|
*/
|
|
1857
|
-
registerMap(map:
|
|
1857
|
+
registerMap(map: FlowCoreMap): FlowCoreMap;
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Un-register a Flo.w map.
|
|
1860
1860
|
*
|
|
1861
1861
|
* @param id Map ID.
|
|
1862
1862
|
*/
|
|
1863
|
-
unregisterMap(map:
|
|
1863
|
+
unregisterMap(map: FlowCoreMap): void;
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Retrieve the specified map.
|
|
1866
1866
|
*
|
|
@@ -1868,7 +1868,7 @@ declare class MapRegistry {
|
|
|
1868
1868
|
*
|
|
1869
1869
|
* @param id Map ID.
|
|
1870
1870
|
*/
|
|
1871
|
-
getMap(id: string): Promise<
|
|
1871
|
+
getMap(id: string): Promise<FlowCoreMap>;
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
declare const DEFAULT_CONTEXT_ID = "default";
|
|
@@ -1903,4 +1903,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
|
|
|
1903
1903
|
evaluateExpression(expr: string): any;
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
|
-
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J,
|
|
1906
|
+
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
|
|
@@ -1559,10 +1559,10 @@ interface MapEventTypes {
|
|
|
1559
1559
|
type MapEventType = keyof MapEventTypes;
|
|
1560
1560
|
declare class MapEvent<EventType extends string = MapEventType, TOrig = unknown> {
|
|
1561
1561
|
type: EventType;
|
|
1562
|
-
map:
|
|
1562
|
+
map: FlowCoreMap;
|
|
1563
1563
|
originalEvent?: TOrig;
|
|
1564
|
-
static fromMaplibreEvent(type: string, map:
|
|
1565
|
-
constructor(type: EventType, map:
|
|
1564
|
+
static fromMaplibreEvent(type: string, map: FlowCoreMap, maplibreEvent: MapLibreEvent): MapEvent<any, unknown>;
|
|
1565
|
+
constructor(type: EventType, map: FlowCoreMap, originalEvent?: TOrig);
|
|
1566
1566
|
}
|
|
1567
1567
|
type MapMouseEventType = 'click' | 'dblClick' | 'mouseMove' | 'mouseOut';
|
|
1568
1568
|
declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
@@ -1575,24 +1575,24 @@ declare class MapMouseEvent extends MapEvent<MapMouseEventType, MouseEvent> {
|
|
|
1575
1575
|
*/
|
|
1576
1576
|
lngLat: [number, number];
|
|
1577
1577
|
features: MapFeature[];
|
|
1578
|
-
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map:
|
|
1579
|
-
constructor(type: MapMouseEventType, map:
|
|
1578
|
+
static fromMaplibreMouseEvent(type: MapMouseEventType, maplibreMouseEvent: MapMouseEvent$1, map: FlowCoreMap, features: MapFeature[]): MapMouseEvent;
|
|
1579
|
+
constructor(type: MapMouseEventType, map: FlowCoreMap, point: [number, number], lngLat: [number, number], features: MapFeature[], originalEvent: MouseEvent);
|
|
1580
1580
|
}
|
|
1581
1581
|
type SourceEventType = 'sourceAdded' | 'sourceRemoved' | 'beforeSourceAdded' | 'beforeSourceRemoved' | 'sourceFeatureState';
|
|
1582
1582
|
declare class MapSourceEvent extends MapEvent<SourceEventType> {
|
|
1583
1583
|
source: string;
|
|
1584
|
-
constructor(type: SourceEventType, map:
|
|
1584
|
+
constructor(type: SourceEventType, map: FlowCoreMap, source: string);
|
|
1585
1585
|
}
|
|
1586
1586
|
type LoadingEventType = 'loading';
|
|
1587
1587
|
declare class MapLoadingEvent extends MapEvent<LoadingEventType> {
|
|
1588
1588
|
loading: boolean;
|
|
1589
|
-
constructor(map:
|
|
1589
|
+
constructor(map: FlowCoreMap, loading: boolean);
|
|
1590
1590
|
}
|
|
1591
1591
|
type StyleChangeEventType = 'beforeStyleChanged' | 'styleChanged';
|
|
1592
1592
|
declare class MapStyleChangeEvent extends MapEvent<StyleChangeEventType> {
|
|
1593
1593
|
oldStyle: MapStyleSpecification;
|
|
1594
1594
|
newStyle: MapStyleSpecification;
|
|
1595
|
-
constructor(type: StyleChangeEventType, map:
|
|
1595
|
+
constructor(type: StyleChangeEventType, map: FlowCoreMap, oldStyle: MapStyleSpecification, newStyle: MapStyleSpecification);
|
|
1596
1596
|
}
|
|
1597
1597
|
|
|
1598
1598
|
interface Handler {
|
|
@@ -1611,8 +1611,8 @@ declare class PluginManager {
|
|
|
1611
1611
|
private _plugins;
|
|
1612
1612
|
private _initialized;
|
|
1613
1613
|
private _exclusivePlugins;
|
|
1614
|
-
get map():
|
|
1615
|
-
constructor(map:
|
|
1614
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1615
|
+
constructor(map: FlowCoreMap);
|
|
1616
1616
|
usePlugin<T extends MapPluginBase>(plugin: PluginConstructor<T>, options?: PluginOptionsType<T>): T;
|
|
1617
1617
|
getPlugin<T extends MapPluginBase = MapPluginBase>(pluginOrName: PluginConstructor<T> | string): T;
|
|
1618
1618
|
removePlugin<T extends MapPluginBase>(pluginOrName: PluginConstructor<T> | string): this;
|
|
@@ -1653,7 +1653,7 @@ interface MapPluginBase<Options = any, Events extends EventEmitter.ValidEventTyp
|
|
|
1653
1653
|
declare abstract class MapPluginBase<Options extends object | undefined = any, Events extends EventEmitter.ValidEventTypes = string | symbol> extends EventEmitter<Events> {
|
|
1654
1654
|
private _pluginManager;
|
|
1655
1655
|
options: Options;
|
|
1656
|
-
get map():
|
|
1656
|
+
get map(): FlowCoreMap<StateStore>;
|
|
1657
1657
|
get pluginManager(): PluginManager;
|
|
1658
1658
|
abstract readonly name: string;
|
|
1659
1659
|
constructor(pluginManager: PluginManager, options?: Options);
|
|
@@ -1716,7 +1716,7 @@ declare class ImageRegistry {
|
|
|
1716
1716
|
interface FeatureStreamOptions {
|
|
1717
1717
|
featureIds: Array<string | number>;
|
|
1718
1718
|
fireImmediately?: boolean;
|
|
1719
|
-
map:
|
|
1719
|
+
map: FlowCoreMap;
|
|
1720
1720
|
source: string;
|
|
1721
1721
|
sourceLayer?: string;
|
|
1722
1722
|
}
|
|
@@ -1746,7 +1746,7 @@ interface MapOptions<TState extends StateStore = StateStore> extends Omit<MapOpt
|
|
|
1746
1746
|
featureClickTolerance?: number;
|
|
1747
1747
|
contextId?: string;
|
|
1748
1748
|
}
|
|
1749
|
-
declare class
|
|
1749
|
+
declare class FlowCoreMap<TState extends StateStore = StateStore> extends EventEmitter$1<MapEventTypes> {
|
|
1750
1750
|
private static _defaultOptions;
|
|
1751
1751
|
private _context;
|
|
1752
1752
|
private _initialized;
|
|
@@ -1854,13 +1854,13 @@ declare class MapRegistry {
|
|
|
1854
1854
|
* @param id Map ID.
|
|
1855
1855
|
* @param map Map to register.
|
|
1856
1856
|
*/
|
|
1857
|
-
registerMap(map:
|
|
1857
|
+
registerMap(map: FlowCoreMap): FlowCoreMap;
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Un-register a Flo.w map.
|
|
1860
1860
|
*
|
|
1861
1861
|
* @param id Map ID.
|
|
1862
1862
|
*/
|
|
1863
|
-
unregisterMap(map:
|
|
1863
|
+
unregisterMap(map: FlowCoreMap): void;
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Retrieve the specified map.
|
|
1866
1866
|
*
|
|
@@ -1868,7 +1868,7 @@ declare class MapRegistry {
|
|
|
1868
1868
|
*
|
|
1869
1869
|
* @param id Map ID.
|
|
1870
1870
|
*/
|
|
1871
|
-
getMap(id: string): Promise<
|
|
1871
|
+
getMap(id: string): Promise<FlowCoreMap>;
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
declare const DEFAULT_CONTEXT_ID = "default";
|
|
@@ -1903,4 +1903,4 @@ declare class FlowContext<TState extends StateStore = StateStore> {
|
|
|
1903
1903
|
evaluateExpression(expr: string): any;
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
|
-
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J,
|
|
1906
|
+
export { type QueryOptions as $, type Annotation as A, BackgroundLayerStyleBuilder as B, CircleLayerStyleBuilder as C, DEFAULT_CONTEXT_ID as D, type MapFeatureIdentifier as E, type FlowContextOptions as F, type MapPaddingOptions as G, HeatmapLayerStyleBuilder as H, type MapSourceIdentifier as I, type MapOptions as J, FlowCoreMap as K, LineLayerStyleBuilder as L, type MapStyleSpecification as M, Query as N, query as O, queryMany as P, QueryRegistry as Q, ReactiveExpression as R, StateStore as S, queryOne as T, type QueryResultFormat as U, type QueryAttribute as V, type QueryWhereClauses as W, type QueryExtraParams as X, type QueryOrderClause as Y, type QuerySampleOptions as Z, type QueryDefinition as _, FlowContext as a, type QueryDefinitionFn as a0, type QueryResultTransformFn as a1, traceReaction as a2, type Path as a3, type PathValue as a4, type StoreConstructor as a5, type StoreAnnotations as a6, type SerializationFormat as a7, MapEvent as a8, type MapFeatureId as a9, MapPluginBase as aa, PluginManager as ab, MapSourceEvent as ac, MapMouseEvent as ad, MapFeatureStream as ae, type PartialBy as af, MapStyleChangeEvent as ag, type PluginOptionsType as ah, type PluginEventsType as ai, type PluginConstructor as aj, type EventHandlers as ak, MapDataSource as b, MapLayer as c, MapRegistry as d, type FlowEngineEndpoint as e, type MapLayerType as f, FillLayerStyleBuilder as g, SymbolLayerStyleBuilder as h, FillExtrusionLayerStyleBuilder as i, RasterLayerStyleBuilder as j, HillshadeLayerStyleBuilder as k, layerStyle as l, MapLayerStyleBuilder as m, StyleExpression as n, expr as o, type MapLayerOptions as p, type MapLayerExpression as q, type MapLayerSpecification as r, type MapLayerPropertyMetadataIndex as s, type MapDataSourceType as t, type MapDataSourceOptions as u, type MapDataSourceSpecification as v, type MapGeojsonData as w, type MapAnimationOptions as x, type MapCenterOptions as y, type MapFeature as z };
|