@artstesh/maps 5.0.11 → 5.1.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 (35) hide show
  1. package/dist/esm2022/map/map-plate/controls/index.mjs +3 -0
  2. package/dist/esm2022/map/map-plate/controls/map-control-zoom/map-control-zoom.component.mjs +52 -0
  3. package/dist/esm2022/map/map-plate/controls/map-control-zoom/zoom-control.factory.mjs +13 -0
  4. package/dist/esm2022/map/map-plate/controls/map-control-zoom/zoom-control.settings.mjs +45 -0
  5. package/dist/esm2022/map/map.module.mjs +8 -3
  6. package/dist/esm2022/map/messages/executors/generate-zoom-control.executor.mjs +13 -0
  7. package/dist/esm2022/map/public-api.mjs +2 -1
  8. package/dist/esm2022/map/services/message-registrator.service.mjs +4 -1
  9. package/dist/esm2022/src/map/map-plate/controls/index.mjs +3 -0
  10. package/dist/esm2022/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.mjs +52 -0
  11. package/dist/esm2022/src/map/map-plate/controls/map-control-zoom/zoom-control.factory.mjs +13 -0
  12. package/dist/esm2022/src/map/map-plate/controls/map-control-zoom/zoom-control.settings.mjs +45 -0
  13. package/dist/esm2022/src/map/map.module.mjs +8 -3
  14. package/dist/esm2022/src/map/messages/executors/generate-zoom-control.executor.mjs +13 -0
  15. package/dist/esm2022/src/map/public-api.mjs +2 -1
  16. package/dist/esm2022/src/map/services/message-registrator.service.mjs +4 -1
  17. package/dist/fesm2022/maps-components-src-map.mjs +122 -3
  18. package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
  19. package/dist/fesm2022/maps-components.mjs +122 -3
  20. package/dist/fesm2022/maps-components.mjs.map +1 -1
  21. package/dist/map/map-plate/controls/index.d.ts +2 -0
  22. package/dist/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +19 -0
  23. package/dist/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +5 -0
  24. package/dist/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +14 -0
  25. package/dist/map/map.module.d.ts +3 -2
  26. package/dist/map/messages/executors/generate-zoom-control.executor.d.ts +9 -0
  27. package/dist/map/public-api.d.ts +1 -0
  28. package/dist/src/map/map-plate/controls/index.d.ts +2 -0
  29. package/dist/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +19 -0
  30. package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.factory.d.ts +5 -0
  31. package/dist/src/map/map-plate/controls/map-control-zoom/zoom-control.settings.d.ts +14 -0
  32. package/dist/src/map/map.module.d.ts +3 -2
  33. package/dist/src/map/messages/executors/generate-zoom-control.executor.d.ts +9 -0
  34. package/dist/src/map/public-api.d.ts +1 -0
  35. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export * from './map-control-zoom/zoom-control.settings';
2
+ export * from './map-control-zoom/map-control-zoom.component';
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MapPostboyService } from '../../../services/map-postboy.service';
3
+ import { DestructibleComponent } from '../../../common/destructible.component';
4
+ import { ZoomControlSettings } from './zoom-control.settings';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MapControlZoomComponent extends DestructibleComponent implements OnInit {
7
+ private postboy;
8
+ private _settings;
9
+ private map?;
10
+ private control?;
11
+ set settings(value: ZoomControlSettings | undefined);
12
+ constructor(postboy: MapPostboyService);
13
+ ngOnInit(): void;
14
+ private setControl;
15
+ onDestroy: () => void;
16
+ private eliminate;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapControlZoomComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapControlZoomComponent, "lib-map-control-zoom", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { ZoomControlSettings } from './zoom-control.settings';
2
+ import { Zoom } from 'ol/control';
3
+ export declare class ZoomControlFactory {
4
+ static build(settings: ZoomControlSettings): Zoom;
5
+ }
@@ -0,0 +1,14 @@
1
+ export declare class ZoomControlSettings {
2
+ controlClass: string;
3
+ zoomInClass: string;
4
+ zoomOutClass: string;
5
+ zoomInLabel: string;
6
+ zoomOutLabel: string;
7
+ static copy(model: ZoomControlSettings): ZoomControlSettings;
8
+ isSame(model: ZoomControlSettings): boolean;
9
+ setZoomInLabel(zoomInLabel: string): ZoomControlSettings;
10
+ setZoomOutClass(zoomOutClass: string): ZoomControlSettings;
11
+ setZoomInClass(zoomInClass: string): ZoomControlSettings;
12
+ setZoomOutLabel(zoomOutLabel: string): ZoomControlSettings;
13
+ setControlClass(controlClass: string): ZoomControlSettings;
14
+ }
@@ -8,9 +8,10 @@ import * as i6 from "./map-plate/features/markers/markers.component";
8
8
  import * as i7 from "./map-plate/tooltips/tooltip/tooltip.component";
9
9
  import * as i8 from "./map-plate/features/polygons/polygons.component";
10
10
  import * as i9 from "./map-plate/layers/cluster-layer/cluster-layer.component";
11
- import * as i10 from "@angular/common";
11
+ import * as i10 from "./map-plate/controls/map-control-zoom/map-control-zoom.component";
12
+ import * as i11 from "@angular/common";
12
13
  export declare class MapModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.DestructibleComponent, typeof i2.MapPlateComponent, typeof i3.TileLayerComponent, typeof i4.OsmTileLayerComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent], [typeof i10.CommonModule], [typeof i2.MapPlateComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i3.TileLayerComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.DestructibleComponent, typeof i2.MapPlateComponent, typeof i3.TileLayerComponent, typeof i4.OsmTileLayerComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent, typeof i10.MapControlZoomComponent], [typeof i11.CommonModule], [typeof i2.MapPlateComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i3.TileLayerComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent, typeof i10.MapControlZoomComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
16
17
  }
@@ -0,0 +1,9 @@
1
+ import { PostboyExecutor } from '@artstesh/postboy';
2
+ import { Draw } from 'ol/interaction';
3
+ import { ZoomControlSettings } from '../../map-plate/controls/map-control-zoom/zoom-control.settings';
4
+ export declare class GenerateZoomControlExecutor extends PostboyExecutor<Draw> {
5
+ settings: ZoomControlSettings;
6
+ static readonly ID: string;
7
+ constructor(settings: ZoomControlSettings);
8
+ get id(): string;
9
+ }
@@ -8,4 +8,5 @@ export * from './map-plate/features/index';
8
8
  export * from './services/map-postboy.service';
9
9
  export * from './services/message-registrator.service';
10
10
  export * from './helpers/index';
11
+ export * from './map-plate/controls/index';
11
12
  export * from './map-plate/tooltips/index';
@@ -0,0 +1,2 @@
1
+ export * from './map-control-zoom/zoom-control.settings';
2
+ export * from './map-control-zoom/map-control-zoom.component';
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MapPostboyService } from '../../../services/map-postboy.service';
3
+ import { DestructibleComponent } from '../../../common/destructible.component';
4
+ import { ZoomControlSettings } from './zoom-control.settings';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MapControlZoomComponent extends DestructibleComponent implements OnInit {
7
+ private postboy;
8
+ private _settings;
9
+ private map?;
10
+ private control?;
11
+ set settings(value: ZoomControlSettings | undefined);
12
+ constructor(postboy: MapPostboyService);
13
+ ngOnInit(): void;
14
+ private setControl;
15
+ onDestroy: () => void;
16
+ private eliminate;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapControlZoomComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapControlZoomComponent, "lib-map-control-zoom", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { ZoomControlSettings } from './zoom-control.settings';
2
+ import { Zoom } from 'ol/control';
3
+ export declare class ZoomControlFactory {
4
+ static build(settings: ZoomControlSettings): Zoom;
5
+ }
@@ -0,0 +1,14 @@
1
+ export declare class ZoomControlSettings {
2
+ controlClass: string;
3
+ zoomInClass: string;
4
+ zoomOutClass: string;
5
+ zoomInLabel: string;
6
+ zoomOutLabel: string;
7
+ static copy(model: ZoomControlSettings): ZoomControlSettings;
8
+ isSame(model: ZoomControlSettings): boolean;
9
+ setZoomInLabel(zoomInLabel: string): ZoomControlSettings;
10
+ setZoomOutClass(zoomOutClass: string): ZoomControlSettings;
11
+ setZoomInClass(zoomInClass: string): ZoomControlSettings;
12
+ setZoomOutLabel(zoomOutLabel: string): ZoomControlSettings;
13
+ setControlClass(controlClass: string): ZoomControlSettings;
14
+ }
@@ -8,9 +8,10 @@ import * as i6 from "./map-plate/features/markers/markers.component";
8
8
  import * as i7 from "./map-plate/tooltips/tooltip/tooltip.component";
9
9
  import * as i8 from "./map-plate/features/polygons/polygons.component";
10
10
  import * as i9 from "./map-plate/layers/cluster-layer/cluster-layer.component";
11
- import * as i10 from "@angular/common";
11
+ import * as i10 from "./map-plate/controls/map-control-zoom/map-control-zoom.component";
12
+ import * as i11 from "@angular/common";
12
13
  export declare class MapModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.DestructibleComponent, typeof i2.MapPlateComponent, typeof i3.TileLayerComponent, typeof i4.OsmTileLayerComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent], [typeof i10.CommonModule], [typeof i2.MapPlateComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i3.TileLayerComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.DestructibleComponent, typeof i2.MapPlateComponent, typeof i3.TileLayerComponent, typeof i4.OsmTileLayerComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent, typeof i10.MapControlZoomComponent], [typeof i11.CommonModule], [typeof i2.MapPlateComponent, typeof i5.FeatureLayerComponent, typeof i6.MarkersComponent, typeof i3.TileLayerComponent, typeof i7.TooltipComponent, typeof i8.PolygonsComponent, typeof i9.ClusterLayerComponent, typeof i10.MapControlZoomComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
16
17
  }
@@ -0,0 +1,9 @@
1
+ import { PostboyExecutor } from '@artstesh/postboy';
2
+ import { Draw } from 'ol/interaction';
3
+ import { ZoomControlSettings } from '../../map-plate/controls/map-control-zoom/zoom-control.settings';
4
+ export declare class GenerateZoomControlExecutor extends PostboyExecutor<Draw> {
5
+ settings: ZoomControlSettings;
6
+ static readonly ID: string;
7
+ constructor(settings: ZoomControlSettings);
8
+ get id(): string;
9
+ }
@@ -8,4 +8,5 @@ export * from './map-plate/features/index';
8
8
  export * from './services/map-postboy.service';
9
9
  export * from './services/message-registrator.service';
10
10
  export * from './helpers/index';
11
+ export * from './map-plate/controls/index';
11
12
  export * from './map-plate/tooltips/index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "5.0.11",
3
+ "version": "5.1.0",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",