@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.
@@ -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
- [x: string]: any;
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<Feature<Geometry, {
8
- [x: string]: any;
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: Extent): void;
12
+ export declare function getSnapPointsFromVectorTiles(basemap: VectorTileLayer, extent: number[]): void;
@@ -1 +1,6 @@
1
+ import type { IWindow } from "happy-dom";
1
2
  import "./index";
3
+ declare global {
4
+ interface Window extends IWindow {
5
+ }
6
+ }
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";
@@ -1,4 +1,4 @@
1
- type OSServices = "xyz" | "vectorTile" | "vectorTileStyle" | "places" | "find" | "features";
1
+ type OSServices = "xyz" | "vectorTile" | "vectorTileStyle" | "places" | "features";
2
2
  interface ServiceOptions {
3
3
  service: OSServices;
4
4
  apiKey: string;
@@ -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>;