@artstesh/maps 6.0.3 → 6.0.5

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.
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class TileLayerFactory {
6
6
  build(settings: TileLayerSettings): TileLayer<XYZ>;
7
7
  private getTileFunc;
8
+ private tileLoader;
8
9
  private getNormalizedCoord;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerFactory, never>;
10
11
  static ɵprov: i0.ɵɵInjectableDeclaration<TileLayerFactory>;
@@ -37,6 +37,13 @@ export declare class TileLayerSettings {
37
37
  * @default 'EPSG:3857'
38
38
  */
39
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;
40
47
  /**
41
48
  * Creates a copy of the given tile layer settings.
42
49
  *
@@ -51,6 +58,13 @@ export declare class TileLayerSettings {
51
58
  * @return {TileLayerSettings} - The updated TileLayerSettings object.
52
59
  */
53
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;
54
68
  /**
55
69
  * Sets the maximum zoom level for the tile layer.
56
70
  *
@@ -13,3 +13,4 @@ export * from './commands/set-map-center.command';
13
13
  export * from './executors/calculate-area.executor';
14
14
  export * from './commands/fit-to-polygons.command';
15
15
  export * from './executors/get-map-position.executor';
16
+ export * from './queries/get-features-in-area.query';
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class TileLayerFactory {
6
6
  build(settings: TileLayerSettings): TileLayer<XYZ>;
7
7
  private getTileFunc;
8
+ private tileLoader;
8
9
  private getNormalizedCoord;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerFactory, never>;
10
11
  static ɵprov: i0.ɵɵInjectableDeclaration<TileLayerFactory>;
@@ -37,6 +37,13 @@ export declare class TileLayerSettings {
37
37
  * @default 'EPSG:3857'
38
38
  */
39
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;
40
47
  /**
41
48
  * Creates a copy of the given tile layer settings.
42
49
  *
@@ -51,6 +58,13 @@ export declare class TileLayerSettings {
51
58
  * @return {TileLayerSettings} - The updated TileLayerSettings object.
52
59
  */
53
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;
54
68
  /**
55
69
  * Sets the maximum zoom level for the tile layer.
56
70
  *
@@ -13,3 +13,4 @@ export * from './commands/set-map-center.command';
13
13
  export * from './executors/calculate-area.executor';
14
14
  export * from './commands/fit-to-polygons.command';
15
15
  export * from './executors/get-map-position.executor';
16
+ export * from './queries/get-features-in-area.query';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",