@artstesh/maps 8.2.0 → 8.2.1
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/fesm2022/maps-components-src-map.mjs +247 -2
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +247 -2
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.component.d.ts +20 -0
- package/dist/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.factory.d.ts +8 -0
- package/dist/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.settings.d.ts +113 -0
- package/dist/map/map-plate/layers/index.d.ts +2 -0
- package/dist/map/messages/commands/add-geotiff-tile.command.d.ts +7 -0
- package/dist/map/messages/commands/remove-geotiff-tile.command.d.ts +7 -0
- package/dist/src/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.component.d.ts +20 -0
- package/dist/src/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.factory.d.ts +8 -0
- package/dist/src/map/map-plate/layers/geotiff-tile-layer/geotiff-tile-layer.settings.d.ts +113 -0
- package/dist/src/map/map-plate/layers/index.d.ts +2 -0
- package/dist/src/map/messages/commands/add-geotiff-tile.command.d.ts +7 -0
- package/dist/src/map/messages/commands/remove-geotiff-tile.command.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
2
|
+
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
3
|
+
import { GeotiffTileLayerFactory } from './geotiff-tile-layer.factory';
|
|
4
|
+
import { GeotiffTileLayerSettings } from './geotiff-tile-layer.settings';
|
|
5
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class GeotiffTileLayerComponent extends DestructibleComponent {
|
|
8
|
+
private postboy;
|
|
9
|
+
private factory;
|
|
10
|
+
layer?: TileLayer;
|
|
11
|
+
constructor(postboy: MapPostboyService, factory: GeotiffTileLayerFactory);
|
|
12
|
+
_settings: GeotiffTileLayerSettings;
|
|
13
|
+
set settings(value: GeotiffTileLayerSettings | undefined);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
onDestroy: () => void;
|
|
16
|
+
private initLayer;
|
|
17
|
+
private removeLayer;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeotiffTileLayerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GeotiffTileLayerComponent, "lib-geotiff-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GeotiffTileLayerSettings } from './geotiff-tile-layer.settings';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GeotiffTileLayerFactory {
|
|
5
|
+
build(settings: GeotiffTileLayerSettings): TileLayer;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeotiffTileLayerFactory, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GeotiffTileLayerFactory>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Style } from 'ol/layer/WebGLTile';
|
|
2
|
+
export declare class GeotiffTileLayerSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The maximum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max.
|
|
5
|
+
*
|
|
6
|
+
* @type {number | undefined}
|
|
7
|
+
* @default undefined
|
|
8
|
+
*/
|
|
9
|
+
max?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The minimum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max.
|
|
12
|
+
*
|
|
13
|
+
* @type {number | undefined}
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the URL of the tif.
|
|
19
|
+
* @typedef {string} url
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* 'https://example.ex/geotiff.tif'
|
|
23
|
+
*/
|
|
24
|
+
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* Style to apply to the layer.
|
|
27
|
+
*
|
|
28
|
+
* @type {Style | undefined}
|
|
29
|
+
*/
|
|
30
|
+
style?: Style | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The opacity of an element.
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @default 0.6
|
|
36
|
+
*/
|
|
37
|
+
opacity: number;
|
|
38
|
+
/**
|
|
39
|
+
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
40
|
+
*/
|
|
41
|
+
zIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the size of a block in a specific context, typically used to define dimensions or capacity.
|
|
44
|
+
*
|
|
45
|
+
* Optional property that, if defined, specifies the numerical value for the block size.
|
|
46
|
+
*
|
|
47
|
+
* @type {number|undefined}
|
|
48
|
+
*/
|
|
49
|
+
blockSize?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a copy of the given tile layer settings.
|
|
52
|
+
*
|
|
53
|
+
* @param {GeotiffTileLayerSettings} model - The tile layer settings to be copied.
|
|
54
|
+
* @return {GeotiffTileLayerSettings} - A new instance of GeotiffTileLayerSettings with the same properties as the model.
|
|
55
|
+
*/
|
|
56
|
+
static copy(model: GeotiffTileLayerSettings): GeotiffTileLayerSettings;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the URL of the GeotiffTileLayerSettings object.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} url - The URL to be set.
|
|
61
|
+
* @return {GeotiffTileLayerSettings} - The updated GeotiffTileLayerSettings object.
|
|
62
|
+
*/
|
|
63
|
+
setUrl(url: string): GeotiffTileLayerSettings;
|
|
64
|
+
/**
|
|
65
|
+
* Updates the style settings for the GeotiffTileLayerSettings and returns a new instance with the updated style.
|
|
66
|
+
*
|
|
67
|
+
* @param {Style} [style] - An optional style object that defines the new style settings.
|
|
68
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated style.
|
|
69
|
+
*/
|
|
70
|
+
setStyle(style?: Style): GeotiffTileLayerSettings;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the maximum value for the GeotiffTileLayerSettings.
|
|
73
|
+
*
|
|
74
|
+
* @param {number} max - The maximum value to set.
|
|
75
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated maximum value.
|
|
76
|
+
*/
|
|
77
|
+
setMax(max: number): GeotiffTileLayerSettings;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the z-index for the GeotiffTileLayerSettings.
|
|
80
|
+
*
|
|
81
|
+
* @param {number} zIndex - The new z-index to be assigned.
|
|
82
|
+
* @return {GeotiffTileLayerSettings} A new GeotiffTileLayerSettings instance with the updated z-index.
|
|
83
|
+
*/
|
|
84
|
+
setZIndex(zIndex: number): GeotiffTileLayerSettings;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the minimum value for the GeotiffTileLayerSettings.
|
|
87
|
+
*
|
|
88
|
+
* @param {number} min - The new minimum value to be set.
|
|
89
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated minimum value.
|
|
90
|
+
*/
|
|
91
|
+
setMin(min: number): GeotiffTileLayerSettings;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the opacity of the GeotiffTileLayerSettings.
|
|
94
|
+
*
|
|
95
|
+
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
96
|
+
* @return {GeotiffTileLayerSettings} - A new instance of GeotiffTileLayerSettings with the opacity set.
|
|
97
|
+
*/
|
|
98
|
+
setOpacity(opacity: number): GeotiffTileLayerSettings;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the block size for the GeoTIFF tile layer.
|
|
101
|
+
*
|
|
102
|
+
* @param {number} blockSize - The size of the block to be set. This value typically defines the number of pixels for determining how data is grouped in tiles.
|
|
103
|
+
* @return {GeotiffTileLayerSettings} A new instance of `GeotiffTileLayerSettings` with the updated block size.
|
|
104
|
+
*/
|
|
105
|
+
setBlockSize(blockSize: number): GeotiffTileLayerSettings;
|
|
106
|
+
/**
|
|
107
|
+
* Checks if the current instance of GeotiffTileLayerSettings is equal to the given model.
|
|
108
|
+
* @param {GeotiffTileLayerSettings} model - The model to compare against.
|
|
109
|
+
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
110
|
+
* otherwise, false.
|
|
111
|
+
*/
|
|
112
|
+
isSame(model: GeotiffTileLayerSettings): boolean;
|
|
113
|
+
}
|
|
@@ -9,3 +9,5 @@ export * from './image-layer/image-layer.component';
|
|
|
9
9
|
export * from './image-layer/image-layer.settings';
|
|
10
10
|
export * from './raster-tile/raster-tile-layer.component';
|
|
11
11
|
export * from './raster-tile/raster-tile-layer.settings';
|
|
12
|
+
export * from './geotiff-tile-layer/geotiff-tile-layer.settings';
|
|
13
|
+
export * from './geotiff-tile-layer/geotiff-tile-layer.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
export declare class AddGeotiffTileCommand extends PostboyGenericMessage {
|
|
4
|
+
layer: TileLayer;
|
|
5
|
+
static readonly ID = "80e1b7be-09cd-43de-b11c-e0699a91b287";
|
|
6
|
+
constructor(layer: TileLayer);
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
export declare class RemoveGeotiffTileCommand extends PostboyGenericMessage {
|
|
4
|
+
layer: TileLayer;
|
|
5
|
+
static readonly ID = "5545a521-62c4-4b25-a555-ee264258799b";
|
|
6
|
+
constructor(layer: TileLayer);
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
2
|
+
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
3
|
+
import { GeotiffTileLayerFactory } from './geotiff-tile-layer.factory';
|
|
4
|
+
import { GeotiffTileLayerSettings } from './geotiff-tile-layer.settings';
|
|
5
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class GeotiffTileLayerComponent extends DestructibleComponent {
|
|
8
|
+
private postboy;
|
|
9
|
+
private factory;
|
|
10
|
+
layer?: TileLayer;
|
|
11
|
+
constructor(postboy: MapPostboyService, factory: GeotiffTileLayerFactory);
|
|
12
|
+
_settings: GeotiffTileLayerSettings;
|
|
13
|
+
set settings(value: GeotiffTileLayerSettings | undefined);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
onDestroy: () => void;
|
|
16
|
+
private initLayer;
|
|
17
|
+
private removeLayer;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeotiffTileLayerComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GeotiffTileLayerComponent, "lib-geotiff-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GeotiffTileLayerSettings } from './geotiff-tile-layer.settings';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GeotiffTileLayerFactory {
|
|
5
|
+
build(settings: GeotiffTileLayerSettings): TileLayer;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeotiffTileLayerFactory, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GeotiffTileLayerFactory>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Style } from 'ol/layer/WebGLTile';
|
|
2
|
+
export declare class GeotiffTileLayerSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The maximum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max.
|
|
5
|
+
*
|
|
6
|
+
* @type {number | undefined}
|
|
7
|
+
* @default undefined
|
|
8
|
+
*/
|
|
9
|
+
max?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The minimum source data value. Rendered values are scaled from 0 to 1 based on the configured min and max.
|
|
12
|
+
*
|
|
13
|
+
* @type {number | undefined}
|
|
14
|
+
* @default undefined
|
|
15
|
+
*/
|
|
16
|
+
min?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Represents the URL of the tif.
|
|
19
|
+
* @typedef {string} url
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* 'https://example.ex/geotiff.tif'
|
|
23
|
+
*/
|
|
24
|
+
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* Style to apply to the layer.
|
|
27
|
+
*
|
|
28
|
+
* @type {Style | undefined}
|
|
29
|
+
*/
|
|
30
|
+
style?: Style | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The opacity of an element.
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @default 0.6
|
|
36
|
+
*/
|
|
37
|
+
opacity: number;
|
|
38
|
+
/**
|
|
39
|
+
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
40
|
+
*/
|
|
41
|
+
zIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* Represents the size of a block in a specific context, typically used to define dimensions or capacity.
|
|
44
|
+
*
|
|
45
|
+
* Optional property that, if defined, specifies the numerical value for the block size.
|
|
46
|
+
*
|
|
47
|
+
* @type {number|undefined}
|
|
48
|
+
*/
|
|
49
|
+
blockSize?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a copy of the given tile layer settings.
|
|
52
|
+
*
|
|
53
|
+
* @param {GeotiffTileLayerSettings} model - The tile layer settings to be copied.
|
|
54
|
+
* @return {GeotiffTileLayerSettings} - A new instance of GeotiffTileLayerSettings with the same properties as the model.
|
|
55
|
+
*/
|
|
56
|
+
static copy(model: GeotiffTileLayerSettings): GeotiffTileLayerSettings;
|
|
57
|
+
/**
|
|
58
|
+
* Sets the URL of the GeotiffTileLayerSettings object.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} url - The URL to be set.
|
|
61
|
+
* @return {GeotiffTileLayerSettings} - The updated GeotiffTileLayerSettings object.
|
|
62
|
+
*/
|
|
63
|
+
setUrl(url: string): GeotiffTileLayerSettings;
|
|
64
|
+
/**
|
|
65
|
+
* Updates the style settings for the GeotiffTileLayerSettings and returns a new instance with the updated style.
|
|
66
|
+
*
|
|
67
|
+
* @param {Style} [style] - An optional style object that defines the new style settings.
|
|
68
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated style.
|
|
69
|
+
*/
|
|
70
|
+
setStyle(style?: Style): GeotiffTileLayerSettings;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the maximum value for the GeotiffTileLayerSettings.
|
|
73
|
+
*
|
|
74
|
+
* @param {number} max - The maximum value to set.
|
|
75
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated maximum value.
|
|
76
|
+
*/
|
|
77
|
+
setMax(max: number): GeotiffTileLayerSettings;
|
|
78
|
+
/**
|
|
79
|
+
* Sets the z-index for the GeotiffTileLayerSettings.
|
|
80
|
+
*
|
|
81
|
+
* @param {number} zIndex - The new z-index to be assigned.
|
|
82
|
+
* @return {GeotiffTileLayerSettings} A new GeotiffTileLayerSettings instance with the updated z-index.
|
|
83
|
+
*/
|
|
84
|
+
setZIndex(zIndex: number): GeotiffTileLayerSettings;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the minimum value for the GeotiffTileLayerSettings.
|
|
87
|
+
*
|
|
88
|
+
* @param {number} min - The new minimum value to be set.
|
|
89
|
+
* @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated minimum value.
|
|
90
|
+
*/
|
|
91
|
+
setMin(min: number): GeotiffTileLayerSettings;
|
|
92
|
+
/**
|
|
93
|
+
* Sets the opacity of the GeotiffTileLayerSettings.
|
|
94
|
+
*
|
|
95
|
+
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
96
|
+
* @return {GeotiffTileLayerSettings} - A new instance of GeotiffTileLayerSettings with the opacity set.
|
|
97
|
+
*/
|
|
98
|
+
setOpacity(opacity: number): GeotiffTileLayerSettings;
|
|
99
|
+
/**
|
|
100
|
+
* Sets the block size for the GeoTIFF tile layer.
|
|
101
|
+
*
|
|
102
|
+
* @param {number} blockSize - The size of the block to be set. This value typically defines the number of pixels for determining how data is grouped in tiles.
|
|
103
|
+
* @return {GeotiffTileLayerSettings} A new instance of `GeotiffTileLayerSettings` with the updated block size.
|
|
104
|
+
*/
|
|
105
|
+
setBlockSize(blockSize: number): GeotiffTileLayerSettings;
|
|
106
|
+
/**
|
|
107
|
+
* Checks if the current instance of GeotiffTileLayerSettings is equal to the given model.
|
|
108
|
+
* @param {GeotiffTileLayerSettings} model - The model to compare against.
|
|
109
|
+
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
110
|
+
* otherwise, false.
|
|
111
|
+
*/
|
|
112
|
+
isSame(model: GeotiffTileLayerSettings): boolean;
|
|
113
|
+
}
|
|
@@ -9,3 +9,5 @@ export * from './image-layer/image-layer.component';
|
|
|
9
9
|
export * from './image-layer/image-layer.settings';
|
|
10
10
|
export * from './raster-tile/raster-tile-layer.component';
|
|
11
11
|
export * from './raster-tile/raster-tile-layer.settings';
|
|
12
|
+
export * from './geotiff-tile-layer/geotiff-tile-layer.settings';
|
|
13
|
+
export * from './geotiff-tile-layer/geotiff-tile-layer.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
export declare class AddGeotiffTileCommand extends PostboyGenericMessage {
|
|
4
|
+
layer: TileLayer;
|
|
5
|
+
static readonly ID = "80e1b7be-09cd-43de-b11c-e0699a91b287";
|
|
6
|
+
constructor(layer: TileLayer);
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import TileLayer from 'ol/layer/WebGLTile';
|
|
3
|
+
export declare class RemoveGeotiffTileCommand extends PostboyGenericMessage {
|
|
4
|
+
layer: TileLayer;
|
|
5
|
+
static readonly ID = "5545a521-62c4-4b25-a555-ee264258799b";
|
|
6
|
+
constructor(layer: TileLayer);
|
|
7
|
+
}
|