@opensystemslab/map 1.0.0-alpha.4 → 1.0.0-alpha.6
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 +18 -6
- package/dist/component-lib.es.js +1 -1
- package/dist/component-lib.umd.js +141 -152
- package/dist/{html2canvas.esm-d2sM-0Wm.mjs → html2canvas.esm-DgdJBc_o.mjs} +1 -0
- package/dist/{index-0AQlXt5x.mjs → index-D01mRj0Z.mjs} +48073 -44477
- package/dist/index.es-DVcWaq6t.mjs +6636 -0
- package/dist/index.html +108 -111
- package/dist/map.css +1 -0
- package/dist/purify.es-DHbHSKL1.mjs +528 -0
- package/package.json +22 -20
- package/types/components/address-autocomplete/index.d.ts +1 -1
- package/types/components/my-map/drawing.d.ts +1 -1
- package/types/components/my-map/index.d.ts +4 -6
- package/types/components/my-map/layers.d.ts +3 -1
- package/types/components/my-map/os-features.d.ts +1 -1
- package/types/components/my-map/snapping.d.ts +4 -2
- package/dist/index.es-BSUWcQGl.mjs +0 -5614
- package/dist/purify.es-B7BPtUgm.mjs +0 -471
- package/dist/style.css +0 -1
@@ -3,8 +3,10 @@ import VectorTileLayer from "ol/layer/VectorTile";
|
|
3
3
|
import { OSM, XYZ } from "ol/source";
|
4
4
|
import VectorLayer from "ol/layer/Vector";
|
5
5
|
import VectorSource from "ol/source/Vector";
|
6
|
+
import { Feature } from "ol";
|
7
|
+
import { Geometry } from "ol/geom";
|
6
8
|
export type BasemapEnum = "OSM" | "MapboxSatellite" | "OSRaster" | "OSVectorTile";
|
7
9
|
export declare function makeDefaultTileLayer(): TileLayer<OSM>;
|
8
|
-
export declare function makeMapboxSatelliteBasemap(): VectorLayer<VectorSource
|
10
|
+
export declare function makeMapboxSatelliteBasemap(): VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>;
|
9
11
|
export declare function makeOSRasterBasemap(apiKey: string, proxyEndpoint: string, copyright: string): TileLayer<XYZ>;
|
10
12
|
export declare function makeOsVectorTileBasemap(apiKey: string, proxyEndpoint: string, copyright: string): VectorTileLayer;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Vector as VectorLayer } from "ol/layer";
|
2
2
|
import { Vector as VectorSource } from "ol/source";
|
3
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
|
4
|
+
export declare function makeFeatureLayer(color: string, featureFill: boolean): VectorLayer<VectorSource<import("ol").Feature<import("ol/geom").Geometry>>, import("ol").Feature<import("ol/geom").Geometry>>;
|
5
5
|
/**
|
6
6
|
* Create an OGC XML filter parameter value which will select the TopographicArea
|
7
7
|
* features containing the coordinates of the provided point
|
@@ -1,8 +1,10 @@
|
|
1
|
+
import { Feature } from "ol";
|
2
|
+
import { Geometry } from "ol/geom";
|
1
3
|
import { Vector as VectorLayer } from "ol/layer";
|
2
4
|
import VectorTileLayer from "ol/layer/VectorTile";
|
3
5
|
import VectorSource from "ol/source/Vector";
|
4
|
-
export declare const pointsSource: VectorSource<
|
5
|
-
export declare const pointsLayer: VectorLayer<VectorSource<
|
6
|
+
export declare const pointsSource: VectorSource<Feature<Geometry>>;
|
7
|
+
export declare const pointsLayer: VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>;
|
6
8
|
/**
|
7
9
|
* Extract points that are available to snap to when a VectorTileLayer basemap is displayed
|
8
10
|
* @param basemap - a VectorTileLayer
|