@mcp-b/geo-openlayers 0.2.0

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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/dist/circle-BiLEqiGC.js +102 -0
  3. package/dist/components/circle/circle.d.ts +47 -0
  4. package/dist/components/circle/circle.js +2 -0
  5. package/dist/components/control/control.d.ts +41 -0
  6. package/dist/components/control/control.js +2 -0
  7. package/dist/components/geojson/geojson.d.ts +66 -0
  8. package/dist/components/geojson/geojson.js +2 -0
  9. package/dist/components/map/map.d.ts +45 -0
  10. package/dist/components/map/map.js +2 -0
  11. package/dist/components/marker/marker.d.ts +46 -0
  12. package/dist/components/marker/marker.js +2 -0
  13. package/dist/components/overlay/overlay.d.ts +40 -0
  14. package/dist/components/overlay/overlay.js +2 -0
  15. package/dist/components/polygon/polygon.d.ts +45 -0
  16. package/dist/components/polygon/polygon.js +2 -0
  17. package/dist/components/polyline/polyline.d.ts +45 -0
  18. package/dist/components/polyline/polyline.js +2 -0
  19. package/dist/components/popup/popup.d.ts +27 -0
  20. package/dist/components/popup/popup.js +2 -0
  21. package/dist/components/scale-control/scale-control.d.ts +32 -0
  22. package/dist/components/scale-control/scale-control.js +2 -0
  23. package/dist/components/tilelayer/tilelayer.d.ts +38 -0
  24. package/dist/components/tilelayer/tilelayer.js +2 -0
  25. package/dist/control-CTiiOtzM.js +59 -0
  26. package/dist/decorate-DcF3lt7P.js +9 -0
  27. package/dist/docs/custom-elements.json +1404 -0
  28. package/dist/geojson-BU-tOeyz.js +184 -0
  29. package/dist/index.d.ts +12 -0
  30. package/dist/index.js +12 -0
  31. package/dist/map-eGQh7n8O.js +146 -0
  32. package/dist/marker-DEG_oTfJ.js +124 -0
  33. package/dist/overlay-BFXjnhLj.js +65 -0
  34. package/dist/polygon-BaKBzEHK.js +105 -0
  35. package/dist/polyline-DXXHbwfm.js +89 -0
  36. package/dist/popup-CpiCysPO.js +30 -0
  37. package/dist/scale-control-zMLnp2Rt.js +57 -0
  38. package/dist/tilelayer-BAC1OCHe.js +73 -0
  39. package/package.json +76 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MCP-B contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,102 @@
1
+ import { t as __decorate } from "./decorate-DcF3lt7P.js";
2
+ import { LitElement, css, html } from "lit";
3
+ import { customElement, property } from "lit/decorators.js";
4
+ import { fromLonLat } from "ol/proj.js";
5
+ import VectorLayer from "ol/layer/Vector.js";
6
+ import VectorSource from "ol/source/Vector.js";
7
+ import { Fill, Stroke, Style } from "ol/style.js";
8
+ import Feature from "ol/Feature.js";
9
+ import Circle$1 from "ol/geom/Circle.js";
10
+ //#region src/components/circle/circle.styles.ts
11
+ var circle_styles_default = css`
12
+ :host {
13
+ display: none;
14
+ }
15
+ `;
16
+ //#endregion
17
+ //#region src/components/circle/circle.ts
18
+ let SigveloOlCircle = class SigveloOlCircle extends LitElement {
19
+ constructor(..._args) {
20
+ super(..._args);
21
+ this.latitude = 0;
22
+ this.longitude = 0;
23
+ this.radius = 100;
24
+ this.fillColor = "#3388ff";
25
+ this.fillOpacity = .2;
26
+ this.strokeColor = "#3388ff";
27
+ this.strokeWidth = 2;
28
+ this._layer = null;
29
+ this._feature = null;
30
+ this._mapEl = null;
31
+ }
32
+ static {
33
+ this.styles = [circle_styles_default];
34
+ }
35
+ async connectedCallback() {
36
+ super.connectedCallback();
37
+ this._mapEl = this.closest("sigvelo-ol-map");
38
+ if (this._mapEl) {
39
+ await this._mapEl.mapReady;
40
+ this._addCircle();
41
+ }
42
+ }
43
+ disconnectedCallback() {
44
+ super.disconnectedCallback();
45
+ if (this._layer && this._mapEl?.map) this._mapEl.map.removeLayer(this._layer);
46
+ this._layer = null;
47
+ this._feature = null;
48
+ }
49
+ /** @internal */
50
+ _hexToRgba(hex, opacity) {
51
+ return `rgba(${parseInt(hex.slice(1, 3), 16)}, ${parseInt(hex.slice(3, 5), 16)}, ${parseInt(hex.slice(5, 7), 16)}, ${opacity})`;
52
+ }
53
+ /** @internal */
54
+ _addCircle() {
55
+ if (!this._mapEl?.map) return;
56
+ const geometry = new Circle$1(fromLonLat([this.longitude, this.latitude]), this.radius);
57
+ this._feature = new Feature({ geometry });
58
+ const style = new Style({
59
+ fill: new Fill({ color: this._hexToRgba(this.fillColor, this.fillOpacity) }),
60
+ stroke: new Stroke({
61
+ color: this.strokeColor,
62
+ width: this.strokeWidth
63
+ })
64
+ });
65
+ this._layer = new VectorLayer({
66
+ source: new VectorSource({ features: [this._feature] }),
67
+ style
68
+ });
69
+ this._mapEl.map.addLayer(this._layer);
70
+ }
71
+ updated(changed) {
72
+ if (!this._feature || !this._layer) return;
73
+ if (changed.has("latitude") || changed.has("longitude")) this._feature.getGeometry().setCenter(fromLonLat([this.longitude, this.latitude]));
74
+ if (changed.has("radius")) this._feature.getGeometry().setRadius(this.radius);
75
+ if (changed.has("fillColor") || changed.has("fillOpacity") || changed.has("strokeColor") || changed.has("strokeWidth")) this._layer.setStyle(new Style({
76
+ fill: new Fill({ color: this._hexToRgba(this.fillColor, this.fillOpacity) }),
77
+ stroke: new Stroke({
78
+ color: this.strokeColor,
79
+ width: this.strokeWidth
80
+ })
81
+ }));
82
+ }
83
+ render() {
84
+ return html``;
85
+ }
86
+ };
87
+ __decorate([property({ type: Number })], SigveloOlCircle.prototype, "latitude", void 0);
88
+ __decorate([property({ type: Number })], SigveloOlCircle.prototype, "longitude", void 0);
89
+ __decorate([property({ type: Number })], SigveloOlCircle.prototype, "radius", void 0);
90
+ __decorate([property({ attribute: "fill-color" })], SigveloOlCircle.prototype, "fillColor", void 0);
91
+ __decorate([property({
92
+ attribute: "fill-opacity",
93
+ type: Number
94
+ })], SigveloOlCircle.prototype, "fillOpacity", void 0);
95
+ __decorate([property({ attribute: "stroke-color" })], SigveloOlCircle.prototype, "strokeColor", void 0);
96
+ __decorate([property({
97
+ attribute: "stroke-width",
98
+ type: Number
99
+ })], SigveloOlCircle.prototype, "strokeWidth", void 0);
100
+ SigveloOlCircle = __decorate([customElement("sigvelo-ol-circle")], SigveloOlCircle);
101
+ //#endregion
102
+ export { SigveloOlCircle as t };
@@ -0,0 +1,47 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+
3
+ //#region src/components/circle/circle.d.ts
4
+ /**
5
+ * A circle overlay on an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ *
7
+ * @tag sigvelo-ol-circle
8
+ */
9
+ declare class SigveloOlCircle extends LitElement {
10
+ /** @internal */
11
+ static styles: import("lit").CSSResult[];
12
+ /** Center latitude. */
13
+ latitude: number;
14
+ /** Center longitude. */
15
+ longitude: number;
16
+ /** Radius in meters. */
17
+ radius: number;
18
+ /** Fill color (CSS color string). */
19
+ fillColor: string;
20
+ /** Fill opacity (0-1). */
21
+ fillOpacity: number;
22
+ /** Stroke color (CSS color string). */
23
+ strokeColor: string;
24
+ /** Stroke width in pixels. */
25
+ strokeWidth: number;
26
+ /** @internal */
27
+ private _layer;
28
+ /** @internal */
29
+ private _feature;
30
+ /** @internal */
31
+ private _mapEl;
32
+ connectedCallback(): Promise<void>;
33
+ disconnectedCallback(): void;
34
+ /** @internal */
35
+ private _hexToRgba;
36
+ /** @internal */
37
+ private _addCircle;
38
+ protected updated(changed: PropertyValues): void;
39
+ render(): import("lit-html").TemplateResult<1>;
40
+ }
41
+ declare global {
42
+ interface HTMLElementTagNameMap {
43
+ "sigvelo-ol-circle": SigveloOlCircle;
44
+ }
45
+ }
46
+ //#endregion
47
+ export { SigveloOlCircle };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlCircle } from "../../circle-BiLEqiGC.js";
2
+ export { SigveloOlCircle };
@@ -0,0 +1,41 @@
1
+ import { LitElement } from "lit";
2
+
3
+ //#region src/components/control/control.d.ts
4
+ type ControlPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
5
+ /**
6
+ * A generic control container for an OpenLayers map. Wraps arbitrary content
7
+ * and adds it as an OL control, positioned in a map corner.
8
+ *
9
+ * @tag sigvelo-ol-control
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <sigvelo-ol-map>
14
+ * <sigvelo-ol-control position="bottom-left">
15
+ * <sigvelo-geo-legend title="Density" ...></sigvelo-geo-legend>
16
+ * </sigvelo-ol-control>
17
+ * </sigvelo-ol-map>
18
+ * ```
19
+ */
20
+ declare class SigveloOlControl extends LitElement {
21
+ /** @internal */
22
+ static styles: import("lit").CSSResult[];
23
+ /** Position of the control on the map. */
24
+ position: ControlPosition;
25
+ /** @internal */
26
+ private _control;
27
+ /** @internal */
28
+ private _mapEl;
29
+ connectedCallback(): Promise<void>;
30
+ disconnectedCallback(): void;
31
+ /** @internal */
32
+ private _addControl;
33
+ render(): import("lit-html").TemplateResult<1>;
34
+ }
35
+ declare global {
36
+ interface HTMLElementTagNameMap {
37
+ "sigvelo-ol-control": SigveloOlControl;
38
+ }
39
+ }
40
+ //#endregion
41
+ export { SigveloOlControl };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlControl } from "../../control-CTiiOtzM.js";
2
+ export { SigveloOlControl };
@@ -0,0 +1,66 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+ import { GeoJsonData, StyleFunction } from "@mcp-b/geo-support/types";
3
+
4
+ //#region src/components/geojson/geojson.d.ts
5
+ /**
6
+ * Renders GeoJSON data on an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
7
+ *
8
+ * @tag sigvelo-ol-geojson
9
+ *
10
+ * @event sigvelo-feature-click - Fired when a GeoJSON feature is clicked.
11
+ */
12
+ declare class SigveloOlGeojson extends LitElement {
13
+ /** @internal */
14
+ static styles: import("lit").CSSResult[];
15
+ /** GeoJSON data. Set via property. */
16
+ data: GeoJsonData | null;
17
+ /**
18
+ * Per-feature style function for choropleth / thematic maps.
19
+ * When set, each feature is styled by calling this function.
20
+ * Returned values override the static style props; omitted keys fall back to them.
21
+ */
22
+ styleFunction: StyleFunction | null;
23
+ /** Fill color (CSS color string). */
24
+ fillColor: string;
25
+ /** Fill opacity (0-1). */
26
+ fillOpacity: number;
27
+ /** Stroke color (CSS color string). */
28
+ strokeColor: string;
29
+ /** Stroke width in pixels. */
30
+ strokeWidth: number;
31
+ /** Radius of circle markers for Point geometries. */
32
+ circleRadius: number;
33
+ /** Whether features are clickable. */
34
+ interactive: boolean;
35
+ /** Channel name for auto-syncing with a classify panel. */
36
+ channel: string;
37
+ /** @internal */
38
+ private _layer;
39
+ /** @internal */
40
+ private _mapEl;
41
+ /** @internal */
42
+ private _unsubscribeChannel;
43
+ connectedCallback(): Promise<void>;
44
+ disconnectedCallback(): void;
45
+ /** @internal */
46
+ private _subscribeChannel;
47
+ /** @internal Convert an OL Feature to a GeoJsonFeature for the styleFunction. */
48
+ private _toGeoJsonFeature;
49
+ /** @internal */
50
+ private _addLayer;
51
+ /** @internal */
52
+ private _removeLayer;
53
+ /** @internal */
54
+ private _bindClickHandler;
55
+ /** @internal */
56
+ private _hexToRgba;
57
+ protected updated(changed: PropertyValues): void;
58
+ render(): import("lit-html").TemplateResult<1>;
59
+ }
60
+ declare global {
61
+ interface HTMLElementTagNameMap {
62
+ "sigvelo-ol-geojson": SigveloOlGeojson;
63
+ }
64
+ }
65
+ //#endregion
66
+ export { SigveloOlGeojson };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlGeojson } from "../../geojson-BU-tOeyz.js";
2
+ export { SigveloOlGeojson };
@@ -0,0 +1,45 @@
1
+ import { PropertyValues } from "lit";
2
+ import { GeoMapElement } from "@mcp-b/geo-support/base/geo-map-element";
3
+ import OlMap from "ol/Map.js";
4
+ import View from "ol/View.js";
5
+ import { FitBoundsOptions, FlyToOptions } from "@mcp-b/geo-support/types";
6
+
7
+ //#region src/components/map/map.d.ts
8
+ /**
9
+ * An OpenLayers map component. Add tile layers, vector layers, and overlays
10
+ * as children of this component.
11
+ *
12
+ * @tag sigvelo-ol-map
13
+ *
14
+ * @event sigvelo-map-click - Fired when the map is clicked.
15
+ * @event sigvelo-map-move - Fired while the map center is changing.
16
+ * @event sigvelo-map-moveend - Fired when map movement ends.
17
+ * @event sigvelo-map-zoom - Fired while the zoom level is changing.
18
+ * @event sigvelo-map-zoomend - Fired when zooming ends.
19
+ * @event sigvelo-map-load - Fired when the map finishes loading.
20
+ */
21
+ declare class SigveloOlMap extends GeoMapElement {
22
+ /** @internal */
23
+ static styles: import("lit").CSSResult[];
24
+ /** @internal */
25
+ private _map;
26
+ /** @internal */
27
+ private _view;
28
+ /** Access the underlying OpenLayers map instance (after mapReady resolves). */
29
+ get map(): OlMap | null;
30
+ /** Access the underlying OpenLayers view instance. */
31
+ get view(): View | null;
32
+ protected createMap(container: HTMLElement): void;
33
+ protected destroyMap(): void;
34
+ protected updateView(changed: PropertyValues): void;
35
+ protected invalidateSize(): void;
36
+ flyTo(options: FlyToOptions): void;
37
+ fitBounds(options: FitBoundsOptions): void;
38
+ }
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "sigvelo-ol-map": SigveloOlMap;
42
+ }
43
+ }
44
+ //#endregion
45
+ export { SigveloOlMap };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlMap } from "../../map-eGQh7n8O.js";
2
+ export { SigveloOlMap };
@@ -0,0 +1,46 @@
1
+ import { LitElement } from "lit";
2
+
3
+ //#region src/components/marker/marker.d.ts
4
+ /**
5
+ * A marker on an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ * Renders a default pin icon at the specified coordinates. Nest a
7
+ * `<sigvelo-ol-popup>` inside for popup content on click.
8
+ *
9
+ * @tag sigvelo-ol-marker
10
+ * @slot - Optional popup content.
11
+ */
12
+ declare class SigveloOlMarker extends LitElement {
13
+ /** @internal */
14
+ static styles: import("lit").CSSResult[];
15
+ /** Center latitude. */
16
+ latitude: number;
17
+ /** Center longitude. */
18
+ longitude: number;
19
+ /** Marker color (CSS color string). */
20
+ color: string;
21
+ /** Title attribute (shows on hover). */
22
+ title: string;
23
+ /** @internal */
24
+ private _overlay;
25
+ /** @internal */
26
+ private _markerEl;
27
+ /** @internal */
28
+ private _mapEl;
29
+ connectedCallback(): Promise<void>;
30
+ disconnectedCallback(): void;
31
+ /** @internal */
32
+ private _addMarker;
33
+ /** @internal */
34
+ private _popupOverlay;
35
+ /** @internal */
36
+ private _showPopup;
37
+ protected updated(): void;
38
+ render(): import("lit-html").TemplateResult<1>;
39
+ }
40
+ declare global {
41
+ interface HTMLElementTagNameMap {
42
+ "sigvelo-ol-marker": SigveloOlMarker;
43
+ }
44
+ }
45
+ //#endregion
46
+ export { SigveloOlMarker };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlMarker } from "../../marker-DEG_oTfJ.js";
2
+ export { SigveloOlMarker };
@@ -0,0 +1,40 @@
1
+ import { LitElement } from "lit";
2
+
3
+ //#region src/components/overlay/overlay.d.ts
4
+ /**
5
+ * An overlay (marker/popup anchor) on an OpenLayers map.
6
+ * Must be a child of `<sigvelo-ol-map>`. Slotted content is placed
7
+ * at the specified coordinates on the map.
8
+ *
9
+ * @tag sigvelo-ol-overlay
10
+ * @slot - Overlay content (marker icon, popup, etc.).
11
+ */
12
+ declare class SigveloOlOverlay extends LitElement {
13
+ /** @internal */
14
+ static styles: import("lit").CSSResult[];
15
+ /** Center latitude. */
16
+ latitude: number;
17
+ /** Center longitude. */
18
+ longitude: number;
19
+ /** Positioning of the overlay relative to its coordinate. */
20
+ positioning: string;
21
+ /** @internal */
22
+ private _overlay;
23
+ /** @internal */
24
+ private _contentEl;
25
+ /** @internal */
26
+ private _mapEl;
27
+ connectedCallback(): Promise<void>;
28
+ disconnectedCallback(): void;
29
+ /** @internal */
30
+ private _addOverlay;
31
+ protected updated(): void;
32
+ render(): import("lit-html").TemplateResult<1>;
33
+ }
34
+ declare global {
35
+ interface HTMLElementTagNameMap {
36
+ "sigvelo-ol-overlay": SigveloOlOverlay;
37
+ }
38
+ }
39
+ //#endregion
40
+ export { SigveloOlOverlay };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlOverlay } from "../../overlay-BFXjnhLj.js";
2
+ export { SigveloOlOverlay };
@@ -0,0 +1,45 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+
3
+ //#region src/components/polygon/polygon.d.ts
4
+ /**
5
+ * A polygon overlay on an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ *
7
+ * @tag sigvelo-ol-polygon
8
+ */
9
+ declare class SigveloOlPolygon extends LitElement {
10
+ /** @internal */
11
+ static styles: import("lit").CSSResult[];
12
+ /** Array of [lat, lng] coordinate pairs forming the polygon. Set via property. */
13
+ positions: Array<[number, number]>;
14
+ /** Fill color (CSS color string). */
15
+ fillColor: string;
16
+ /** Fill opacity (0-1). */
17
+ fillOpacity: number;
18
+ /** Stroke color (CSS color string). */
19
+ strokeColor: string;
20
+ /** Stroke width in pixels. */
21
+ strokeWidth: number;
22
+ /** @internal */
23
+ private _layer;
24
+ /** @internal */
25
+ private _feature;
26
+ /** @internal */
27
+ private _mapEl;
28
+ connectedCallback(): Promise<void>;
29
+ disconnectedCallback(): void;
30
+ /** @internal */
31
+ private _toCoords;
32
+ /** @internal */
33
+ private _hexToRgba;
34
+ /** @internal */
35
+ private _addPolygon;
36
+ protected updated(changed: PropertyValues): void;
37
+ render(): import("lit-html").TemplateResult<1>;
38
+ }
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "sigvelo-ol-polygon": SigveloOlPolygon;
42
+ }
43
+ }
44
+ //#endregion
45
+ export { SigveloOlPolygon };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlPolygon } from "../../polygon-BaKBzEHK.js";
2
+ export { SigveloOlPolygon };
@@ -0,0 +1,45 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+
3
+ //#region src/components/polyline/polyline.d.ts
4
+ /**
5
+ * A polyline on an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ *
7
+ * @tag sigvelo-ol-polyline
8
+ */
9
+ declare class SigveloOlPolyline extends LitElement {
10
+ /** @internal */
11
+ static styles: import("lit").CSSResult[];
12
+ /** Array of [lat, lng] coordinate pairs. Set via property. */
13
+ positions: Array<[number, number]>;
14
+ /** Line color (CSS color string). */
15
+ color: string;
16
+ /** Line width in pixels. */
17
+ width: number;
18
+ /** Opacity (0-1). */
19
+ opacity: number;
20
+ /** Dash pattern (e.g. [5, 10]). Set via property. */
21
+ dashArray: number[];
22
+ /** @internal */
23
+ private _layer;
24
+ /** @internal */
25
+ private _feature;
26
+ /** @internal */
27
+ private _mapEl;
28
+ connectedCallback(): Promise<void>;
29
+ disconnectedCallback(): void;
30
+ /** @internal */
31
+ private _toCoords;
32
+ /** @internal */
33
+ private _hexToRgba;
34
+ /** @internal */
35
+ private _addLine;
36
+ protected updated(changed: PropertyValues): void;
37
+ render(): import("lit-html").TemplateResult<1>;
38
+ }
39
+ declare global {
40
+ interface HTMLElementTagNameMap {
41
+ "sigvelo-ol-polyline": SigveloOlPolyline;
42
+ }
43
+ }
44
+ //#endregion
45
+ export { SigveloOlPolyline };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlPolyline } from "../../polyline-DXXHbwfm.js";
2
+ export { SigveloOlPolyline };
@@ -0,0 +1,27 @@
1
+ import { LitElement } from "lit";
2
+
3
+ //#region src/components/popup/popup.d.ts
4
+ /**
5
+ * Popup content for an OpenLayers marker. Nest inside a
6
+ * `<sigvelo-ol-marker>` to attach to a marker.
7
+ *
8
+ * Content is provided via the default slot (Light DOM) so Sigvelo design
9
+ * tokens and components render correctly.
10
+ *
11
+ * @tag sigvelo-ol-popup
12
+ * @slot - Popup content.
13
+ */
14
+ declare class SigveloOlPopup extends LitElement {
15
+ /** @internal */
16
+ static styles: import("lit").CSSResult[];
17
+ /** Maximum width of the popup in pixels. */
18
+ maxWidth: number;
19
+ render(): import("lit-html").TemplateResult<1>;
20
+ }
21
+ declare global {
22
+ interface HTMLElementTagNameMap {
23
+ "sigvelo-ol-popup": SigveloOlPopup;
24
+ }
25
+ }
26
+ //#endregion
27
+ export { SigveloOlPopup };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlPopup } from "../../popup-CpiCysPO.js";
2
+ export { SigveloOlPopup };
@@ -0,0 +1,32 @@
1
+ import { LitElement } from "lit";
2
+
3
+ //#region src/components/scale-control/scale-control.d.ts
4
+ /**
5
+ * A scale line control for an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ *
7
+ * @tag sigvelo-ol-scale-control
8
+ */
9
+ declare class SigveloOlScaleControl extends LitElement {
10
+ /** @internal */
11
+ static styles: import("lit").CSSResult[];
12
+ /** Unit system for the scale bar. */
13
+ units: "metric" | "imperial" | "nautical" | "us";
14
+ /** Minimum width of the scale bar in pixels. */
15
+ minWidth: number;
16
+ /** @internal */
17
+ private _control;
18
+ /** @internal */
19
+ private _mapEl;
20
+ connectedCallback(): Promise<void>;
21
+ disconnectedCallback(): void;
22
+ /** @internal */
23
+ private _addControl;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ }
26
+ declare global {
27
+ interface HTMLElementTagNameMap {
28
+ "sigvelo-ol-scale-control": SigveloOlScaleControl;
29
+ }
30
+ }
31
+ //#endregion
32
+ export { SigveloOlScaleControl };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlScaleControl } from "../../scale-control-zMLnp2Rt.js";
2
+ export { SigveloOlScaleControl };
@@ -0,0 +1,38 @@
1
+ import { LitElement, PropertyValues } from "lit";
2
+
3
+ //#region src/components/tilelayer/tilelayer.d.ts
4
+ /**
5
+ * A tile layer for an OpenLayers map. Must be a child of `<sigvelo-ol-map>`.
6
+ * If no URL is provided, defaults to OpenStreetMap.
7
+ *
8
+ * @tag sigvelo-ol-tilelayer
9
+ */
10
+ declare class SigveloOlTilelayer extends LitElement {
11
+ /** @internal */
12
+ static styles: import("lit").CSSResult[];
13
+ /** URL template for tiles. Leave empty for OpenStreetMap default. */
14
+ url: string;
15
+ /** Attribution text for this tile layer. */
16
+ attribution: string;
17
+ /** Opacity of the tile layer (0-1). */
18
+ opacity: number;
19
+ /** @internal */
20
+ private _layer;
21
+ /** @internal */
22
+ private _mapEl;
23
+ connectedCallback(): Promise<void>;
24
+ disconnectedCallback(): void;
25
+ /** @internal */
26
+ private _addLayer;
27
+ /** @internal */
28
+ private _removeLayer;
29
+ protected updated(changed: PropertyValues): void;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ }
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ "sigvelo-ol-tilelayer": SigveloOlTilelayer;
35
+ }
36
+ }
37
+ //#endregion
38
+ export { SigveloOlTilelayer };
@@ -0,0 +1,2 @@
1
+ import { t as SigveloOlTilelayer } from "../../tilelayer-BAC1OCHe.js";
2
+ export { SigveloOlTilelayer };