@kadaster/ggc-models 0.0.1
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/LICENSE.md +288 -0
- package/README.md +47 -0
- package/fesm2022/kadaster-ggc-models.mjs +85 -0
- package/fesm2022/kadaster-ggc-models.mjs.map +1 -0
- package/package.json +28 -0
- package/types/kadaster-ggc-models.d.ts +129 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
# EUROPEAN UNION PUBLIC LICENCE v. 1.2
|
|
2
|
+
|
|
3
|
+
EUPL © the European Union 2007, 2016
|
|
4
|
+
|
|
5
|
+
This European Union Public Licence (the ‘EUPL’) applies to the Work (as defined
|
|
6
|
+
below) which is provided under the terms of this Licence. Any use of the Work,
|
|
7
|
+
other than as authorised under this Licence is prohibited (to the extent such
|
|
8
|
+
use is covered by a right of the copyright holder of the Work).
|
|
9
|
+
|
|
10
|
+
The Work is provided under the terms of this Licence when the Licensor (as
|
|
11
|
+
defined below) has placed the following notice immediately following the
|
|
12
|
+
copyright notice for the Work:
|
|
13
|
+
|
|
14
|
+
Licensed under the EUPL
|
|
15
|
+
|
|
16
|
+
or has expressed by any other means his willingness to license under the EUPL.
|
|
17
|
+
|
|
18
|
+
## 1. Definitions
|
|
19
|
+
|
|
20
|
+
In this Licence, the following terms have the following meaning:
|
|
21
|
+
|
|
22
|
+
- ‘The Licence’: this Licence.
|
|
23
|
+
|
|
24
|
+
- ‘The Original Work’: the work or software distributed or communicated by the
|
|
25
|
+
Licensor under this Licence, available as Source Code and also as Executable
|
|
26
|
+
Code as the case may be.
|
|
27
|
+
|
|
28
|
+
- ‘Derivative Works’: the works or software that could be created by the
|
|
29
|
+
Licensee, based upon the Original Work or modifications thereof. This Licence
|
|
30
|
+
does not define the extent of modification or dependence on the Original Work
|
|
31
|
+
required in order to classify a work as a Derivative Work; this extent is
|
|
32
|
+
determined by copyright law applicable in the country mentioned in Article 15.
|
|
33
|
+
|
|
34
|
+
- ‘The Work’: the Original Work or its Derivative Works.
|
|
35
|
+
|
|
36
|
+
- ‘The Source Code’: the human-readable form of the Work which is the most
|
|
37
|
+
convenient for people to study and modify.
|
|
38
|
+
|
|
39
|
+
- ‘The Executable Code’: any code which has generally been compiled and which is
|
|
40
|
+
meant to be interpreted by a computer as a program.
|
|
41
|
+
|
|
42
|
+
- ‘The Licensor’: the natural or legal person that distributes or communicates
|
|
43
|
+
the Work under the Licence.
|
|
44
|
+
|
|
45
|
+
- ‘Contributor(s)’: any natural or legal person who modifies the Work under the
|
|
46
|
+
Licence, or otherwise contributes to the creation of a Derivative Work.
|
|
47
|
+
|
|
48
|
+
- ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
|
|
49
|
+
the Work under the terms of the Licence.
|
|
50
|
+
|
|
51
|
+
- ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
|
|
52
|
+
renting, distributing, communicating, transmitting, or otherwise making
|
|
53
|
+
available, online or offline, copies of the Work or providing access to its
|
|
54
|
+
essential functionalities at the disposal of any other natural or legal
|
|
55
|
+
person.
|
|
56
|
+
|
|
57
|
+
## 2. Scope of the rights granted by the Licence
|
|
58
|
+
|
|
59
|
+
The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
|
|
60
|
+
sublicensable licence to do the following, for the duration of copyright vested
|
|
61
|
+
in the Original Work:
|
|
62
|
+
|
|
63
|
+
- use the Work in any circumstance and for all usage,
|
|
64
|
+
- reproduce the Work,
|
|
65
|
+
- modify the Work, and make Derivative Works based upon the Work,
|
|
66
|
+
- communicate to the public, including the right to make available or display
|
|
67
|
+
the Work or copies thereof to the public and perform publicly, as the case may
|
|
68
|
+
be, the Work,
|
|
69
|
+
- distribute the Work or copies thereof,
|
|
70
|
+
- lend and rent the Work or copies thereof,
|
|
71
|
+
- sublicense rights in the Work or copies thereof.
|
|
72
|
+
|
|
73
|
+
Those rights can be exercised on any media, supports and formats, whether now
|
|
74
|
+
known or later invented, as far as the applicable law permits so.
|
|
75
|
+
|
|
76
|
+
In the countries where moral rights apply, the Licensor waives his right to
|
|
77
|
+
exercise his moral right to the extent allowed by law in order to make effective
|
|
78
|
+
the licence of the economic rights here above listed.
|
|
79
|
+
|
|
80
|
+
The Licensor grants to the Licensee royalty-free, non-exclusive usage rights to
|
|
81
|
+
any patents held by the Licensor, to the extent necessary to make use of the
|
|
82
|
+
rights granted on the Work under this Licence.
|
|
83
|
+
|
|
84
|
+
## 3. Communication of the Source Code
|
|
85
|
+
|
|
86
|
+
The Licensor may provide the Work either in its Source Code form, or as
|
|
87
|
+
Executable Code. If the Work is provided as Executable Code, the Licensor
|
|
88
|
+
provides in addition a machine-readable copy of the Source Code of the Work
|
|
89
|
+
along with each copy of the Work that the Licensor distributes or indicates, in
|
|
90
|
+
a notice following the copyright notice attached to the Work, a repository where
|
|
91
|
+
the Source Code is easily and freely accessible for as long as the Licensor
|
|
92
|
+
continues to distribute or communicate the Work.
|
|
93
|
+
|
|
94
|
+
## 4. Limitations on copyright
|
|
95
|
+
|
|
96
|
+
Nothing in this Licence is intended to deprive the Licensee of the benefits from
|
|
97
|
+
any exception or limitation to the exclusive rights of the rights owners in the
|
|
98
|
+
Work, of the exhaustion of those rights or of other applicable limitations
|
|
99
|
+
thereto.
|
|
100
|
+
|
|
101
|
+
## 5. Obligations of the Licensee
|
|
102
|
+
|
|
103
|
+
The grant of the rights mentioned above is subject to some restrictions and
|
|
104
|
+
obligations imposed on the Licensee. Those obligations are the following:
|
|
105
|
+
|
|
106
|
+
Attribution right: The Licensee shall keep intact all copyright, patent or
|
|
107
|
+
trademarks notices and all notices that refer to the Licence and to the
|
|
108
|
+
disclaimer of warranties. The Licensee must include a copy of such notices and a
|
|
109
|
+
copy of the Licence with every copy of the Work he/she distributes or
|
|
110
|
+
communicates. The Licensee must cause any Derivative Work to carry prominent
|
|
111
|
+
notices stating that the Work has been modified and the date of modification.
|
|
112
|
+
|
|
113
|
+
Copyleft clause: If the Licensee distributes or communicates copies of the
|
|
114
|
+
Original Works or Derivative Works, this Distribution or Communication will be
|
|
115
|
+
done under the terms of this Licence or of a later version of this Licence
|
|
116
|
+
unless the Original Work is expressly distributed only under this version of the
|
|
117
|
+
Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
|
|
118
|
+
(becoming Licensor) cannot offer or impose any additional terms or conditions on
|
|
119
|
+
the Work or Derivative Work that alter or restrict the terms of the Licence.
|
|
120
|
+
|
|
121
|
+
Compatibility clause: If the Licensee Distributes or Communicates Derivative
|
|
122
|
+
Works or copies thereof based upon both the Work and another work licensed under
|
|
123
|
+
a Compatible Licence, this Distribution or Communication can be done under the
|
|
124
|
+
terms of this Compatible Licence. For the sake of this clause, ‘Compatible
|
|
125
|
+
Licence’ refers to the licences listed in the appendix attached to this Licence.
|
|
126
|
+
Should the Licensee's obligations under the Compatible Licence conflict with
|
|
127
|
+
his/her obligations under this Licence, the obligations of the Compatible
|
|
128
|
+
Licence shall prevail.
|
|
129
|
+
|
|
130
|
+
Provision of Source Code: When distributing or communicating copies of the Work,
|
|
131
|
+
the Licensee will provide a machine-readable copy of the Source Code or indicate
|
|
132
|
+
a repository where this Source will be easily and freely available for as long
|
|
133
|
+
as the Licensee continues to distribute or communicate the Work.
|
|
134
|
+
|
|
135
|
+
Legal Protection: This Licence does not grant permission to use the trade names,
|
|
136
|
+
trademarks, service marks, or names of the Licensor, except as required for
|
|
137
|
+
reasonable and customary use in describing the origin of the Work and
|
|
138
|
+
reproducing the content of the copyright notice.
|
|
139
|
+
|
|
140
|
+
## 6. Chain of Authorship
|
|
141
|
+
|
|
142
|
+
The original Licensor warrants that the copyright in the Original Work granted
|
|
143
|
+
hereunder is owned by him/her or licensed to him/her and that he/she has the
|
|
144
|
+
power and authority to grant the Licence.
|
|
145
|
+
|
|
146
|
+
Each Contributor warrants that the copyright in the modifications he/she brings
|
|
147
|
+
to the Work are owned by him/her or licensed to him/her and that he/she has the
|
|
148
|
+
power and authority to grant the Licence.
|
|
149
|
+
|
|
150
|
+
Each time You accept the Licence, the original Licensor and subsequent
|
|
151
|
+
Contributors grant You a licence to their contributions to the Work, under the
|
|
152
|
+
terms of this Licence.
|
|
153
|
+
|
|
154
|
+
## 7. Disclaimer of Warranty
|
|
155
|
+
|
|
156
|
+
The Work is a work in progress, which is continuously improved by numerous
|
|
157
|
+
Contributors. It is not a finished work and may therefore contain defects or
|
|
158
|
+
‘bugs’ inherent to this type of development.
|
|
159
|
+
|
|
160
|
+
For the above reason, the Work is provided under the Licence on an ‘as is’ basis
|
|
161
|
+
and without warranties of any kind concerning the Work, including without
|
|
162
|
+
limitation merchantability, fitness for a particular purpose, absence of defects
|
|
163
|
+
or errors, accuracy, non-infringement of intellectual property rights other than
|
|
164
|
+
copyright as stated in Article 6 of this Licence.
|
|
165
|
+
|
|
166
|
+
This disclaimer of warranty is an essential part of the Licence and a condition
|
|
167
|
+
for the grant of any rights to the Work.
|
|
168
|
+
|
|
169
|
+
## 8. Disclaimer of Liability
|
|
170
|
+
|
|
171
|
+
Except in the cases of wilful misconduct or damages directly caused to natural
|
|
172
|
+
persons, the Licensor will in no event be liable for any direct or indirect,
|
|
173
|
+
material or moral, damages of any kind, arising out of the Licence or of the use
|
|
174
|
+
of the Work, including without limitation, damages for loss of goodwill, work
|
|
175
|
+
stoppage, computer failure or malfunction, loss of data or any commercial
|
|
176
|
+
damage, even if the Licensor has been advised of the possibility of such damage.
|
|
177
|
+
However, the Licensor will be liable under statutory product liability laws as
|
|
178
|
+
far such laws apply to the Work.
|
|
179
|
+
|
|
180
|
+
## 9. Additional agreements
|
|
181
|
+
|
|
182
|
+
While distributing the Work, You may choose to conclude an additional agreement,
|
|
183
|
+
defining obligations or services consistent with this Licence. However, if
|
|
184
|
+
accepting obligations, You may act only on your own behalf and on your sole
|
|
185
|
+
responsibility, not on behalf of the original Licensor or any other Contributor,
|
|
186
|
+
and only if You agree to indemnify, defend, and hold each Contributor harmless
|
|
187
|
+
for any liability incurred by, or claims asserted against such Contributor by
|
|
188
|
+
the fact You have accepted any warranty or additional liability.
|
|
189
|
+
|
|
190
|
+
## 10. Acceptance of the Licence
|
|
191
|
+
|
|
192
|
+
The provisions of this Licence can be accepted by clicking on an icon ‘I agree’
|
|
193
|
+
placed under the bottom of a window displaying the text of this Licence or by
|
|
194
|
+
affirming consent in any other similar way, in accordance with the rules of
|
|
195
|
+
applicable law. Clicking on that icon indicates your clear and irrevocable
|
|
196
|
+
acceptance of this Licence and all of its terms and conditions.
|
|
197
|
+
|
|
198
|
+
Similarly, you irrevocably accept this Licence and all of its terms and
|
|
199
|
+
conditions by exercising any rights granted to You by Article 2 of this Licence,
|
|
200
|
+
such as the use of the Work, the creation by You of a Derivative Work or the
|
|
201
|
+
Distribution or Communication by You of the Work or copies thereof.
|
|
202
|
+
|
|
203
|
+
## 11. Information to the public
|
|
204
|
+
|
|
205
|
+
In case of any Distribution or Communication of the Work by means of electronic
|
|
206
|
+
communication by You (for example, by offering to download the Work from a
|
|
207
|
+
remote location) the distribution channel or media (for example, a website) must
|
|
208
|
+
at least provide to the public the information requested by the applicable law
|
|
209
|
+
regarding the Licensor, the Licence and the way it may be accessible, concluded,
|
|
210
|
+
stored and reproduced by the Licensee.
|
|
211
|
+
|
|
212
|
+
## 12. Termination of the Licence
|
|
213
|
+
|
|
214
|
+
The Licence and the rights granted hereunder will terminate automatically upon
|
|
215
|
+
any breach by the Licensee of the terms of the Licence.
|
|
216
|
+
|
|
217
|
+
Such a termination will not terminate the licences of any person who has
|
|
218
|
+
received the Work from the Licensee under the Licence, provided such persons
|
|
219
|
+
remain in full compliance with the Licence.
|
|
220
|
+
|
|
221
|
+
## 13. Miscellaneous
|
|
222
|
+
|
|
223
|
+
Without prejudice of Article 9 above, the Licence represents the complete
|
|
224
|
+
agreement between the Parties as to the Work.
|
|
225
|
+
|
|
226
|
+
If any provision of the Licence is invalid or unenforceable under applicable
|
|
227
|
+
law, this will not affect the validity or enforceability of the Licence as a
|
|
228
|
+
whole. Such provision will be construed or reformed so as necessary to make it
|
|
229
|
+
valid and enforceable.
|
|
230
|
+
|
|
231
|
+
The European Commission may publish other linguistic versions or new versions of
|
|
232
|
+
this Licence or updated versions of the Appendix, so far this is required and
|
|
233
|
+
reasonable, without reducing the scope of the rights granted by the Licence. New
|
|
234
|
+
versions of the Licence will be published with a unique version number.
|
|
235
|
+
|
|
236
|
+
All linguistic versions of this Licence, approved by the European Commission,
|
|
237
|
+
have identical value. Parties can take advantage of the linguistic version of
|
|
238
|
+
their choice.
|
|
239
|
+
|
|
240
|
+
## 14. Jurisdiction
|
|
241
|
+
|
|
242
|
+
Without prejudice to specific agreement between parties,
|
|
243
|
+
|
|
244
|
+
- any litigation resulting from the interpretation of this License, arising
|
|
245
|
+
between the European Union institutions, bodies, offices or agencies, as a
|
|
246
|
+
Licensor, and any Licensee, will be subject to the jurisdiction of the Court
|
|
247
|
+
of Justice of the European Union, as laid down in article 272 of the Treaty on
|
|
248
|
+
the Functioning of the European Union,
|
|
249
|
+
|
|
250
|
+
- any litigation arising between other parties and resulting from the
|
|
251
|
+
interpretation of this License, will be subject to the exclusive jurisdiction
|
|
252
|
+
of the competent court where the Licensor resides or conducts its primary
|
|
253
|
+
business.
|
|
254
|
+
|
|
255
|
+
## 15. Applicable Law
|
|
256
|
+
|
|
257
|
+
Without prejudice to specific agreement between parties,
|
|
258
|
+
|
|
259
|
+
- this Licence shall be governed by the law of the European Union Member State
|
|
260
|
+
where the Licensor has his seat, resides or has his registered office,
|
|
261
|
+
|
|
262
|
+
- this licence shall be governed by Belgian law if the Licensor has no seat,
|
|
263
|
+
residence or registered office inside a European Union Member State.
|
|
264
|
+
|
|
265
|
+
## Appendix
|
|
266
|
+
|
|
267
|
+
‘Compatible Licences’ according to Article 5 EUPL are:
|
|
268
|
+
|
|
269
|
+
- GNU General Public License (GPL) v. 2, v. 3
|
|
270
|
+
- GNU Affero General Public License (AGPL) v. 3
|
|
271
|
+
- Open Software License (OSL) v. 2.1, v. 3.0
|
|
272
|
+
- Eclipse Public License (EPL) v. 1.0
|
|
273
|
+
- CeCILL v. 2.0, v. 2.1
|
|
274
|
+
- Mozilla Public Licence (MPL) v. 2
|
|
275
|
+
- GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
|
|
276
|
+
- Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
|
|
277
|
+
works other than software
|
|
278
|
+
- European Union Public Licence (EUPL) v. 1.1, v. 1.2
|
|
279
|
+
- Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
|
|
280
|
+
Reciprocity (LiLiQ-R+).
|
|
281
|
+
|
|
282
|
+
The European Commission may update this Appendix to later versions of the above
|
|
283
|
+
licences without producing a new version of the EUPL, as long as they provide
|
|
284
|
+
the rights granted in Article 2 of this Licence and protect the covered Source
|
|
285
|
+
Code from exclusive appropriation.
|
|
286
|
+
|
|
287
|
+
All other changes or additions to this Appendix require the production of a new
|
|
288
|
+
EUPL version.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generieke Geo Componenten - ggc-models
|
|
2
|
+
|
|
3
|
+
De Generieke Geo Componenten (GGC) helpen softwareontwikkelaars om snel een kaartviewer te ontwikkelen.
|
|
4
|
+
|
|
5
|
+
Deze Angular front-end componenten kunnen in de eigen applicatie geïnstalleerd worden. Hiermee kan de kracht van OpenLayers kaartpresentatie snel en eenvoudig geïmplementeerd worden, gecombineerd met:
|
|
6
|
+
* zoeken op de kaart
|
|
7
|
+
* legenda
|
|
8
|
+
* kaartselectie
|
|
9
|
+
* toolbar met tekenen, meten en bewerken op de kaart
|
|
10
|
+
|
|
11
|
+
Binnenkort komen ook extra componenten beschikbaar voor:
|
|
12
|
+
* presenteren van object-informatie
|
|
13
|
+
* 3D kaartpresentatie (met Cesium)
|
|
14
|
+
* printen
|
|
15
|
+
* bestandsconversie
|
|
16
|
+
|
|
17
|
+
## Voordelen
|
|
18
|
+
|
|
19
|
+
De Generieke Geo Componenten bieden de volgende voordelen:
|
|
20
|
+
* Responsive design voor mobiel, tablet en desktop
|
|
21
|
+
* Digitaal toegankelijk (WCAG 2.1 AA)
|
|
22
|
+
* Up-to-date met de nieuwste framework versies
|
|
23
|
+
* Eenvoudig te implementeren, te configureren en te stylen
|
|
24
|
+
* Makkelijk aan te passen
|
|
25
|
+
* Robuust, met hoge testdekking
|
|
26
|
+
* Lage onderhoudsinspanning
|
|
27
|
+
* Light-weight, door alleen componenten te laden die nodig zijn
|
|
28
|
+
|
|
29
|
+
De componenten kunnen afzonderlijk óf in samenwerking gebruikt worden. Hierdoor kun je zelf bepalen welke interactie wenselijk is in de applicatie.
|
|
30
|
+
|
|
31
|
+
## Licentie
|
|
32
|
+
|
|
33
|
+
Dit project is gratis en open-source software, gelicentieerd onder de [European Union Public License (EUPL) v1.2](LICENSE.md).
|
|
34
|
+
|
|
35
|
+
## Documentatie
|
|
36
|
+
|
|
37
|
+
Bekijk onze [voorbeelden](TODO), de [quick start](TODO) of de [TSDocs](TODO).
|
|
38
|
+
|
|
39
|
+
© Documentatie: Dienst voor het kadaster en de openbare registers (Kadaster). Deze documentatie (met uitzondering van de TSDocs) is gelicentieerd onder CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/
|
|
40
|
+
|
|
41
|
+
## Bugs
|
|
42
|
+
|
|
43
|
+
Gebruik de [GitHub issue tracker](https://github.com/kadaster/generieke-geo-componenten/issues) voor alle bugs en feature requests. Controleer eerst of een probleem al gemeld is voordat je een nieuw issue maakt.
|
|
44
|
+
|
|
45
|
+
## Contributing
|
|
46
|
+
|
|
47
|
+
Lees onze [contributing](https://github.com/kadaster/generieke-geo-componenten/tree/main?tab=contributing-ov-file) handleiding als je geinteresseerd bent om bij te dragen aan het project.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* De default mapIndex die wordt gebruikt in 2D kaarten
|
|
3
|
+
*/
|
|
4
|
+
const DEFAULT_MAPINDEX = "_DEFAULT_";
|
|
5
|
+
/**
|
|
6
|
+
* De default mapIndex die wordt gebruikt in 3D kaarten (Cesium)
|
|
7
|
+
*/
|
|
8
|
+
const DEFAULT_CESIUM_MAPINDEX = "_DEFAULT_CESIUM_";
|
|
9
|
+
|
|
10
|
+
var LayerChangedEventTrigger;
|
|
11
|
+
(function (LayerChangedEventTrigger) {
|
|
12
|
+
LayerChangedEventTrigger["LAYER_ADDED"] = "layerAdded";
|
|
13
|
+
LayerChangedEventTrigger["LAYER_REMOVED"] = "layerRemoved";
|
|
14
|
+
})(LayerChangedEventTrigger || (LayerChangedEventTrigger = {}));
|
|
15
|
+
|
|
16
|
+
// todo deze kan er volgensmij uit in de ggc-legend story (een vector style wordt een svg wat een url is)
|
|
17
|
+
class VectorTileStyle {
|
|
18
|
+
constructor(name, url) {
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.url = url;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Enum voor de triggers van een legend event.
|
|
25
|
+
* Added en removed worden getriggered bij het aan/uitzetten van een laag in bijvoorbeel de dataset-tree
|
|
26
|
+
* Enabled en disabled worden getriggered als een kaartlaag wel of niet zichtbaar wordt bij het zoomen
|
|
27
|
+
*/
|
|
28
|
+
var LegendEventTrigger;
|
|
29
|
+
(function (LegendEventTrigger) {
|
|
30
|
+
LegendEventTrigger["ON_LAYER_ADDED"] = "onLayerAdded";
|
|
31
|
+
LegendEventTrigger["ON_LAYER_REMOVED"] = "onLayerRemoved";
|
|
32
|
+
LegendEventTrigger["ON_LAYER_ENABLED"] = "onLayerEnabled";
|
|
33
|
+
LegendEventTrigger["ON_LAYER_DISABLED"] = "onLayerDisabled";
|
|
34
|
+
})(LegendEventTrigger || (LegendEventTrigger = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Het event dat wordt ge-emit als een legenda moet worden toegevoegd
|
|
37
|
+
*/
|
|
38
|
+
class LegendAddedEvent {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Het event dat wordt ge-emit als een legenda moet worden weggehaald
|
|
42
|
+
*/
|
|
43
|
+
class LegendRemovedEvent {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* De enum die het viewertype aangeeft TWEE_D (default = ol) of DRIE_D (cesium).
|
|
48
|
+
*/
|
|
49
|
+
var ViewerType;
|
|
50
|
+
(function (ViewerType) {
|
|
51
|
+
ViewerType["DRIE_D"] = "3D";
|
|
52
|
+
ViewerType["TWEE_D"] = "2D";
|
|
53
|
+
})(ViewerType || (ViewerType = {}));
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* De enum die de 2D webservices bevat.
|
|
57
|
+
*/
|
|
58
|
+
var Webservice2DType;
|
|
59
|
+
(function (Webservice2DType) {
|
|
60
|
+
Webservice2DType["WMS"] = "wms";
|
|
61
|
+
Webservice2DType["WMTS"] = "wmts";
|
|
62
|
+
Webservice2DType["GEOJSON"] = "geojson";
|
|
63
|
+
Webservice2DType["VECTOR"] = "vector";
|
|
64
|
+
Webservice2DType["IMAGE"] = "image";
|
|
65
|
+
})(Webservice2DType || (Webservice2DType = {}));
|
|
66
|
+
/**
|
|
67
|
+
* De enum die de 3D webservices bevat.
|
|
68
|
+
*/
|
|
69
|
+
var Webservice3DType;
|
|
70
|
+
(function (Webservice3DType) {
|
|
71
|
+
Webservice3DType["WMTS"] = "wmts";
|
|
72
|
+
Webservice3DType["GEOJSON"] = "geojson";
|
|
73
|
+
Webservice3DType["TILES3D"] = "3Dtiles";
|
|
74
|
+
})(Webservice3DType || (Webservice3DType = {}));
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
* Public API Surface of ggc-models
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Generated bundle index. Do not edit.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
export { DEFAULT_CESIUM_MAPINDEX, DEFAULT_MAPINDEX, LayerChangedEventTrigger, LegendAddedEvent, LegendEventTrigger, LegendRemovedEvent, VectorTileStyle, ViewerType, Webservice2DType, Webservice3DType };
|
|
85
|
+
//# sourceMappingURL=kadaster-ggc-models.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kadaster-ggc-models.mjs","sources":["../../../projects/ggc-models/src/lib/constants.ts","../../../projects/ggc-models/src/lib/models/layer-changed-event.model.ts","../../../projects/ggc-models/src/lib/models/legend.model.ts","../../../projects/ggc-models/src/lib/models/viewer-type.model.ts","../../../projects/ggc-models/src/lib/models/webservice-type.model.ts","../../../projects/ggc-models/src/public-api.ts","../../../projects/ggc-models/src/kadaster-ggc-models.ts"],"sourcesContent":["/**\n * De default mapIndex die wordt gebruikt in 2D kaarten\n */\nexport const DEFAULT_MAPINDEX = \"_DEFAULT_\";\n\n/**\n * De default mapIndex die wordt gebruikt in 3D kaarten (Cesium)\n */\nexport const DEFAULT_CESIUM_MAPINDEX = \"_DEFAULT_CESIUM_\";\n","export enum LayerChangedEventTrigger {\n LAYER_ADDED = \"layerAdded\",\n LAYER_REMOVED = \"layerRemoved\"\n}\n\nexport interface CesiumLayerChangedEvent {\n layerId: string;\n eventTrigger: LayerChangedEventTrigger;\n}\n\nexport interface LayerChangedEvent extends CesiumLayerChangedEvent {\n mapIndex: string;\n}\n","/**\n * Mogelijke typen voor een legenda:\n * - Een lijst van iconen met tekst (`IconList[]`)\n * - Een URL naar een legenda-afbeelding (`LegendUrl`)\n * - Een mapbox vector tile stijl (`VectorTileStyle`)\n * - Of `undefined` als er geen legenda is.\n */\nexport type LegendType = IconList[] | LegendUrl | VectorTileStyle | undefined;\n\n/**\n * Legenda-informatie voor een specifieke laag.\n */\nexport type LayerLegend = {\n /** De layerId van deze legenda **/\n layerId: string;\n\n /** De legenda behorend bij deze laag. */\n legend: LegendType;\n\n /**\n * De naam van de service waar deze lagen in zitten, mocht er een serviceName aanwezig zijn.\n * Met deze naam wordt de legenda gegroepeerd en de serviceName staat dan boven de groepering\n * **/\n serviceTitle?: string;\n\n /** De titel van deze laag **/\n layerTitle?: string;\n\n /** True als de layer voor deze legenda is enabled. Als de layer is disabled, wordt de legenda ook niet getoond. **/\n layerEnabled?: boolean;\n\n /** nummer om de volgorde in de legenda te bepalen */\n legendIndex?: number;\n};\n\n/**\n * Een item in een iconenlijst voor de legenda.\n */\nexport type IconList = {\n /** URL naar het icoon-afbeelding. */\n imageUrl: string;\n\n /** Beschrijvende tekst bij het icoon. */\n text: string;\n};\n\n/**\n * Een URL naar een externe legenda-afbeelding.\n */\nexport type LegendUrl = {\n /** Volledige URL naar de legenda-afbeelding. */\n legendUrl: string;\n};\n\n// todo deze kan er volgensmij uit in de ggc-legend story (een vector style wordt een svg wat een url is)\nexport class VectorTileStyle {\n name: string;\n url: string;\n\n constructor(name: string, url: string) {\n this.name = name;\n this.url = url;\n }\n}\n\n/**\n * Enum voor de triggers van een legend event.\n * Added en removed worden getriggered bij het aan/uitzetten van een laag in bijvoorbeel de dataset-tree\n * Enabled en disabled worden getriggered als een kaartlaag wel of niet zichtbaar wordt bij het zoomen\n */\nexport enum LegendEventTrigger {\n ON_LAYER_ADDED = \"onLayerAdded\",\n ON_LAYER_REMOVED = \"onLayerRemoved\",\n ON_LAYER_ENABLED = \"onLayerEnabled\",\n ON_LAYER_DISABLED = \"onLayerDisabled\"\n}\n\n/**\n * Het event dat wordt ge-emit als een legenda moet worden toegevoegd\n */\nexport class LegendAddedEvent {\n /** De mapIndex waar de legenda moet worden toegevoegd **/\n mapIndex: string;\n /** De legenda die moet worden toegevoegd **/\n legend?: LayerLegend;\n}\n\n/**\n * Het event dat wordt ge-emit als een legenda moet worden weggehaald\n */\nexport class LegendRemovedEvent {\n /** De mapIndex waar de legenda moet worden verwijderd **/\n mapIndex: string;\n /** De layerId waar vand de legenda die moet worden verwijderd **/\n layerId: string;\n}\n","/**\n * De enum die het viewertype aangeeft TWEE_D (default = ol) of DRIE_D (cesium).\n */\nexport enum ViewerType {\n DRIE_D = \"3D\",\n TWEE_D = \"2D\"\n}\n","/**\n * De enum die de 2D webservices bevat.\n */\nexport enum Webservice2DType {\n WMS = \"wms\",\n WMTS = \"wmts\",\n GEOJSON = \"geojson\",\n VECTOR = \"vector\",\n IMAGE = \"image\"\n}\n\n/**\n * De enum die de 3D webservices bevat.\n */\nexport enum Webservice3DType {\n WMTS = \"wmts\",\n GEOJSON = \"geojson\",\n TILES3D = \"3Dtiles\"\n}\n","/*\n * Public API Surface of ggc-models\n */\n\nexport * from \"./lib/constants\";\nexport * from \"./lib/models/layer-changed-event.model\";\nexport * from \"./lib/models/legend.model\";\nexport * from \"./lib/models/viewer-type.model\";\nexport * from \"./lib/models/webservice-type.model\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG;AACI,MAAM,gBAAgB,GAAG;AAEhC;;AAEG;AACI,MAAM,uBAAuB,GAAG;;ICR3B;AAAZ,CAAA,UAAY,wBAAwB,EAAA;AAClC,IAAA,wBAAA,CAAA,aAAA,CAAA,GAAA,YAA0B;AAC1B,IAAA,wBAAA,CAAA,eAAA,CAAA,GAAA,cAA8B;AAChC,CAAC,EAHW,wBAAwB,KAAxB,wBAAwB,GAAA,EAAA,CAAA,CAAA;;ACsDpC;MACa,eAAe,CAAA;IAI1B,WAAA,CAAY,IAAY,EAAE,GAAW,EAAA;AACnC,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;AAChB,QAAA,IAAI,CAAC,GAAG,GAAG,GAAG;IAChB;AACD;AAED;;;;AAIG;IACS;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,cAA+B;AAC/B,IAAA,kBAAA,CAAA,kBAAA,CAAA,GAAA,gBAAmC;AACnC,IAAA,kBAAA,CAAA,kBAAA,CAAA,GAAA,gBAAmC;AACnC,IAAA,kBAAA,CAAA,mBAAA,CAAA,GAAA,iBAAqC;AACvC,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,GAAA,EAAA,CAAA,CAAA;AAO9B;;AAEG;MACU,gBAAgB,CAAA;AAK5B;AAED;;AAEG;MACU,kBAAkB,CAAA;AAK9B;;AC/FD;;AAEG;IACS;AAAZ,CAAA,UAAY,UAAU,EAAA;AACpB,IAAA,UAAA,CAAA,QAAA,CAAA,GAAA,IAAa;AACb,IAAA,UAAA,CAAA,QAAA,CAAA,GAAA,IAAa;AACf,CAAC,EAHW,UAAU,KAAV,UAAU,GAAA,EAAA,CAAA,CAAA;;ACHtB;;AAEG;IACS;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,gBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACjB,IAAA,gBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACjB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;AAQ5B;;AAEG;IACS;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,gBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACrB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,GAAA,EAAA,CAAA,CAAA;;ACd5B;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kadaster/ggc-models",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"tslib": "^2.3.1"
|
|
6
|
+
},
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"directory": "../../dist/ggc-models",
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"url": "https://github.com/kadaster/generieke-geo-componenten"
|
|
13
|
+
},
|
|
14
|
+
"license": "EUPL-1.2",
|
|
15
|
+
"module": "fesm2022/kadaster-ggc-models.mjs",
|
|
16
|
+
"typings": "types/kadaster-ggc-models.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./types/kadaster-ggc-models.d.ts",
|
|
23
|
+
"default": "./fesm2022/kadaster-ggc-models.mjs"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module"
|
|
28
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* De default mapIndex die wordt gebruikt in 2D kaarten
|
|
3
|
+
*/
|
|
4
|
+
declare const DEFAULT_MAPINDEX = "_DEFAULT_";
|
|
5
|
+
/**
|
|
6
|
+
* De default mapIndex die wordt gebruikt in 3D kaarten (Cesium)
|
|
7
|
+
*/
|
|
8
|
+
declare const DEFAULT_CESIUM_MAPINDEX = "_DEFAULT_CESIUM_";
|
|
9
|
+
|
|
10
|
+
declare enum LayerChangedEventTrigger {
|
|
11
|
+
LAYER_ADDED = "layerAdded",
|
|
12
|
+
LAYER_REMOVED = "layerRemoved"
|
|
13
|
+
}
|
|
14
|
+
interface CesiumLayerChangedEvent {
|
|
15
|
+
layerId: string;
|
|
16
|
+
eventTrigger: LayerChangedEventTrigger;
|
|
17
|
+
}
|
|
18
|
+
interface LayerChangedEvent extends CesiumLayerChangedEvent {
|
|
19
|
+
mapIndex: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Mogelijke typen voor een legenda:
|
|
24
|
+
* - Een lijst van iconen met tekst (`IconList[]`)
|
|
25
|
+
* - Een URL naar een legenda-afbeelding (`LegendUrl`)
|
|
26
|
+
* - Een mapbox vector tile stijl (`VectorTileStyle`)
|
|
27
|
+
* - Of `undefined` als er geen legenda is.
|
|
28
|
+
*/
|
|
29
|
+
type LegendType = IconList[] | LegendUrl | VectorTileStyle | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Legenda-informatie voor een specifieke laag.
|
|
32
|
+
*/
|
|
33
|
+
type LayerLegend = {
|
|
34
|
+
/** De layerId van deze legenda **/
|
|
35
|
+
layerId: string;
|
|
36
|
+
/** De legenda behorend bij deze laag. */
|
|
37
|
+
legend: LegendType;
|
|
38
|
+
/**
|
|
39
|
+
* De naam van de service waar deze lagen in zitten, mocht er een serviceName aanwezig zijn.
|
|
40
|
+
* Met deze naam wordt de legenda gegroepeerd en de serviceName staat dan boven de groepering
|
|
41
|
+
* **/
|
|
42
|
+
serviceTitle?: string;
|
|
43
|
+
/** De titel van deze laag **/
|
|
44
|
+
layerTitle?: string;
|
|
45
|
+
/** True als de layer voor deze legenda is enabled. Als de layer is disabled, wordt de legenda ook niet getoond. **/
|
|
46
|
+
layerEnabled?: boolean;
|
|
47
|
+
/** nummer om de volgorde in de legenda te bepalen */
|
|
48
|
+
legendIndex?: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Een item in een iconenlijst voor de legenda.
|
|
52
|
+
*/
|
|
53
|
+
type IconList = {
|
|
54
|
+
/** URL naar het icoon-afbeelding. */
|
|
55
|
+
imageUrl: string;
|
|
56
|
+
/** Beschrijvende tekst bij het icoon. */
|
|
57
|
+
text: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Een URL naar een externe legenda-afbeelding.
|
|
61
|
+
*/
|
|
62
|
+
type LegendUrl = {
|
|
63
|
+
/** Volledige URL naar de legenda-afbeelding. */
|
|
64
|
+
legendUrl: string;
|
|
65
|
+
};
|
|
66
|
+
declare class VectorTileStyle {
|
|
67
|
+
name: string;
|
|
68
|
+
url: string;
|
|
69
|
+
constructor(name: string, url: string);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Enum voor de triggers van een legend event.
|
|
73
|
+
* Added en removed worden getriggered bij het aan/uitzetten van een laag in bijvoorbeel de dataset-tree
|
|
74
|
+
* Enabled en disabled worden getriggered als een kaartlaag wel of niet zichtbaar wordt bij het zoomen
|
|
75
|
+
*/
|
|
76
|
+
declare enum LegendEventTrigger {
|
|
77
|
+
ON_LAYER_ADDED = "onLayerAdded",
|
|
78
|
+
ON_LAYER_REMOVED = "onLayerRemoved",
|
|
79
|
+
ON_LAYER_ENABLED = "onLayerEnabled",
|
|
80
|
+
ON_LAYER_DISABLED = "onLayerDisabled"
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Het event dat wordt ge-emit als een legenda moet worden toegevoegd
|
|
84
|
+
*/
|
|
85
|
+
declare class LegendAddedEvent {
|
|
86
|
+
/** De mapIndex waar de legenda moet worden toegevoegd **/
|
|
87
|
+
mapIndex: string;
|
|
88
|
+
/** De legenda die moet worden toegevoegd **/
|
|
89
|
+
legend?: LayerLegend;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Het event dat wordt ge-emit als een legenda moet worden weggehaald
|
|
93
|
+
*/
|
|
94
|
+
declare class LegendRemovedEvent {
|
|
95
|
+
/** De mapIndex waar de legenda moet worden verwijderd **/
|
|
96
|
+
mapIndex: string;
|
|
97
|
+
/** De layerId waar vand de legenda die moet worden verwijderd **/
|
|
98
|
+
layerId: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* De enum die het viewertype aangeeft TWEE_D (default = ol) of DRIE_D (cesium).
|
|
103
|
+
*/
|
|
104
|
+
declare enum ViewerType {
|
|
105
|
+
DRIE_D = "3D",
|
|
106
|
+
TWEE_D = "2D"
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* De enum die de 2D webservices bevat.
|
|
111
|
+
*/
|
|
112
|
+
declare enum Webservice2DType {
|
|
113
|
+
WMS = "wms",
|
|
114
|
+
WMTS = "wmts",
|
|
115
|
+
GEOJSON = "geojson",
|
|
116
|
+
VECTOR = "vector",
|
|
117
|
+
IMAGE = "image"
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* De enum die de 3D webservices bevat.
|
|
121
|
+
*/
|
|
122
|
+
declare enum Webservice3DType {
|
|
123
|
+
WMTS = "wmts",
|
|
124
|
+
GEOJSON = "geojson",
|
|
125
|
+
TILES3D = "3Dtiles"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { DEFAULT_CESIUM_MAPINDEX, DEFAULT_MAPINDEX, LayerChangedEventTrigger, LegendAddedEvent, LegendEventTrigger, LegendRemovedEvent, VectorTileStyle, ViewerType, Webservice2DType, Webservice3DType };
|
|
129
|
+
export type { CesiumLayerChangedEvent, IconList, LayerChangedEvent, LayerLegend, LegendType, LegendUrl };
|