@geospatial-sdk/core 0.0.5-dev.51 → 0.0.5-dev.52
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/model/events.d.ts
CHANGED
|
@@ -2,15 +2,18 @@ import { EndpointError } from "@camptocamp/ogc-client";
|
|
|
2
2
|
import { Feature } from "geojson";
|
|
3
3
|
import BaseEvent from "ol/events/Event.js";
|
|
4
4
|
import type { Extent } from "ol/extent.js";
|
|
5
|
+
export type FeaturesByLayerIndex = Map<number, Feature[]>;
|
|
5
6
|
export declare const FeaturesClickEventType = "features-click";
|
|
6
7
|
export interface FeaturesClickEvent {
|
|
7
8
|
type: typeof FeaturesClickEventType;
|
|
8
9
|
features: Feature[];
|
|
10
|
+
featuresByLayer: FeaturesByLayerIndex;
|
|
9
11
|
}
|
|
10
12
|
export declare const FeaturesHoverEventType = "features-hover";
|
|
11
13
|
export interface FeaturesHoverEvent {
|
|
12
14
|
type: typeof FeaturesHoverEventType;
|
|
13
15
|
features: Feature[];
|
|
16
|
+
featuresByLayer: FeaturesByLayerIndex;
|
|
14
17
|
}
|
|
15
18
|
export declare const MapClickEventType = "map-click";
|
|
16
19
|
export interface MapClickEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../lib/model/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AACvD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,sBAAsB,CAAC;IACpC,QAAQ,EAAE,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sour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AC,EAAE,kBAAkB,CAAC;IAC7C,CAAC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC;IAC7C,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IACnC,CAAC,wBAAwB,CAAC,EAAE,oBAAoB,CAAC;IACjD,CAAC,mBAAmB,CAAC,EAAE,oBAAoB,CAAC;CAC7C"}
|
package/lib/model/events.ts
CHANGED
|
@@ -3,16 +3,20 @@ import { Feature } from "geojson";
|
|
|
3
3
|
import BaseEvent from "ol/events/Event.js";
|
|
4
4
|
import type { Extent } from "ol/extent.js";
|
|
5
5
|
|
|
6
|
+
export type FeaturesByLayerIndex = Map<number, Feature[]>;
|
|
7
|
+
|
|
6
8
|
export const FeaturesClickEventType = "features-click";
|
|
7
9
|
export interface FeaturesClickEvent {
|
|
8
10
|
type: typeof FeaturesClickEventType;
|
|
9
11
|
features: Feature[];
|
|
12
|
+
featuresByLayer: FeaturesByLayerIndex;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
export const FeaturesHoverEventType = "features-hover";
|
|
13
16
|
export interface FeaturesHoverEvent {
|
|
14
17
|
type: typeof FeaturesHoverEventType;
|
|
15
18
|
features: Feature[];
|
|
19
|
+
featuresByLayer: FeaturesByLayerIndex;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
export const MapClickEventType = "map-click";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geospatial-sdk/core",
|
|
3
|
-
"version": "0.0.5-dev.
|
|
3
|
+
"version": "0.0.5-dev.52+73ea489",
|
|
4
4
|
"description": "Core functions and models for the SDK",
|
|
5
5
|
"author": "Olivia <olivia.guyot@camptocamp.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test": "vitest",
|
|
23
23
|
"build": "tsc"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "73ea4890e493aae5379e23af6b7679bab253db92",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"proj4": "^2.9.2"
|
|
28
28
|
},
|