@opensystemslab/map 1.0.0-alpha.17 → 1.0.0-alpha.2
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/README.md +11 -29
- package/dist/component-lib.es.js +3 -4
- package/dist/component-lib.umd.js +270 -270
- package/dist/{html2canvas.esm-dgT_1dIT.mjs → html2canvas.esm-d2sM-0Wm.mjs} +78 -79
- package/dist/index-B9kc5fOE.mjs +53131 -0
- package/dist/index.es-CXEzoRbj.mjs +5614 -0
- package/dist/index.html +109 -134
- package/dist/purify.es-B7BPtUgm.mjs +471 -0
- package/dist/style.css +1 -0
- package/package.json +34 -33
- package/types/components/address-autocomplete/index.d.ts +1 -1
- package/types/components/address-autocomplete/main.test.d.ts +5 -0
- package/types/components/my-map/controls.d.ts +2 -19
- package/types/components/my-map/drawing.d.ts +2 -9
- package/types/components/my-map/index.d.ts +13 -20
- package/types/components/my-map/layers.d.ts +1 -3
- package/types/components/my-map/layers.test.d.ts +9 -0
- package/types/components/my-map/main.test.d.ts +5 -0
- package/types/components/my-map/os-features.d.ts +2 -8
- package/types/components/my-map/snapping.d.ts +3 -12
- package/types/components/postcode-search/main.test.d.ts +5 -0
- package/types/index.d.ts +0 -1
- package/types/lib/ordnanceSurvey.d.ts +1 -1
- package/types/test-utils.d.ts +0 -1
- package/dist/index-Bnn2vGjM.mjs +0 -61372
- package/dist/index.es-AHdAbups.mjs +0 -6694
- package/dist/map.css +0 -1
- package/dist/purify.es-Q3IQ-fe5.mjs +0 -898
- package/types/components/geocode-autocomplete/index.d.ts +0 -46
- package/types/components/geocode-autocomplete/main.test.d.ts +0 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { Vector as VectorLayer } from "ol/layer";
|
|
2
2
|
import { Vector as VectorSource } from "ol/source";
|
|
3
|
-
export declare const outlineSource: VectorSource<import("ol").Feature<import("ol/geom").Geometry
|
|
4
|
-
|
|
5
|
-
}>>;
|
|
6
|
-
export declare function makeFeatureLayer(color: string, featureFill: boolean): VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry, {
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
}>>, import("ol").Feature<import("ol/geom").Geometry, {
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
}>>;
|
|
3
|
+
export declare const outlineSource: VectorSource<import("ol").Feature<import("ol/geom").Geometry>>;
|
|
4
|
+
export declare function makeFeatureLayer(color: string, featureFill: boolean): VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry>>>;
|
|
11
5
|
/**
|
|
12
6
|
* Create an OGC XML filter parameter value which will select the TopographicArea
|
|
13
7
|
* features containing the coordinates of the provided point
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { Feature } from "ol";
|
|
2
|
-
import { Extent } from "ol/extent";
|
|
3
|
-
import { Geometry } from "ol/geom";
|
|
4
1
|
import { Vector as VectorLayer } from "ol/layer";
|
|
5
2
|
import VectorTileLayer from "ol/layer/VectorTile";
|
|
6
3
|
import VectorSource from "ol/source/Vector";
|
|
7
|
-
export declare const pointsSource: VectorSource<
|
|
8
|
-
|
|
9
|
-
}>>;
|
|
10
|
-
export declare const pointsLayer: VectorLayer<VectorSource<Feature<Geometry, {
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
}>>, Feature<Geometry, {
|
|
13
|
-
[x: string]: any;
|
|
14
|
-
}>>;
|
|
4
|
+
export declare const pointsSource: VectorSource<never>;
|
|
5
|
+
export declare const pointsLayer: VectorLayer<VectorSource<never>>;
|
|
15
6
|
/**
|
|
16
7
|
* Extract points that are available to snap to when a VectorTileLayer basemap is displayed
|
|
17
8
|
* @param basemap - a VectorTileLayer
|
|
18
9
|
* @param extent - an array of 4 points
|
|
19
10
|
* @returns - a VectorSource populated with points within the extent
|
|
20
11
|
*/
|
|
21
|
-
export declare function getSnapPointsFromVectorTiles(basemap: VectorTileLayer, extent:
|
|
12
|
+
export declare function getSnapPointsFromVectorTiles(basemap: VectorTileLayer, extent: number[]): void;
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { MyMap } from "./components/my-map/index";
|
|
2
2
|
export { AddressAutocomplete } from "./components/address-autocomplete/index";
|
|
3
|
-
export { GeocodeAutocomplete } from "./components/geocode-autocomplete/index";
|
|
4
3
|
export { PostcodeSearch } from "./components/postcode-search/index";
|
package/types/test-utils.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare function getShadowRoot(customEl: string): ShadowRoot | null | undefined;
|
|
2
2
|
export declare function getShadowRootEl(customEl: string, el: string): Element | null | undefined;
|
|
3
|
-
export declare function waitForElement(customEl: string): Promise<void>;
|
|
4
3
|
export declare function setupMap(mapElement: any): Promise<void>;
|