@mapcreator/api 2.7.0 → 2.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcreator/api",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "Mapcreator JavaScript API",
5
5
  "main": "dist/bundle.js",
6
6
  "repository": "https://gitlab.com/mapcreator/api-wrapper.git",
package/src/Mapcreator.js CHANGED
@@ -72,6 +72,7 @@ import {
72
72
  VectorChoropleth,
73
73
  ProductTour,
74
74
  ProductTourStep,
75
+ LayerFaq,
75
76
  } from './resources';
76
77
  import ResourceBase from './resources/base/ResourceBase';
77
78
  import Injectable from './traits/Injectable';
@@ -536,6 +537,15 @@ export default class Mapcreator extends mix(EventEmitter, Injectable) {
536
537
  return this.static(Layer);
537
538
  }
538
539
 
540
+ /**
541
+ * LayerFaq accessor
542
+ * @see {@link LayerFaq}
543
+ * @returns {ResourceProxy} - A proxy for accessing the resource
544
+ */
545
+ get layerFaqs () {
546
+ return this.static(LayerFaq);
547
+ }
548
+
539
549
  /**
540
550
  * Layer group accessor
541
551
  * @see {@link LayerGroup}
@@ -0,0 +1,47 @@
1
+ /*
2
+ * BSD 3-Clause License
3
+ *
4
+ * Copyright (c) 2022, Mapcreator
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ *
10
+ * Redistributions of source code must retain the above copyright notice, this
11
+ * list of conditions and the following disclaimer.
12
+ *
13
+ * Redistributions in binary form must reproduce the above copyright notice,
14
+ * this list of conditions and the following disclaimer in the documentation
15
+ * and/or other materials provided with the distribution.
16
+ *
17
+ * Neither the name of the copyright holder nor the names of its
18
+ * contributors may be used to endorse or promote products derived from
19
+ * this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
33
+ import CrudSetItemBase from './base/CrudSetItemBase';
34
+
35
+ /**
36
+ * LayerFaq
37
+ * @extends CrudSetItemBase
38
+ */
39
+ export default class LayerFaq extends CrudSetItemBase {
40
+ static get resourceName () {
41
+ return 'layer-faqs';
42
+ }
43
+
44
+ static get parentKey () {
45
+ return 'layer_group_id';
46
+ }
47
+ }
@@ -37,7 +37,7 @@ import CrudSetBase from './base/CrudSetBase';
37
37
  import { OwnedResourceProxy } from '../proxy';
38
38
 
39
39
  /**
40
- * Layer
40
+ * LayerGroup
41
41
  * @extends CrudBase
42
42
  * @mixes OwnableResource
43
43
  * @mixes HandlesImages
@@ -49,6 +49,7 @@ export JobShare from './JobShare';
49
49
  export JobType from './JobType';
50
50
  export Language from './Language';
51
51
  export Layer from './Layer';
52
+ export LayerFaq from './LayerFaq';
52
53
  export Mapstyle from './Mapstyle';
53
54
  export MapstyleSet from './MapstyleSet';
54
55
  export Message from './Message';