@artstesh/maps 5.1.19 → 5.1.21

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,4 +5,5 @@ export * from './polygon.model';
5
5
  export * from './drawing-type.enum';
6
6
  export * from './feature-format.enum';
7
7
  export * from './map-control';
8
+ export * from './map.constants';
8
9
  export * from './map-position.model';
@@ -1,4 +1,5 @@
1
1
  import { MapLyrs } from './map-lyrs.enum';
2
+ import { DefaultsOptions } from 'ol/interaction';
2
3
  /**
3
4
  * Represents the configurable settings for a map instance, providing
4
5
  * options for center coordinates, zoom levels, map layers, and language.
@@ -10,7 +11,16 @@ export declare class MapSettings {
10
11
  zoom: number;
11
12
  lyrs: MapLyrs;
12
13
  language: string;
14
+ interactionSettings: DefaultsOptions;
13
15
  static copy(model: MapSettings): MapSettings;
16
+ /**
17
+ * Updates the interaction settings of the map and returns a new MapSettings instance
18
+ * with the updated settings.
19
+ *
20
+ * @param {DefaultsOptions} interactionSettings - The new interaction settings to be applied.
21
+ * @return {MapSettings} A new MapSettings instance with the updated interaction settings.
22
+ */
23
+ setInteractionSettings(interactionSettings: DefaultsOptions): MapSettings;
14
24
  /**
15
25
  * Sets the center for the map settings.
16
26
  *
@@ -16,4 +16,7 @@ export declare class PolygonModel {
16
16
  static fromWKT(id: string | number, wkt: string, info?: {
17
17
  [id: string]: any;
18
18
  }): PolygonModel;
19
+ static circle(id: string | number, lat: number, lng: number, radius: number, info?: {
20
+ [id: string]: any;
21
+ }): PolygonModel;
19
22
  }
package/dist/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "@angular/core": "^16.0.0",
7
7
  "ol-geocoder": "^4.0.0",
8
8
  "ol": "^6.9.0",
9
- "@artstesh/postboy": "^2.1.1",
9
+ "@artstesh/postboy": "^2.1.4",
10
10
  "@artstesh/collections": "^1.0.0"
11
11
  },
12
12
  "dependencies": {
@@ -5,4 +5,5 @@ export * from './polygon.model';
5
5
  export * from './drawing-type.enum';
6
6
  export * from './feature-format.enum';
7
7
  export * from './map-control';
8
+ export * from './map.constants';
8
9
  export * from './map-position.model';
@@ -1,4 +1,5 @@
1
1
  import { MapLyrs } from './map-lyrs.enum';
2
+ import { DefaultsOptions } from 'ol/interaction';
2
3
  /**
3
4
  * Represents the configurable settings for a map instance, providing
4
5
  * options for center coordinates, zoom levels, map layers, and language.
@@ -10,7 +11,16 @@ export declare class MapSettings {
10
11
  zoom: number;
11
12
  lyrs: MapLyrs;
12
13
  language: string;
14
+ interactionSettings: DefaultsOptions;
13
15
  static copy(model: MapSettings): MapSettings;
16
+ /**
17
+ * Updates the interaction settings of the map and returns a new MapSettings instance
18
+ * with the updated settings.
19
+ *
20
+ * @param {DefaultsOptions} interactionSettings - The new interaction settings to be applied.
21
+ * @return {MapSettings} A new MapSettings instance with the updated interaction settings.
22
+ */
23
+ setInteractionSettings(interactionSettings: DefaultsOptions): MapSettings;
14
24
  /**
15
25
  * Sets the center for the map settings.
16
26
  *
@@ -16,4 +16,7 @@ export declare class PolygonModel {
16
16
  static fromWKT(id: string | number, wkt: string, info?: {
17
17
  [id: string]: any;
18
18
  }): PolygonModel;
19
+ static circle(id: string | number, lat: number, lng: number, radius: number, info?: {
20
+ [id: string]: any;
21
+ }): PolygonModel;
19
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "5.1.19",
3
+ "version": "5.1.21",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",
@@ -40,7 +40,7 @@
40
40
  "@angular/compiler": "^16.0.0",
41
41
  "@angular/core": "^16.0.0",
42
42
  "@artstesh/collections": "^1.0.1",
43
- "@artstesh/postboy": "^2.1.1",
43
+ "@artstesh/postboy": "^2.1.4",
44
44
  "ol": "^6.9.0",
45
45
  "ol-geocoder": "^4.0.0",
46
46
  "rxjs": "^7.0.0",