@artstesh/maps 8.0.0 → 9.0.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.
- package/dist/fesm2022/maps-components-src-map.mjs +85 -85
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +85 -85
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/index.d.ts +1720 -3
- package/dist/src/map/index.d.ts +1720 -3
- package/package.json +19 -19
- package/dist/map/common/destructible.component.d.ts +0 -10
- package/dist/map/common/id.generator.d.ts +0 -4
- package/dist/map/helpers/index.d.ts +0 -4
- package/dist/map/helpers/marker-style.helper.d.ts +0 -33
- package/dist/map/helpers/polygon-style.helper.d.ts +0 -26
- package/dist/map/helpers/stringify-feature.helper.d.ts +0 -26
- package/dist/map/helpers/text-style.helper.d.ts +0 -19
- package/dist/map/map-plate/controls/index.d.ts +0 -2
- package/dist/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +0 -36
- package/dist/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +0 -5
- package/dist/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +0 -85
- package/dist/map/map-plate/features/index.d.ts +0 -2
- package/dist/map/map-plate/features/markers/markers.component.d.ts +0 -26
- package/dist/map/map-plate/features/polygons/polygons.component.d.ts +0 -26
- package/dist/map/map-plate/layers/cluster-layer/cluster-layer-factory.service.d.ts +0 -11
- package/dist/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +0 -29
- package/dist/map/map-plate/layers/cluster-layer/cluster-layer.manager.d.ts +0 -13
- package/dist/map/map-plate/layers/cluster-layer/cluster-layer.settings.d.ts +0 -100
- package/dist/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +0 -22
- package/dist/map/map-plate/layers/feature-layer/feature-layer.factory.d.ts +0 -9
- package/dist/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +0 -103
- package/dist/map/map-plate/layers/image-layer/image-layer-factory.d.ts +0 -9
- package/dist/map/map-plate/layers/image-layer/image-layer.component.d.ts +0 -22
- package/dist/map/map-plate/layers/image-layer/image-layer.settings.d.ts +0 -97
- package/dist/map/map-plate/layers/index.d.ts +0 -11
- package/dist/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +0 -21
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +0 -21
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +0 -12
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +0 -119
- package/dist/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +0 -21
- package/dist/map/map-plate/layers/tile-layer/tile-layer.factory.d.ts +0 -12
- package/dist/map/map-plate/layers/tile-layer/tile-layer.settings.d.ts +0 -103
- package/dist/map/map-plate/map-plate.component.d.ts +0 -30
- package/dist/map/map-plate/map-plate.factory.service.d.ts +0 -8
- package/dist/map/map-plate/tooltips/index.d.ts +0 -2
- package/dist/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +0 -27
- package/dist/map/map-plate/tooltips/tooltip/tooltip.settings.d.ts +0 -11
- package/dist/map/messages/commands/add-control.command.d.ts +0 -15
- package/dist/map/messages/commands/add-image-layer.command.d.ts +0 -8
- package/dist/map/messages/commands/add-layer.command.d.ts +0 -9
- package/dist/map/messages/commands/add-raster-tile-command.d.ts +0 -8
- package/dist/map/messages/commands/add-tile.command.d.ts +0 -8
- package/dist/map/messages/commands/cancel-drawing.command.d.ts +0 -7
- package/dist/map/messages/commands/cancel-feature-modification.command.d.ts +0 -7
- package/dist/map/messages/commands/close-tooltip.command.d.ts +0 -14
- package/dist/map/messages/commands/draw-selection-area.command.d.ts +0 -24
- package/dist/map/messages/commands/fit-to-features.command.d.ts +0 -9
- package/dist/map/messages/commands/fit-to-polygons.command.d.ts +0 -18
- package/dist/map/messages/commands/modify-feature.command.d.ts +0 -25
- package/dist/map/messages/commands/place-layer-features.command.d.ts +0 -9
- package/dist/map/messages/commands/remove-control.command.d.ts +0 -20
- package/dist/map/messages/commands/remove-image-layer.command.d.ts +0 -8
- package/dist/map/messages/commands/remove-layer.command.d.ts +0 -7
- package/dist/map/messages/commands/remove-raster-tile.command.d.ts +0 -8
- package/dist/map/messages/commands/remove-tile.command.d.ts +0 -8
- package/dist/map/messages/commands/set-map-center.command.d.ts +0 -17
- package/dist/map/messages/commands/start-drawing.command.d.ts +0 -20
- package/dist/map/messages/events/drawing-finished.event.d.ts +0 -4
- package/dist/map/messages/events/map-click.event.d.ts +0 -32
- package/dist/map/messages/events/map-feature-hovered.event.d.ts +0 -19
- package/dist/map/messages/events/map-move-end.event.d.ts +0 -13
- package/dist/map/messages/events/map-pointer-move.event.d.ts +0 -17
- package/dist/map/messages/events/map-rendered.event.d.ts +0 -15
- package/dist/map/messages/executors/calculate-area.executor.d.ts +0 -16
- package/dist/map/messages/executors/filter-features-in-area.executor.d.ts +0 -17
- package/dist/map/messages/executors/filter-features-in-point.executor.d.ts +0 -24
- package/dist/map/messages/executors/generate-draw.executor.d.ts +0 -13
- package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +0 -8
- package/dist/map/messages/executors/get-geometry-length.executor.d.ts +0 -11
- package/dist/map/messages/executors/get-map-position.executor.d.ts +0 -11
- package/dist/map/messages/executors/polygon-self-intersection.executor.d.ts +0 -7
- package/dist/map/messages/index.d.ts +0 -24
- package/dist/map/messages/queries/get-features-in-area.query.d.ts +0 -20
- package/dist/map/messages/queries/get-features-in-point.query.d.ts +0 -21
- package/dist/map/messages/queries/get-layer.query.d.ts +0 -9
- package/dist/map/models/drawing-type.enum.d.ts +0 -20
- package/dist/map/models/feature-format.enum.d.ts +0 -13
- package/dist/map/models/i-identified.d.ts +0 -3
- package/dist/map/models/index.d.ts +0 -9
- package/dist/map/models/map-control.d.ts +0 -13
- package/dist/map/models/map-lyrs.enum.d.ts +0 -10
- package/dist/map/models/map-position.model.d.ts +0 -18
- package/dist/map/models/map-settings.d.ts +0 -81
- package/dist/map/models/map.constants.d.ts +0 -5
- package/dist/map/models/marker-model.d.ts +0 -16
- package/dist/map/models/polygon.model.d.ts +0 -22
- package/dist/map/ol-proxy.d.ts +0 -7
- package/dist/map/public-api.d.ts +0 -12
- package/dist/map/services/controls/controls.service.d.ts +0 -14
- package/dist/map/services/drawing/drawing-generation.service.d.ts +0 -6
- package/dist/map/services/drawing/drawing.service.d.ts +0 -19
- package/dist/map/services/drawing/feature-modification.service.d.ts +0 -22
- package/dist/map/services/feature.service.d.ts +0 -16
- package/dist/map/services/map-click.service.d.ts +0 -16
- package/dist/map/services/map-feature.service.d.ts +0 -17
- package/dist/map/services/map-management.service.d.ts +0 -22
- package/dist/map/services/map-postboy.service.d.ts +0 -7
- package/dist/map/services/map-state.service.d.ts +0 -15
- package/dist/map/services/message-registrator.service.d.ts +0 -18
- package/dist/public-api.d.ts +0 -1
- package/dist/src/map/common/destructible.component.d.ts +0 -10
- package/dist/src/map/common/id.generator.d.ts +0 -4
- package/dist/src/map/helpers/index.d.ts +0 -4
- package/dist/src/map/helpers/marker-style.helper.d.ts +0 -33
- package/dist/src/map/helpers/polygon-style.helper.d.ts +0 -26
- package/dist/src/map/helpers/stringify-feature.helper.d.ts +0 -26
- package/dist/src/map/helpers/text-style.helper.d.ts +0 -19
- package/dist/src/map/map-plate/controls/index.d.ts +0 -2
- package/dist/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +0 -36
- package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +0 -5
- package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +0 -85
- package/dist/src/map/map-plate/features/index.d.ts +0 -2
- package/dist/src/map/map-plate/features/markers/markers.component.d.ts +0 -26
- package/dist/src/map/map-plate/features/polygons/polygons.component.d.ts +0 -26
- package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer-factory.service.d.ts +0 -11
- package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +0 -29
- package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.manager.d.ts +0 -13
- package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.settings.d.ts +0 -100
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +0 -22
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.factory.d.ts +0 -9
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +0 -103
- package/dist/src/map/map-plate/layers/image-layer/image-layer-factory.d.ts +0 -9
- package/dist/src/map/map-plate/layers/image-layer/image-layer.component.d.ts +0 -22
- package/dist/src/map/map-plate/layers/image-layer/image-layer.settings.d.ts +0 -97
- package/dist/src/map/map-plate/layers/index.d.ts +0 -11
- package/dist/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +0 -21
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +0 -21
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +0 -12
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +0 -119
- package/dist/src/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +0 -21
- package/dist/src/map/map-plate/layers/tile-layer/tile-layer.factory.d.ts +0 -12
- package/dist/src/map/map-plate/layers/tile-layer/tile-layer.settings.d.ts +0 -103
- package/dist/src/map/map-plate/map-plate.component.d.ts +0 -30
- package/dist/src/map/map-plate/map-plate.factory.service.d.ts +0 -8
- package/dist/src/map/map-plate/tooltips/index.d.ts +0 -2
- package/dist/src/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +0 -27
- package/dist/src/map/map-plate/tooltips/tooltip/tooltip.settings.d.ts +0 -11
- package/dist/src/map/messages/commands/add-control.command.d.ts +0 -15
- package/dist/src/map/messages/commands/add-image-layer.command.d.ts +0 -8
- package/dist/src/map/messages/commands/add-layer.command.d.ts +0 -9
- package/dist/src/map/messages/commands/add-raster-tile-command.d.ts +0 -8
- package/dist/src/map/messages/commands/add-tile.command.d.ts +0 -8
- package/dist/src/map/messages/commands/cancel-drawing.command.d.ts +0 -7
- package/dist/src/map/messages/commands/cancel-feature-modification.command.d.ts +0 -7
- package/dist/src/map/messages/commands/close-tooltip.command.d.ts +0 -14
- package/dist/src/map/messages/commands/draw-selection-area.command.d.ts +0 -24
- package/dist/src/map/messages/commands/fit-to-features.command.d.ts +0 -9
- package/dist/src/map/messages/commands/fit-to-polygons.command.d.ts +0 -18
- package/dist/src/map/messages/commands/modify-feature.command.d.ts +0 -25
- package/dist/src/map/messages/commands/place-layer-features.command.d.ts +0 -9
- package/dist/src/map/messages/commands/remove-control.command.d.ts +0 -20
- package/dist/src/map/messages/commands/remove-image-layer.command.d.ts +0 -8
- package/dist/src/map/messages/commands/remove-layer.command.d.ts +0 -7
- package/dist/src/map/messages/commands/remove-raster-tile.command.d.ts +0 -8
- package/dist/src/map/messages/commands/remove-tile.command.d.ts +0 -8
- package/dist/src/map/messages/commands/set-map-center.command.d.ts +0 -17
- package/dist/src/map/messages/commands/start-drawing.command.d.ts +0 -20
- package/dist/src/map/messages/events/drawing-finished.event.d.ts +0 -4
- package/dist/src/map/messages/events/map-click.event.d.ts +0 -32
- package/dist/src/map/messages/events/map-feature-hovered.event.d.ts +0 -19
- package/dist/src/map/messages/events/map-move-end.event.d.ts +0 -13
- package/dist/src/map/messages/events/map-pointer-move.event.d.ts +0 -17
- package/dist/src/map/messages/events/map-rendered.event.d.ts +0 -15
- package/dist/src/map/messages/executors/calculate-area.executor.d.ts +0 -16
- package/dist/src/map/messages/executors/filter-features-in-area.executor.d.ts +0 -17
- package/dist/src/map/messages/executors/filter-features-in-point.executor.d.ts +0 -24
- package/dist/src/map/messages/executors/generate-draw.executor.d.ts +0 -13
- package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +0 -8
- package/dist/src/map/messages/executors/get-geometry-length.executor.d.ts +0 -11
- package/dist/src/map/messages/executors/get-map-position.executor.d.ts +0 -11
- package/dist/src/map/messages/executors/polygon-self-intersection.executor.d.ts +0 -7
- package/dist/src/map/messages/index.d.ts +0 -24
- package/dist/src/map/messages/queries/get-features-in-area.query.d.ts +0 -20
- package/dist/src/map/messages/queries/get-features-in-point.query.d.ts +0 -21
- package/dist/src/map/messages/queries/get-layer.query.d.ts +0 -9
- package/dist/src/map/models/drawing-type.enum.d.ts +0 -20
- package/dist/src/map/models/feature-format.enum.d.ts +0 -13
- package/dist/src/map/models/i-identified.d.ts +0 -3
- package/dist/src/map/models/index.d.ts +0 -9
- package/dist/src/map/models/map-control.d.ts +0 -13
- package/dist/src/map/models/map-lyrs.enum.d.ts +0 -10
- package/dist/src/map/models/map-position.model.d.ts +0 -18
- package/dist/src/map/models/map-settings.d.ts +0 -81
- package/dist/src/map/models/map.constants.d.ts +0 -5
- package/dist/src/map/models/marker-model.d.ts +0 -16
- package/dist/src/map/models/polygon.model.d.ts +0 -22
- package/dist/src/map/ol-proxy.d.ts +0 -7
- package/dist/src/map/public-api.d.ts +0 -12
- package/dist/src/map/services/controls/controls.service.d.ts +0 -14
- package/dist/src/map/services/drawing/drawing-generation.service.d.ts +0 -6
- package/dist/src/map/services/drawing/drawing.service.d.ts +0 -19
- package/dist/src/map/services/drawing/feature-modification.service.d.ts +0 -22
- package/dist/src/map/services/feature.service.d.ts +0 -16
- package/dist/src/map/services/map-click.service.d.ts +0 -16
- package/dist/src/map/services/map-feature.service.d.ts +0 -17
- package/dist/src/map/services/map-management.service.d.ts +0 -22
- package/dist/src/map/services/map-postboy.service.d.ts +0 -7
- package/dist/src/map/services/map-state.service.d.ts +0 -15
- package/dist/src/map/services/message-registrator.service.d.ts +0 -18
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import Style, { StyleFunction } from 'ol/style/Style';
|
|
2
|
-
/**
|
|
3
|
-
* A layer that is responsible for showing and styling main features on the map, such as markers and polygons
|
|
4
|
-
*/
|
|
5
|
-
export declare class FeatureLayerSettings {
|
|
6
|
-
/**
|
|
7
|
-
* The identifier of the field, it is autogenerated by default, but can be set manually
|
|
8
|
-
*/
|
|
9
|
-
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
12
|
-
*/
|
|
13
|
-
zIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
The maximum view zoom level (inclusive) at which this layer will be visible.
|
|
16
|
-
|
|
17
|
-
@type {number}
|
|
18
|
-
@default 19
|
|
19
|
-
*/
|
|
20
|
-
maxZoom: number;
|
|
21
|
-
/**
|
|
22
|
-
The minimum view zoom level (exclusive) at which this layer will be visible.
|
|
23
|
-
|
|
24
|
-
@type {number}
|
|
25
|
-
*/
|
|
26
|
-
minZoom: number;
|
|
27
|
-
/**
|
|
28
|
-
* The styling definition of layer's features. The easiest way is to use {@link PolygonStyleHelper},{@link MarkerStyleHelper}
|
|
29
|
-
*/
|
|
30
|
-
style?: Style | StyleFunction;
|
|
31
|
-
/**
|
|
32
|
-
* Defines the style applied to a feature when it is hovered over.
|
|
33
|
-
*
|
|
34
|
-
* This property can accept either a static style object or a dynamic style function.
|
|
35
|
-
* When a `StyleFunction` is provided, it will determine the style dynamically
|
|
36
|
-
* based on the feature being hovered.
|
|
37
|
-
*
|
|
38
|
-
* The style is applied temporarily, specifically for the hovered feature,
|
|
39
|
-
* and overrides any default or predefined styles for that feature.
|
|
40
|
-
*
|
|
41
|
-
* Optional property.
|
|
42
|
-
*
|
|
43
|
-
* @type {(Style | StyleFunction)}
|
|
44
|
-
*/
|
|
45
|
-
featureHoverStyle?: Style | StyleFunction;
|
|
46
|
-
/**
|
|
47
|
-
* Copies the given FeatureLayerSettings object
|
|
48
|
-
*
|
|
49
|
-
* @param {FeatureLayerSettings} model - The FeatureLayerSettings object to be copied
|
|
50
|
-
* @returns {FeatureLayerSettings} - A copy of the FeatureLayerSettings object
|
|
51
|
-
*/
|
|
52
|
-
static copy(model: FeatureLayerSettings): FeatureLayerSettings;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the z-index value for the FeatureLayerSettings object.
|
|
55
|
-
*
|
|
56
|
-
* @param {number} zIndex - The new z-index value.
|
|
57
|
-
* @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
|
|
58
|
-
*/
|
|
59
|
-
setZIndex(zIndex: number): FeatureLayerSettings;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the name of the FeatureLayerSettings.
|
|
62
|
-
*
|
|
63
|
-
* @param {string} name - The name to set for the FeatureLayerSettings.
|
|
64
|
-
*
|
|
65
|
-
* @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new name.
|
|
66
|
-
*/
|
|
67
|
-
setName(name: string): FeatureLayerSettings;
|
|
68
|
-
/**
|
|
69
|
-
* Sets the maximum zoom level for the FeatureLayerSettings.
|
|
70
|
-
*
|
|
71
|
-
* @param {number} maxZoom - The maximum zoom level.
|
|
72
|
-
* @return {FeatureLayerSettings} - The updated FeatureLayerSettings object.
|
|
73
|
-
*/
|
|
74
|
-
setMaxZoom(maxZoom: number): FeatureLayerSettings;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the minimum zoom level for the feature layer.
|
|
77
|
-
*
|
|
78
|
-
* @param {number} minZoom The minimum zoom level to be set.
|
|
79
|
-
* @returns {FeatureLayerSettings} The updated feature layer settings object.
|
|
80
|
-
*/
|
|
81
|
-
setMinZoom(minZoom: number): FeatureLayerSettings;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the style for the FeatureLayerSettings object.
|
|
84
|
-
*
|
|
85
|
-
* @param {Style | StyleFunction} style - The new style to set. It can be either a Style object or a StyleFunction.
|
|
86
|
-
* @return {FeatureLayerSettings} - The updated FeatureLayerSettings object with the new style.
|
|
87
|
-
*/
|
|
88
|
-
setStyle(style: Style | StyleFunction): FeatureLayerSettings;
|
|
89
|
-
/**
|
|
90
|
-
* Sets the style to apply to features when they are hovered over.
|
|
91
|
-
*
|
|
92
|
-
* @param {Style | StyleFunction} featureHoverStyle - The style or style function to use for hovered features.
|
|
93
|
-
* @return {FeatureLayerSettings} A new instance of FeatureLayerSettings with the updated hover style.
|
|
94
|
-
*/
|
|
95
|
-
setFeatureHoverStyle(featureHoverStyle: Style | StyleFunction): FeatureLayerSettings;
|
|
96
|
-
/**
|
|
97
|
-
* Checks if the given FeatureLayerSettings object is identical to the current object.
|
|
98
|
-
*
|
|
99
|
-
* @param {FeatureLayerSettings} model - The FeatureLayerSettings object to compare with.
|
|
100
|
-
* @return {boolean} - Returns true if the given object is identical to the current object, otherwise false.
|
|
101
|
-
*/
|
|
102
|
-
isSame(model: FeatureLayerSettings): boolean;
|
|
103
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Static from 'ol/source/ImageStatic';
|
|
2
|
-
import { ImageLayerSettings } from './image-layer.settings';
|
|
3
|
-
import ImageLayer from 'ol/layer/Image';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ImageLayerFactory {
|
|
6
|
-
build(settings: ImageLayerSettings): ImageLayer<Static>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerFactory, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ImageLayerFactory>;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
3
|
-
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
4
|
-
import { ImageLayerFactory } from './image-layer-factory';
|
|
5
|
-
import ImageLayer from 'ol/layer/Image';
|
|
6
|
-
import Static from 'ol/source/ImageStatic';
|
|
7
|
-
import { ImageLayerSettings } from './image-layer.settings';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ImageLayerComponent extends DestructibleComponent implements OnInit {
|
|
10
|
-
private postboy;
|
|
11
|
-
private factory;
|
|
12
|
-
layer?: ImageLayer<Static>;
|
|
13
|
-
constructor(postboy: MapPostboyService, factory: ImageLayerFactory);
|
|
14
|
-
_settings: ImageLayerSettings;
|
|
15
|
-
set settings(value: ImageLayerSettings | undefined);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
onDestroy: () => void;
|
|
18
|
-
private initLayer;
|
|
19
|
-
private removeLayer;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageLayerComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ImageLayerComponent, "art-image-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export declare class ImageLayerSettings {
|
|
2
|
-
/**
|
|
3
|
-
* Represents the tiles URL.
|
|
4
|
-
* @typedef {string} url
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
8
|
-
*/
|
|
9
|
-
url: string;
|
|
10
|
-
/**
|
|
11
|
-
* Use interpolated values when resampling.
|
|
12
|
-
* By default, linear interpolation is used when resampling.
|
|
13
|
-
* Set to false to use the nearest neighbor instead.
|
|
14
|
-
*/
|
|
15
|
-
interpolate?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The projection of the coordinate system.
|
|
18
|
-
*
|
|
19
|
-
* @type {string}
|
|
20
|
-
* @default 'EPSG:3857'
|
|
21
|
-
*/
|
|
22
|
-
projection: string;
|
|
23
|
-
extent: number[];
|
|
24
|
-
/**
|
|
25
|
-
* Additional headers that should be added to each tile request
|
|
26
|
-
*
|
|
27
|
-
* @type {Record<string, string>}
|
|
28
|
-
* @default An empty array
|
|
29
|
-
*/
|
|
30
|
-
requestHeaders: Record<string, string> | null;
|
|
31
|
-
/**
|
|
32
|
-
* Creates a copy of the given tile layer settings.
|
|
33
|
-
*
|
|
34
|
-
* @param {ImageLayerSettings} model - The tile layer settings to be copied.
|
|
35
|
-
* @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the same properties as the model.
|
|
36
|
-
*/
|
|
37
|
-
static copy(model: ImageLayerSettings): ImageLayerSettings;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the URL of the ImageLayerSettings object.
|
|
40
|
-
*
|
|
41
|
-
* @param {string} url - The URL to be set.
|
|
42
|
-
* @return {ImageLayerSettings} - The updated ImageLayerSettings object.
|
|
43
|
-
*/
|
|
44
|
-
setUrl(url: string): ImageLayerSettings;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the interpolation state for the image layer settings.
|
|
47
|
-
*
|
|
48
|
-
* @param {boolean} [interpolate] - Use interpolated values when resampling.
|
|
49
|
-
* By default, linear interpolation is used when resampling.
|
|
50
|
-
* Set to false to use the nearest neighbor instead.
|
|
51
|
-
* @return {ImageLayerSettings} A new instance of ImageLayerSettings with the updated interpolation setting.
|
|
52
|
-
*/
|
|
53
|
-
setInterpolate(interpolate?: boolean): ImageLayerSettings;
|
|
54
|
-
setExtent(extent: number[]): ImageLayerSettings;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the requestHeaders of the ImageLayerSettings object.
|
|
57
|
-
*
|
|
58
|
-
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
59
|
-
* @return {ImageLayerSettings} - The updated ImageLayerSettings object.
|
|
60
|
-
*/
|
|
61
|
-
setRequestHeaders(requestHeaders: Record<string, string>): ImageLayerSettings;
|
|
62
|
-
/**
|
|
63
|
-
* Sets the maximum zoom level for the tile layer.
|
|
64
|
-
*
|
|
65
|
-
* @param {number} maxZoom - The maximum zoom level.
|
|
66
|
-
* @returns {ImageLayerSettings} - The updated tile layer settings object.
|
|
67
|
-
*/
|
|
68
|
-
setMaxZoom(maxZoom: number): ImageLayerSettings;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the minimum zoom level for the Tile Layer.
|
|
71
|
-
*
|
|
72
|
-
* @param {number} minZoom - The minimum zoom level to be set.
|
|
73
|
-
* @return {ImageLayerSettings} The modified ImageLayerSettings object with the updated minimum zoom level.
|
|
74
|
-
*/
|
|
75
|
-
setMinZoom(minZoom: number): ImageLayerSettings;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the opacity of the ImageLayerSettings.
|
|
78
|
-
*
|
|
79
|
-
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
80
|
-
* @return {ImageLayerSettings} - A new instance of ImageLayerSettings with the opacity set.
|
|
81
|
-
*/
|
|
82
|
-
setOpacity(opacity: number): ImageLayerSettings;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the projection for the tile layer settings.
|
|
85
|
-
*
|
|
86
|
-
* @param {string} projection - The desired projection for the tile layer settings.
|
|
87
|
-
* @return {ImageLayerSettings} - The updated tile layer settings with the new projection.
|
|
88
|
-
*/
|
|
89
|
-
setProjection(projection: string): ImageLayerSettings;
|
|
90
|
-
/**
|
|
91
|
-
* Checks if the current instance of ImageLayerSettings is equal to the given model.
|
|
92
|
-
* @param {ImageLayerSettings} model - The model to compare against.
|
|
93
|
-
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
94
|
-
* otherwise, false.
|
|
95
|
-
*/
|
|
96
|
-
isSame(model: ImageLayerSettings): boolean;
|
|
97
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './tile-layer/tile-layer.component';
|
|
2
|
-
export * from './tile-layer/tile-layer.settings';
|
|
3
|
-
export * from './osm-tile-layer/osm-tile-layer.component';
|
|
4
|
-
export * from './feature-layer/feature-layer.settings';
|
|
5
|
-
export * from './feature-layer/feature-layer.component';
|
|
6
|
-
export * from './cluster-layer/cluster-layer.component';
|
|
7
|
-
export * from './cluster-layer/cluster-layer.settings';
|
|
8
|
-
export * from './image-layer/image-layer.component';
|
|
9
|
-
export * from './image-layer/image-layer.settings';
|
|
10
|
-
export * from './raster-tile/raster-tile-layer.component';
|
|
11
|
-
export * from './raster-tile/raster-tile-layer.settings';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
3
|
-
import TileLayer from 'ol/layer/Tile';
|
|
4
|
-
import TileSource from 'ol/source/Tile';
|
|
5
|
-
import { Map } from 'ol';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class OsmTileLayerComponent extends DestructibleComponent implements OnInit {
|
|
8
|
-
layer?: TileLayer<TileSource>;
|
|
9
|
-
constructor();
|
|
10
|
-
private _url;
|
|
11
|
-
private _map?;
|
|
12
|
-
private _opacity;
|
|
13
|
-
set url(value: string | undefined);
|
|
14
|
-
set opacity(value: number);
|
|
15
|
-
set map(value: Map | undefined);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
private initLayer;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OsmTileLayerComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OsmTileLayerComponent, "art-osm-tile-layer", never, { "url": { "alias": "url"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
2
|
-
import { Raster } from 'ol/source';
|
|
3
|
-
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
4
|
-
import ImageLayer from 'ol/layer/Image';
|
|
5
|
-
import { RasterTileLayerFactory } from './raster-tile-layer.factory';
|
|
6
|
-
import { RasterTileLayerSettings } from './raster-tile-layer.settings';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class RasterTileLayerComponent extends DestructibleComponent {
|
|
9
|
-
private postboy;
|
|
10
|
-
private factory;
|
|
11
|
-
layer?: ImageLayer<Raster>;
|
|
12
|
-
constructor(postboy: MapPostboyService, factory: RasterTileLayerFactory);
|
|
13
|
-
_settings: RasterTileLayerSettings;
|
|
14
|
-
set settings(value: RasterTileLayerSettings | undefined);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
onDestroy: () => void;
|
|
17
|
-
private initLayer;
|
|
18
|
-
private removeLayer;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RasterTileLayerComponent, "art-raster-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Raster } from 'ol/source';
|
|
2
|
-
import { RasterTileLayerSettings } from './raster-tile-layer.settings';
|
|
3
|
-
import ImageLayer from 'ol/layer/Image';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class RasterTileLayerFactory {
|
|
6
|
-
build(settings: RasterTileLayerSettings): ImageLayer<Raster>;
|
|
7
|
-
private getTileFunc;
|
|
8
|
-
private tileLoader;
|
|
9
|
-
private getNormalizedCoord;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RasterTileLayerFactory, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RasterTileLayerFactory>;
|
|
12
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
export declare class RasterTileLayerSettings {
|
|
2
|
-
/**
|
|
3
|
-
* The maximum zoom level for a map view.
|
|
4
|
-
*
|
|
5
|
-
* @type {number}
|
|
6
|
-
* @default 19
|
|
7
|
-
*/
|
|
8
|
-
maxZoom: number;
|
|
9
|
-
/**
|
|
10
|
-
* The minimum zoom level allowed.
|
|
11
|
-
*
|
|
12
|
-
* @type {number}
|
|
13
|
-
*/
|
|
14
|
-
minZoom: number;
|
|
15
|
-
/**
|
|
16
|
-
* The opacity of an element.
|
|
17
|
-
*
|
|
18
|
-
* @type {number}
|
|
19
|
-
* @default 0.6
|
|
20
|
-
*/
|
|
21
|
-
opacity: number;
|
|
22
|
-
/**
|
|
23
|
-
* Represents the tiles URL.
|
|
24
|
-
* @typedef {string} url
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
28
|
-
*/
|
|
29
|
-
url: string;
|
|
30
|
-
/**
|
|
31
|
-
* The projection of the coordinate system.
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @default 'EPSG:3857'
|
|
35
|
-
*/
|
|
36
|
-
projection: string;
|
|
37
|
-
/**
|
|
38
|
-
* Additional headers that should be added to each tile request
|
|
39
|
-
*
|
|
40
|
-
* @type {Record<string, string>}
|
|
41
|
-
* @default An empty array
|
|
42
|
-
*/
|
|
43
|
-
requestHeaders: Record<string, string> | null;
|
|
44
|
-
/**
|
|
45
|
-
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
46
|
-
*/
|
|
47
|
-
zIndex: number;
|
|
48
|
-
operation: (data: number[][] | ImageData[]) => number[] | ImageData;
|
|
49
|
-
/**
|
|
50
|
-
* Creates a copy of the given tile layer settings.
|
|
51
|
-
*
|
|
52
|
-
* @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
|
|
53
|
-
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
|
|
54
|
-
*/
|
|
55
|
-
static copy(model: RasterTileLayerSettings): RasterTileLayerSettings;
|
|
56
|
-
/**
|
|
57
|
-
* Sets the URL of the RasterTileLayerSettings object.
|
|
58
|
-
*
|
|
59
|
-
* @param {string} url - The URL to be set.
|
|
60
|
-
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
61
|
-
*/
|
|
62
|
-
setUrl(url: string): RasterTileLayerSettings;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the operation to apply on raster tile data.
|
|
65
|
-
*
|
|
66
|
-
* @param {function} operation - A function that takes an input of either a two-dimensional array of numbers or an array of ImageData objects and returns either a one-dimensional array of numbers or an ImageData object.
|
|
67
|
-
* @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
|
|
68
|
-
*/
|
|
69
|
-
setOperation(operation: (data: number[][] | ImageData[]) => number[] | ImageData): RasterTileLayerSettings;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the requestHeaders of the RasterTileLayerSettings object.
|
|
72
|
-
*
|
|
73
|
-
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
74
|
-
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
75
|
-
*/
|
|
76
|
-
setRequestHeaders(requestHeaders: Record<string, string>): RasterTileLayerSettings;
|
|
77
|
-
/**
|
|
78
|
-
* Sets the maximum zoom level for the tile layer.
|
|
79
|
-
*
|
|
80
|
-
* @param {number} maxZoom - The maximum zoom level.
|
|
81
|
-
* @returns {RasterTileLayerSettings} - The updated tile layer settings object.
|
|
82
|
-
*/
|
|
83
|
-
setMaxZoom(maxZoom: number): RasterTileLayerSettings;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the z-index for the RasterTileLayerSettings.
|
|
86
|
-
*
|
|
87
|
-
* @param {number} zIndex - The new z-index to be assigned.
|
|
88
|
-
* @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
|
|
89
|
-
*/
|
|
90
|
-
setZIndex(zIndex: number): RasterTileLayerSettings;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the minimum zoom level for the Tile Layer.
|
|
93
|
-
*
|
|
94
|
-
* @param {number} minZoom - The minimum zoom level to be set.
|
|
95
|
-
* @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
|
|
96
|
-
*/
|
|
97
|
-
setMinZoom(minZoom: number): RasterTileLayerSettings;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the opacity of the RasterTileLayerSettings.
|
|
100
|
-
*
|
|
101
|
-
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
102
|
-
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
|
|
103
|
-
*/
|
|
104
|
-
setOpacity(opacity: number): RasterTileLayerSettings;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the projection for the tile layer settings.
|
|
107
|
-
*
|
|
108
|
-
* @param {string} projection - The desired projection for the tile layer settings.
|
|
109
|
-
* @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
|
|
110
|
-
*/
|
|
111
|
-
setProjection(projection: string): RasterTileLayerSettings;
|
|
112
|
-
/**
|
|
113
|
-
* Checks if the current instance of RasterTileLayerSettings is equal to the given model.
|
|
114
|
-
* @param {RasterTileLayerSettings} model - The model to compare against.
|
|
115
|
-
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
116
|
-
* otherwise, false.
|
|
117
|
-
*/
|
|
118
|
-
isSame(model: RasterTileLayerSettings): boolean;
|
|
119
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
2
|
-
import { XYZ } from 'ol/source';
|
|
3
|
-
import TileLayer from 'ol/layer/Tile';
|
|
4
|
-
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
5
|
-
import { TileLayerFactory } from './tile-layer.factory';
|
|
6
|
-
import { TileLayerSettings } from './tile-layer.settings';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class TileLayerComponent extends DestructibleComponent {
|
|
9
|
-
private postboy;
|
|
10
|
-
private factory;
|
|
11
|
-
layer?: TileLayer<XYZ>;
|
|
12
|
-
constructor(postboy: MapPostboyService, factory: TileLayerFactory);
|
|
13
|
-
_settings: TileLayerSettings;
|
|
14
|
-
set settings(value: TileLayerSettings | undefined);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
onDestroy: () => void;
|
|
17
|
-
private initLayer;
|
|
18
|
-
private removeLayer;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "art-tile-layer", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { XYZ } from 'ol/source';
|
|
2
|
-
import { TileLayerSettings } from './tile-layer.settings';
|
|
3
|
-
import TileLayer from 'ol/layer/Tile';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TileLayerFactory {
|
|
6
|
-
build(settings: TileLayerSettings): TileLayer<XYZ>;
|
|
7
|
-
private getTileFunc;
|
|
8
|
-
private tileLoader;
|
|
9
|
-
private getNormalizedCoord;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerFactory, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TileLayerFactory>;
|
|
12
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class representing settings for a tile layer.
|
|
3
|
-
*/
|
|
4
|
-
export declare class TileLayerSettings {
|
|
5
|
-
/**
|
|
6
|
-
* The maximum zoom level for a map view.
|
|
7
|
-
*
|
|
8
|
-
* @type {number}
|
|
9
|
-
* @default 19
|
|
10
|
-
*/
|
|
11
|
-
maxZoom: number;
|
|
12
|
-
/**
|
|
13
|
-
* The minimum zoom level allowed.
|
|
14
|
-
*
|
|
15
|
-
* @type {number}
|
|
16
|
-
*/
|
|
17
|
-
minZoom: number;
|
|
18
|
-
/**
|
|
19
|
-
* The opacity of an element.
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @default 0.6
|
|
23
|
-
*/
|
|
24
|
-
opacity: number;
|
|
25
|
-
/**
|
|
26
|
-
* Represents the tiles URL.
|
|
27
|
-
* @typedef {string} url
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
31
|
-
*/
|
|
32
|
-
url: string;
|
|
33
|
-
/**
|
|
34
|
-
* The projection of the coordinate system.
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @default 'EPSG:3857'
|
|
38
|
-
*/
|
|
39
|
-
projection: string;
|
|
40
|
-
/**
|
|
41
|
-
* Additional headers that should be added to each tile request
|
|
42
|
-
*
|
|
43
|
-
* @type {Record<string, string>}
|
|
44
|
-
* @default An empty array
|
|
45
|
-
*/
|
|
46
|
-
requestHeaders: Record<string, string> | null;
|
|
47
|
-
/**
|
|
48
|
-
* Creates a copy of the given tile layer settings.
|
|
49
|
-
*
|
|
50
|
-
* @param {TileLayerSettings} model - The tile layer settings to be copied.
|
|
51
|
-
* @return {TileLayerSettings} - A new instance of TileLayerSettings with the same properties as the model.
|
|
52
|
-
*/
|
|
53
|
-
static copy(model: TileLayerSettings): TileLayerSettings;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the URL of the TileLayerSettings object.
|
|
56
|
-
*
|
|
57
|
-
* @param {string} url - The URL to be set.
|
|
58
|
-
* @return {TileLayerSettings} - The updated TileLayerSettings object.
|
|
59
|
-
*/
|
|
60
|
-
setUrl(url: string): TileLayerSettings;
|
|
61
|
-
/**
|
|
62
|
-
* Sets the requestHeaders of the TileLayerSettings object.
|
|
63
|
-
*
|
|
64
|
-
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
65
|
-
* @return {TileLayerSettings} - The updated TileLayerSettings object.
|
|
66
|
-
*/
|
|
67
|
-
setRequestHeaders(requestHeaders: Record<string, string>): TileLayerSettings;
|
|
68
|
-
/**
|
|
69
|
-
* Sets the maximum zoom level for the tile layer.
|
|
70
|
-
*
|
|
71
|
-
* @param {number} maxZoom - The maximum zoom level.
|
|
72
|
-
* @returns {TileLayerSettings} - The updated tile layer settings object.
|
|
73
|
-
*/
|
|
74
|
-
setMaxZoom(maxZoom: number): TileLayerSettings;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the minimum zoom level for the Tile Layer.
|
|
77
|
-
*
|
|
78
|
-
* @param {number} minZoom - The minimum zoom level to be set.
|
|
79
|
-
* @return {TileLayerSettings} The modified TileLayerSettings object with the updated minimum zoom level.
|
|
80
|
-
*/
|
|
81
|
-
setMinZoom(minZoom: number): TileLayerSettings;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the opacity of the TileLayerSettings.
|
|
84
|
-
*
|
|
85
|
-
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
86
|
-
* @return {TileLayerSettings} - A new instance of TileLayerSettings with the opacity set.
|
|
87
|
-
*/
|
|
88
|
-
setOpacity(opacity: number): TileLayerSettings;
|
|
89
|
-
/**
|
|
90
|
-
* Sets the projection for the tile layer settings.
|
|
91
|
-
*
|
|
92
|
-
* @param {string} projection - The desired projection for the tile layer settings.
|
|
93
|
-
* @return {TileLayerSettings} - The updated tile layer settings with the new projection.
|
|
94
|
-
*/
|
|
95
|
-
setProjection(projection: string): TileLayerSettings;
|
|
96
|
-
/**
|
|
97
|
-
* Checks if the current instance of TileLayerSettings is equal to the given model.
|
|
98
|
-
* @param {TileLayerSettings} model - The model to compare against.
|
|
99
|
-
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
100
|
-
* otherwise, false.
|
|
101
|
-
*/
|
|
102
|
-
isSame(model: TileLayerSettings): boolean;
|
|
103
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { MapSettings } from '../models';
|
|
3
|
-
import Map from 'ol/Map';
|
|
4
|
-
import { DestructibleComponent } from '../common/destructible.component';
|
|
5
|
-
import { MessageRegistratorService } from '../services/message-registrator.service';
|
|
6
|
-
import { MapPostboyService } from '../services/map-postboy.service';
|
|
7
|
-
import { MapPlateFactory } from './map-plate.factory.service';
|
|
8
|
-
import { FeatureLayerSettings } from './layers';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class MapPlateComponent extends DestructibleComponent implements AfterViewInit {
|
|
11
|
-
private elementRef;
|
|
12
|
-
private postboy;
|
|
13
|
-
private mapFactory;
|
|
14
|
-
private registrator;
|
|
15
|
-
private detector;
|
|
16
|
-
contentRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
17
|
-
private renderTryCount;
|
|
18
|
-
map: Map;
|
|
19
|
-
osmUrl: string;
|
|
20
|
-
drawingLayerSettings: FeatureLayerSettings;
|
|
21
|
-
constructor(elementRef: ElementRef, postboy: MapPostboyService, mapFactory: MapPlateFactory, registrator: MessageRegistratorService, detector: ChangeDetectorRef);
|
|
22
|
-
_settings: MapSettings;
|
|
23
|
-
set settings(value: MapSettings | undefined);
|
|
24
|
-
private initializeMap;
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
onDestroy: () => void;
|
|
27
|
-
private setOsm;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapPlateComponent, "art-map-plate", never, { "contentRef": { "alias": "contentRef"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import Map from 'ol/Map';
|
|
2
|
-
import { MapSettings } from '../models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MapPlateFactory {
|
|
5
|
-
build(settings: MapSettings): Map;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapPlateFactory, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapPlateFactory>;
|
|
8
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { TooltipSettings } from './tooltip.settings';
|
|
3
|
-
import { DestructibleComponent } from '../../../common/destructible.component';
|
|
4
|
-
import { MapPostboyService } from '../../../services/map-postboy.service';
|
|
5
|
-
import Overlay, { Options as OverlayOptions } from 'ol/Overlay';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TooltipComponent extends DestructibleComponent implements OnInit {
|
|
8
|
-
private postboy;
|
|
9
|
-
private detector;
|
|
10
|
-
contentRef: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
11
|
-
container: ElementRef<HTMLElement>;
|
|
12
|
-
overlay?: Overlay;
|
|
13
|
-
show: boolean;
|
|
14
|
-
private map?;
|
|
15
|
-
constructor(postboy: MapPostboyService, detector: ChangeDetectorRef);
|
|
16
|
-
_settings: TooltipSettings;
|
|
17
|
-
set settings(value: TooltipSettings | undefined);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
addOverlay(coordinates: number[]): void;
|
|
20
|
-
options: (coordinates: number[]) => OverlayOptions;
|
|
21
|
-
private observeMapClick;
|
|
22
|
-
private observeClose;
|
|
23
|
-
private observeMapRender;
|
|
24
|
-
private removeOverlay;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "art-tooltip", never, { "contentRef": { "alias": "contentRef"; "required": true; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MapClickEvent } from '../../../messages';
|
|
2
|
-
export declare class TooltipSettings {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
containerClass: string;
|
|
5
|
-
constructor(id?: string);
|
|
6
|
-
static copy(model: TooltipSettings): TooltipSettings;
|
|
7
|
-
show: (ev: MapClickEvent) => boolean;
|
|
8
|
-
setShow(show: (ev: MapClickEvent) => boolean): TooltipSettings;
|
|
9
|
-
setClass(containerClass: string): TooltipSettings;
|
|
10
|
-
isSame(model: TooltipSettings): boolean;
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
-
import { MapControl } from '../../models/map-control';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a command to add a custom control to a map.
|
|
5
|
-
*/
|
|
6
|
-
export declare class AddControlCommand extends PostboyGenericMessage {
|
|
7
|
-
item: MapControl;
|
|
8
|
-
static readonly ID = "2921fb19-f1c4-4bf4-97be-001f98241f3b";
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of the class with the specified MapControl object.
|
|
11
|
-
*
|
|
12
|
-
* @param {MapControl} item - The MapControl object to be associated with the instance.
|
|
13
|
-
*/
|
|
14
|
-
constructor(item: MapControl);
|
|
15
|
-
}
|