@artstesh/maps 5.1.1 → 5.1.2

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.
@@ -1,15 +1,61 @@
1
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
+ */
2
5
  export declare class FeatureLayerSettings {
6
+ /**
7
+ * The identifier of the field, it is autogenerated by default, but can be set manually
8
+ */
3
9
  name: string;
10
+ /**
11
+ * The priority of showing - layers with higher zIndex cover others in case of collisions
12
+ */
4
13
  zIndex: number;
14
+ /**
15
+ * The maximum zoom at which the layer is visible. 19 by default
16
+ */
5
17
  maxZoom: number;
18
+ /**
19
+ * The minimum zoom at which the layer is visible. 0 by default
20
+ */
6
21
  minZoom: number;
22
+ /**
23
+ * The styling definition of layer's features. The easiest way is to use {@link PolygonStyleHelper},{@link MarkerStyleHelper}
24
+ */
7
25
  style?: Style | StyleFunction;
26
+ /**
27
+ * Creates a clone of the existing settings
28
+ * @param model
29
+ */
8
30
  static copy(model: FeatureLayerSettings): FeatureLayerSettings;
31
+ /**
32
+ Setter for {@link FeatureLayerSettings.zIndex}
33
+ * @param zIndex
34
+ */
9
35
  setZIndex(zIndex: number): FeatureLayerSettings;
36
+ /**
37
+ * Setter for {@link FeatureLayerSettings.name}
38
+ * @param name
39
+ */
10
40
  setName(name: string): FeatureLayerSettings;
41
+ /**
42
+ * Setter for {@link FeatureLayerSettings.maxZoom}
43
+ * @param maxZoom
44
+ */
11
45
  setMaxZoom(maxZoom: number): FeatureLayerSettings;
46
+ /**
47
+ * Setter for {@link FeatureLayerSettings.minZoom}
48
+ * @param minZoom
49
+ */
12
50
  setMinZoom(minZoom: number): FeatureLayerSettings;
51
+ /**
52
+ * Setter for {@link FeatureLayerSettings.style}
53
+ * @param style
54
+ */
13
55
  setStyle(style: Style | StyleFunction): FeatureLayerSettings;
56
+ /**
57
+ * Checks if the model has the same content
58
+ * @param model - the object to compare
59
+ */
14
60
  isSame(model: FeatureLayerSettings): boolean;
15
61
  }
@@ -1,15 +1,61 @@
1
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
+ */
2
5
  export declare class FeatureLayerSettings {
6
+ /**
7
+ * The identifier of the field, it is autogenerated by default, but can be set manually
8
+ */
3
9
  name: string;
10
+ /**
11
+ * The priority of showing - layers with higher zIndex cover others in case of collisions
12
+ */
4
13
  zIndex: number;
14
+ /**
15
+ * The maximum zoom at which the layer is visible. 19 by default
16
+ */
5
17
  maxZoom: number;
18
+ /**
19
+ * The minimum zoom at which the layer is visible. 0 by default
20
+ */
6
21
  minZoom: number;
22
+ /**
23
+ * The styling definition of layer's features. The easiest way is to use {@link PolygonStyleHelper},{@link MarkerStyleHelper}
24
+ */
7
25
  style?: Style | StyleFunction;
26
+ /**
27
+ * Creates a clone of the existing settings
28
+ * @param model
29
+ */
8
30
  static copy(model: FeatureLayerSettings): FeatureLayerSettings;
31
+ /**
32
+ Setter for {@link FeatureLayerSettings.zIndex}
33
+ * @param zIndex
34
+ */
9
35
  setZIndex(zIndex: number): FeatureLayerSettings;
36
+ /**
37
+ * Setter for {@link FeatureLayerSettings.name}
38
+ * @param name
39
+ */
10
40
  setName(name: string): FeatureLayerSettings;
41
+ /**
42
+ * Setter for {@link FeatureLayerSettings.maxZoom}
43
+ * @param maxZoom
44
+ */
11
45
  setMaxZoom(maxZoom: number): FeatureLayerSettings;
46
+ /**
47
+ * Setter for {@link FeatureLayerSettings.minZoom}
48
+ * @param minZoom
49
+ */
12
50
  setMinZoom(minZoom: number): FeatureLayerSettings;
51
+ /**
52
+ * Setter for {@link FeatureLayerSettings.style}
53
+ * @param style
54
+ */
13
55
  setStyle(style: Style | StyleFunction): FeatureLayerSettings;
56
+ /**
57
+ * Checks if the model has the same content
58
+ * @param model - the object to compare
59
+ */
14
60
  isSame(model: FeatureLayerSettings): boolean;
15
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",