tileserver-gl-light 4.4.6 → 4.4.8

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.
@@ -86,6 +86,9 @@ jobs:
86
86
  push: true
87
87
  tags: maptiler/tileserver-gl:latest, maptiler/tileserver-gl:v${{ env.PACKAGE_VERSION }}
88
88
  platforms: linux/arm64,linux/amd64
89
+ # experimental: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#cache-backend-api
90
+ cache-from: type=gha
91
+ cache-to: type=gha,mode=max
89
92
 
90
93
  - name: Create Tileserver Light Directory
91
94
  run: node publish.js --no-publish
@@ -110,4 +113,6 @@ jobs:
110
113
  push: true
111
114
  tags: maptiler/tileserver-gl-light:latest, maptiler/tileserver-gl-light:v${{ env.PACKAGE_VERSION }}
112
115
  platforms: linux/arm64,linux/amd64
113
-
116
+ # experimental: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#cache-backend-api
117
+ cache-from: type=gha
118
+ cache-to: type=gha,mode=max
package/Dockerfile CHANGED
@@ -22,14 +22,23 @@ RUN set -ex; \
22
22
 
23
23
  EXPOSE 8080
24
24
 
25
- RUN mkdir -p /data && chown node:node /data
25
+ RUN mkdir -p /data; \
26
+ chown node:node /data; \
27
+ mkdir -p /usr/src/app;
28
+
26
29
  VOLUME /data
30
+
27
31
  WORKDIR /data
28
- ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
29
32
 
30
- RUN mkdir -p /usr/src/app
31
33
  COPY / /usr/src/app
32
- RUN cd /usr/src/app && npm install --omit=dev
33
- RUN ["chmod", "+x", "/usr/src/app/docker-entrypoint.sh"]
34
+
35
+ RUN cd /usr/src/app; \
36
+ npm install --omit=dev; \
37
+ chown -R root:root /usr/src/app; \
38
+ chmod +x /usr/src/app/docker-entrypoint.sh;
39
+
34
40
  USER node:node
35
- HEALTHCHECK CMD node /usr/src/app/src/healthcheck.js
41
+
42
+ ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
43
+
44
+ HEALTHCHECK CMD node /usr/src/app/src/healthcheck.js
package/LICENSE.md CHANGED
@@ -1,6 +1,7 @@
1
- TileServer GL
2
- =============
3
-
1
+ ## [TileServer GL](https://github.com/maptiler/tileserver-gl)
2
+ ```
3
+ BSD 2-Clause License
4
+ Copyright (c) 2023, MapTiler.com
4
5
  Copyright (c) 2016, Klokan Technologies GmbH
5
6
 
6
7
  All rights reserved.
@@ -27,21 +28,26 @@ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
28
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
29
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
30
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ ```
32
+ ---
30
33
 
31
- ===========================================================================
32
-
33
- mapbox-gl-native copyright (c) 2014-2016 Mapbox.
34
+ ### [MapLibre-GL-Native](https://github.com/maplibre/maplibre-gl-native)
35
+ ```
36
+ BSD 2-Clause License
37
+ Copyright (c) 2021 MapLibre contributors
38
+ Copyright (c) 2018-2021 MapTiler.com
39
+ Copyright (c) 2014-2020 Mapbox
34
40
 
35
41
  Redistribution and use in source and binary forms, with or without
36
42
  modification, are permitted provided that the following conditions are
37
43
  met:
38
44
 
39
- * Redistributions of source code must retain the above copyright
40
- notice, this list of conditions and the following disclaimer.
41
- * Redistributions in binary form must reproduce the above copyright
42
- notice, this list of conditions and the following disclaimer in
43
- the documentation and/or other materials provided with the
44
- distribution.
45
+ 1. Redistributions of source code must retain the above copyright
46
+ notice, this list of conditions and the following disclaimer.
47
+ 2. Redistributions in binary form must reproduce the above copyright
48
+ notice, this list of conditions and the following disclaimer in
49
+ the documentation and/or other materials provided with the
50
+ distribution.
45
51
 
46
52
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
47
53
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
@@ -54,128 +60,157 @@ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
54
60
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
55
61
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
56
62
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63
+ ```
57
64
 
58
- ===========================================================================
65
+ ---
59
66
 
60
- Mapbox GL uses portions of Android Gesture Detectors Framework.
67
+ ### MapLibre-GL-Native uses portions of [kdbush.hpp](https://github.com/mourner/kdbush.hpp) by Vladimir Agafonkin
61
68
 
62
- Copyright (c) 2012, Almer Thie
69
+ ```
70
+ Copyright (c) 2016, Vladimir Agafonkin
63
71
 
64
- All rights reserved.
72
+ Permission to use, copy, modify, and/or distribute this software for any
73
+ purpose with or without fee is hereby granted, provided that the above
74
+ copyright notice and this permission notice appear in all copies.
65
75
 
66
- Redistribution and use in source and binary forms, with or without
67
- modification, are permitted provided that the following conditions are met:
76
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
77
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
78
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
79
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
80
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
81
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
82
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
68
83
 
69
- * Redistributions of source code must retain the above copyright notice, this
70
- list of conditions and the following disclaimer.
71
- * Redistributions in binary form must reproduce the above copyright notice,
72
- this list of conditions and the following disclaimer in the documentation
73
- and/or other materials provided with the distribution.
74
-
75
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
76
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
77
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
78
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
79
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
80
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
81
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
82
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
83
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
84
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
84
+ ```
85
85
 
86
86
  ===========================================================================
87
87
 
88
- Mapbox GL uses portions of Android Support Library.
88
+ ### MapLibre-GL-Native uses portions of [supercluster.hpp](https://github.com/mapbox/supercluster.hpp) by Mapbox
89
89
 
90
- Copyright (c) 2005-2013, The Android Open Source Project
90
+ ```
91
+ Copyright (c) 2016, Mapbox
91
92
 
92
- Licensed under the Apache License, Version 2.0 (the "License");
93
- you may not use this file except in compliance with the License.
94
- You may obtain a copy of the License at
93
+ Permission to use, copy, modify, and/or distribute this software for any
94
+ purpose with or without fee is hereby granted, provided that the above
95
+ copyright notice and this permission notice appear in all copies.
95
96
 
96
- http://www.apache.org/licenses/LICENSE-2.0
97
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
98
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
99
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
100
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
101
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
102
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
103
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
97
104
 
98
- Unless required by applicable law or agreed to in writing, software
99
- distributed under the License is distributed on an "AS IS" BASIS,
100
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
101
- See the License for the specific language governing permissions and
102
- limitations under the License.
105
+ ```
103
106
 
104
107
  ===========================================================================
105
108
 
106
- Mapbox GL uses portions of Boost.
109
+ ### MapLibre-GL-Native uses portions of [shelf-pack-cpp](https://github.com/mapbox/shelf-pack-cpp) by Mapbox
107
110
 
108
- Distributed under the Boost Software License, Version 1.0.
111
+ ```
112
+ ISC License
109
113
 
110
- http://www.boost.org/LICENSE_1_0.txt
114
+ Copyright (c) 2017, Mapbox
115
+
116
+ Permission to use, copy, modify, and/or distribute this software for any purpose
117
+ with or without fee is hereby granted, provided that the above copyright notice
118
+ and this permission notice appear in all copies.
119
+
120
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
121
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
122
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
123
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
124
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
125
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
126
+ THIS SOFTWARE.
127
+
128
+ ```
111
129
 
112
130
  ===========================================================================
113
131
 
114
- Mapbox GL uses portions of Clipper.
132
+ ### MapLibre-GL-Native uses portions of [geojson-vt-cpp](https://github.com/mapbox/geojson-vt-cpp) by Mapbox
115
133
 
116
- Author : Angus Johnson
117
- Version : 6.1.3a
118
- Date : 22 January 2014
119
- Website : http://www.angusj.com
120
- Copyright : Angus Johnson 2010-2014
134
+ ```
135
+ ISC License
121
136
 
122
- License:
123
- Use, modification & distribution is subject to Boost Software License Ver 1.
124
- http://www.boost.org/LICENSE_1_0.txt
137
+ Copyright (c) 2015, Mapbox
125
138
 
126
- Attributions:
127
- The code in this library is an extension of Bala Vatti's clipping algorithm:
128
- "A generic solution to polygon clipping"
129
- Communications of the ACM, Vol 35, Issue 7 (July 1992) pp 56-63.
130
- http://portal.acm.org/citation.cfm?id=129906
139
+ Permission to use, copy, modify, and/or distribute this software for any purpose
140
+ with or without fee is hereby granted, provided that the above copyright notice
141
+ and this permission notice appear in all copies.
131
142
 
132
- Computer graphics and geometric modeling: implementation and algorithms
133
- By Max K. Agoston
134
- Springer; 1 edition (January 4, 2005)
135
- http://books.google.com/books?q=vatti+clipping+agoston
143
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
144
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
145
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
146
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
147
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
148
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
149
+ THIS SOFTWARE.
136
150
 
137
- See also:
138
- "Polygon Offsetting by Computing Winding Numbers"
139
- Paper no. DETC2005-85513 pp. 565-575
140
- ASME 2005 International Design Engineering Technical Conferences
141
- and Computers and Information in Engineering Conference (IDETC/CIE2005)
142
- September 24-28, 2005 , Long Beach, California, USA
143
- http://www.me.berkeley.edu/~mcmains/pubs/DAC05OffsetPolygon.pdf
151
+ ```
144
152
 
145
153
  ===========================================================================
146
154
 
147
- Mapbox GL uses portions of BugshotKit.
155
+ ### MapLibre-GL-Native uses portions of [cheap-ruler-cpp](https://github.com/mapbox/cheap-ruler-cpp) by Mapbox
148
156
 
149
- The MIT License (MIT)
157
+ ```
158
+ ISC License
150
159
 
151
- Copyright (c) 2014 marcoarment
160
+ Copyright (c) 2017, Mapbox
152
161
 
153
- Permission is hereby granted, free of charge, to any person obtaining a copy of
154
- this software and associated documentation files (the "Software"), to deal in
155
- the Software without restriction, including without limitation the rights to
156
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
157
- the Software, and to permit persons to whom the Software is furnished to do so,
158
- subject to the following conditions:
162
+ Permission to use, copy, modify, and/or distribute this software for any purpose
163
+ with or without fee is hereby granted, provided that the above copyright notice
164
+ and this permission notice appear in all copies.
165
+
166
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
167
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
168
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
169
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
170
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
171
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
172
+ THIS SOFTWARE.
173
+
174
+ ```
159
175
 
160
- The above copyright notice and this permission notice shall be included in all
161
- copies or substantial portions of the Software.
176
+ ===========================================================================
177
+
178
+ ### MapLibre-GL-Native uses portions of [Boost C++ Libraries](https://www.boost.org) by Boost authors
179
+
180
+ ```
181
+ Boost Software License - Version 1.0 - August 17th, 2003
182
+
183
+ Permission is hereby granted, free of charge, to any person or organization
184
+ obtaining a copy of the software and accompanying documentation covered by
185
+ this license (the "Software") to use, reproduce, display, distribute,
186
+ execute, and transmit the Software, and to prepare derivative works of the
187
+ Software, and to permit third-parties to whom the Software is furnished to
188
+ do so, all subject to the following:
189
+
190
+ The copyright notices in the Software and this entire statement, including
191
+ the above license grant, this restriction and the following disclaimer,
192
+ must be included in all copies of the Software, in whole or in part, and
193
+ all derivative works of the Software, unless such copies or derivative
194
+ works are solely in the form of machine-executable object code generated by
195
+ a source language processor.
162
196
 
163
197
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
164
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
165
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
166
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
167
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
168
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
198
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
199
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
200
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
201
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
202
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
203
+ DEALINGS IN THE SOFTWARE.
204
+
205
+ ```
169
206
 
170
207
  ===========================================================================
171
208
 
172
- Mapbox GL uses portions of CSS Color Parser.
209
+ ### MapLibre-GL-Native uses portions of [csscolorparser](https://github.com/mapbox/css-color-parser-cpp) by Dean McNamee and Konstantin Käfer
173
210
 
211
+ ```
174
212
  (c) Dean McNamee <dean@gmail.com>, 2012.
175
- C++ port by Konstantin Käfer <mail@kkaefer.com>, 2014.
176
-
177
- https://github.com/deanm/css-color-parser-js
178
- https://github.com/kkaefer/css-color-parser-cpp
213
+ (c) Konstantin Käfer <mail@kkaefer.com>, 2014.
179
214
 
180
215
  Permission is hereby granted, free of charge, to any person obtaining a copy
181
216
  of this software and associated documentation files (the "Software"), to
@@ -195,10 +230,472 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
195
230
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
196
231
  IN THE SOFTWARE.
197
232
 
233
+ ```
234
+
235
+ ===========================================================================
236
+
237
+ ### MapLibre-GL-Native uses portions of [earcut.hpp](https://github.com/mapbox/earcut.hpp) by Mapbox
238
+
239
+ ```
240
+ ISC License
241
+
242
+ Copyright (c) 2015, Mapbox
243
+
244
+ Permission to use, copy, modify, and/or distribute this software for any purpose
245
+ with or without fee is hereby granted, provided that the above copyright notice
246
+ and this permission notice appear in all copies.
247
+
248
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
249
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
250
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
251
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
252
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
253
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
254
+ THIS SOFTWARE.
255
+
256
+ ```
257
+
258
+ ===========================================================================
259
+
260
+ ### MapLibre-GL-Native uses portions of [eternal](https://github.com/mapbox/eternal) by Mapbox
261
+
262
+ ```
263
+ ISC License
264
+
265
+ Copyright (c) 2018, Mapbox
266
+
267
+ Permission to use, copy, modify, and/or distribute this software for any purpose
268
+ with or without fee is hereby granted, provided that the above copyright notice
269
+ and this permission notice appear in all copies.
270
+
271
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
272
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
273
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
274
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
275
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
276
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
277
+ THIS SOFTWARE.
278
+
279
+ ```
280
+
281
+ ===========================================================================
282
+
283
+ ### MapLibre-GL-Native uses portions of [parsedate](https://curl.haxx.se) by Daniel Stenberg and others
284
+
285
+ ```
286
+ COPYRIGHT AND PERMISSION NOTICE
287
+
288
+ Copyright (c) 1996 - 2020, Daniel Stenberg, <daniel@haxx.se>, and many
289
+ contributors, see the THANKS file.
290
+
291
+ All rights reserved.
292
+
293
+ Permission to use, copy, modify, and distribute this software for any purpose
294
+ with or without fee is hereby granted, provided that the above copyright
295
+ notice and this permission notice appear in all copies.
296
+
297
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
298
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
299
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
300
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
301
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
302
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
303
+ OR OTHER DEALINGS IN THE SOFTWARE.
304
+
305
+ Except as contained in this notice, the name of a copyright holder shall not
306
+ be used in advertising or otherwise to promote the sale, use or other dealings
307
+ in this Software without prior written authorization of the copyright holder.
308
+
309
+ ```
310
+
311
+ ===========================================================================
312
+
313
+ ### MapLibre-GL-Native uses portions of [polylabel](https://github.com/mapbox/polylabel) by Mapbox
314
+
315
+ ```
316
+ ISC License
317
+ Copyright (c) 2016 Mapbox
318
+
319
+ Permission to use, copy, modify, and/or distribute this software for any purpose
320
+ with or without fee is hereby granted, provided that the above copyright notice
321
+ and this permission notice appear in all copies.
322
+
323
+ THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO
324
+ THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
325
+ IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
326
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
327
+ OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
328
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
329
+ SOFTWARE.
330
+
331
+ ```
332
+
333
+ ===========================================================================
334
+
335
+ ### MapLibre-GL-Native uses portions of [protozero](https://github.com/mapbox/protozero) by Mapbox
336
+
337
+ ```
338
+ protozero copyright (c) Mapbox.
339
+
340
+ Redistribution and use in source and binary forms, with or without
341
+ modification, are permitted provided that the following conditions are
342
+ met:
343
+
344
+ * Redistributions of source code must retain the above copyright
345
+ notice, this list of conditions and the following disclaimer.
346
+ * Redistributions in binary form must reproduce the above copyright
347
+ notice, this list of conditions and the following disclaimer in
348
+ the documentation and/or other materials provided with the
349
+ distribution.
350
+
351
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
352
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
353
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
354
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
355
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
356
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
357
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR
358
+ PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
359
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
360
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
361
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
362
+
363
+ ```
364
+
365
+ ===========================================================================
366
+
367
+ ### MapLibre-GL-Native uses portions of [unique_resource](https://github.com/okdshin/unique_resource) by Shintarou Okada
368
+
369
+ ```
370
+ Boost Software License - Version 1.0 - August 17th, 2003
371
+
372
+ Permission is hereby granted, free of charge, to any person or organization
373
+ obtaining a copy of the software and accompanying documentation covered by
374
+ this license (the "Software") to use, reproduce, display, distribute,
375
+ execute, and transmit the Software, and to prepare derivative works of the
376
+ Software, and to permit third-parties to whom the Software is furnished to
377
+ do so, all subject to the following:
378
+
379
+ The copyright notices in the Software and this entire statement, including
380
+ the above license grant, this restriction and the following disclaimer,
381
+ must be included in all copies of the Software, in whole or in part, and
382
+ all derivative works of the Software, unless such copies or derivative
383
+ works are solely in the form of machine-executable object code generated by
384
+ a source language processor.
385
+
386
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
389
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
390
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
391
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
392
+ DEALINGS IN THE SOFTWARE.
393
+
394
+ ```
395
+
396
+ ===========================================================================
397
+
398
+ ### MapLibre-GL-Native uses portions of [vector-tile](https://github.com/mapbox/vector-tile) by Mapbox
399
+
400
+ ```
401
+ Copyright (c) 2016, Mapbox
402
+
403
+ Permission to use, copy, modify, and/or distribute this software for any
404
+ purpose with or without fee is hereby granted, provided that the above
405
+ copyright notice and this permission notice appear in all copies.
406
+
407
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
408
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
409
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
410
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
411
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
412
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
413
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
414
+
415
+ ```
416
+
417
+ ===========================================================================
418
+
419
+ ### MapLibre-GL-Native uses portions of [wagyu](https://github.com/mapbox/wagyu.git) by Angus Johnson and Mapbox
420
+
421
+ ```
422
+ Parts of the code in the Wagyu Library are derived from the version of the
423
+ Clipper Library by Angus Johnson listed below.
424
+
425
+ Author : Angus Johnson
426
+ Version : 6.4.0
427
+ Date : 2 July 2015
428
+ Website : http://www.angusj.com
429
+
430
+ Copyright for portions of the derived code in the Wagyu library are held
431
+ by Angus Johnson, 2010-2015. All other copyright for the Wagyu Library are held by
432
+ Mapbox, 2016. This code is published in accordance with, and retains the same license
433
+ as the Clipper Library by Angus Johnson.
434
+
435
+ Copyright (c) 2010-2015, Angus Johnson
436
+ Copyright (c) 2016, Mapbox
437
+
438
+ Permission is hereby granted, free of charge, to any person or organization
439
+ obtaining a copy of the software and accompanying documentation covered by
440
+ this license (the "Software") to use, reproduce, display, distribute,
441
+ execute, and transmit the Software, and to prepare derivative works of the
442
+ Software, and to permit third-parties to whom the Software is furnished to
443
+ do so, all subject to the following:
444
+
445
+ The copyright notices in the Software and this entire statement, including
446
+ the above license grant, this restriction and the following disclaimer,
447
+ must be included in all copies of the Software, in whole or in part, and
448
+ all derivative works of the Software, unless such copies or derivative
449
+ works are solely in the form of machine-executable object code generated by
450
+ a source language processor.
451
+
452
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
453
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
454
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
455
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
456
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
457
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
458
+ DEALINGS IN THE SOFTWARE.
459
+
460
+ ```
461
+
462
+ ===========================================================================
463
+
464
+ ### MapLibre-GL-Native uses portions of [mapbox-base](https://github.com/mapbox/mapbox-base) by Mapbox
465
+
466
+ ```
467
+ Copyright (c) MapBox
468
+ All rights reserved.
469
+
470
+ Redistribution and use in source and binary forms, with or without modification,
471
+ are permitted provided that the following conditions are met:
472
+
473
+ - Redistributions of source code must retain the above copyright notice, this
474
+ list of conditions and the following disclaimer.
475
+ - Redistributions in binary form must reproduce the above copyright notice, this
476
+ list of conditions and the following disclaimer in the documentation and/or
477
+ other materials provided with the distribution.
478
+ - Neither the name "MapBox" nor the names of its contributors may be
479
+ used to endorse or promote products derived from this software without
480
+ specific prior written permission.
481
+
482
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
483
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
484
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
485
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
486
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
487
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
488
+ LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
489
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
490
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
491
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
492
+ ```
493
+
494
+ ===========================================================================
495
+
496
+ ### MapLibre-GL-Native uses portions of [expected-lite](https://github.com/martinmoene/expected-lite) by Martin Moene
497
+
498
+ ```
499
+ Boost Software License - Version 1.0 - August 17th, 2003
500
+
501
+ Permission is hereby granted, free of charge, to any person or organization
502
+ obtaining a copy of the software and accompanying documentation covered by
503
+ this license (the "Software") to use, reproduce, display, distribute,
504
+ execute, and transmit the Software, and to prepare derivative works of the
505
+ Software, and to permit third-parties to whom the Software is furnished to
506
+ do so, all subject to the following:
507
+
508
+ The copyright notices in the Software and this entire statement, including
509
+ the above license grant, this restriction and the following disclaimer,
510
+ must be included in all copies of the Software, in whole or in part, and
511
+ all derivative works of the Software, unless such copies or derivative
512
+ works are solely in the form of machine-executable object code generated by
513
+ a source language processor.
514
+
515
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
516
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
517
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
518
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
519
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
520
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
521
+ DEALINGS IN THE SOFTWARE.
522
+
523
+ ```
524
+
525
+ ===========================================================================
526
+
527
+ ### MapLibre-GL-Native uses portions of [RapidJSON](https://rapidjson.org) by THL A29 Limited, a Tencent company, and Milo Yip
528
+
529
+ ```
530
+ Tencent is pleased to support the open source community by making RapidJSON available.
531
+
532
+ Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
533
+
534
+ If you have downloaded a copy of the RapidJSON binary from Tencent, please note that the RapidJSON binary is licensed under the MIT License.
535
+ If you have downloaded a copy of the RapidJSON source code from Tencent, please note that RapidJSON source code is licensed under the MIT License, except for the third-party components listed below which are subject to different license terms. Your integration of RapidJSON into your own projects may require compliance with the MIT License, as well as the other licenses applicable to the third-party components included within RapidJSON. To avoid the problematic JSON license in your own projects, it's sufficient to exclude the bin/jsonchecker/ directory, as it's the only code under the JSON license.
536
+ A copy of the MIT License is included in this file.
537
+
538
+ Other dependencies and licenses:
539
+
540
+ Open Source Software Licensed Under the BSD License:
541
+ ==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================--
542
+
543
+ The msinttypes r29
544
+ Copyright (c) 2006-2013 Alexander Chemeris
545
+ All rights reserved.
546
+
547
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
548
+
549
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
550
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
551
+ * Neither the name of copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
552
+
553
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
554
+
555
+ Open Source Software Licensed Under the JSON License:
556
+ ==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================--
557
+
558
+ json.org
559
+ Copyright (c) 2002 JSON.org
560
+ All Rights Reserved.
561
+
562
+ JSON_checker
563
+ Copyright (c) 2002 JSON.org
564
+ All Rights Reserved.
565
+
566
+
567
+ Terms of the JSON License:
568
+ ===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================
569
+
570
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
571
+
572
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
573
+
574
+ The Software shall be used for Good, not Evil.
575
+
576
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
577
+
578
+
579
+ Terms of the MIT License:
580
+ ==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================--
581
+
582
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
583
+
584
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
585
+
586
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
587
+
588
+ ```
589
+
590
+ ===========================================================================
591
+
592
+ ### MapLibre-GL-Native uses portions of [geojson.hpp](https://github.com/mapbox/geojson-cpp) by Mapbox
593
+
594
+ ```
595
+ Copyright (c) 2016, Mapbox
596
+
597
+ Permission to use, copy, modify, and/or distribute this software for any
598
+ purpose with or without fee is hereby granted, provided that the above
599
+ copyright notice and this permission notice appear in all copies.
600
+
601
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
602
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
603
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
604
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
605
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
606
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
607
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
608
+
609
+ ```
610
+
611
+ ===========================================================================
612
+
613
+ ### MapLibre-GL-Native uses portions of [geometry.hpp](https://github.com/mapbox/geometry.hpp) by Mapbox
614
+
615
+ ```
616
+ Copyright (c) 2016, Mapbox
617
+
618
+ Permission to use, copy, modify, and/or distribute this software for any
619
+ purpose with or without fee is hereby granted, provided that the above
620
+ copyright notice and this permission notice appear in all copies.
621
+
622
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
623
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
624
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
625
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
626
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
627
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
628
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
629
+ ```
630
+
198
631
  ===========================================================================
199
632
 
200
- Mapbox GL uses portions of GLFW.
633
+ ### MapLibre-GL-Native uses portions of [Optional](https://github.com/akrzemi1/Optional) by Andrzej Krzemienski
634
+
635
+ ```
636
+ Boost Software License - Version 1.0 - August 17th, 2003
637
+
638
+ Permission is hereby granted, free of charge, to any person or organization
639
+ obtaining a copy of the software and accompanying documentation covered by
640
+ this license (the "Software") to use, reproduce, display, distribute,
641
+ execute, and transmit the Software, and to prepare derivative works of the
642
+ Software, and to permit third-parties to whom the Software is furnished to
643
+ do so, all subject to the following:
644
+
645
+ The copyright notices in the Software and this entire statement, including
646
+ the above license grant, this restriction and the following disclaimer,
647
+ must be included in all copies of the Software, in whole or in part, and
648
+ all derivative works of the Software, unless such copies or derivative
649
+ works are solely in the form of machine-executable object code generated by
650
+ a source language processor.
651
+
652
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
653
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
654
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
655
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
656
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
657
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
658
+ DEALINGS IN THE SOFTWARE.
659
+
660
+ ```
661
+
662
+ ===========================================================================
663
+
664
+ ### MapLibre-GL-Native uses portions of [variant](https://github.com/mapbox/variant) by Mapbox
665
+
666
+ ```
667
+ Copyright (c) MapBox
668
+ All rights reserved.
201
669
 
670
+ Redistribution and use in source and binary forms, with or without modification,
671
+ are permitted provided that the following conditions are met:
672
+
673
+ - Redistributions of source code must retain the above copyright notice, this
674
+ list of conditions and the following disclaimer.
675
+ - Redistributions in binary form must reproduce the above copyright notice, this
676
+ list of conditions and the following disclaimer in the documentation and/or
677
+ other materials provided with the distribution.
678
+ - Neither the name "MapBox" nor the names of its contributors may be
679
+ used to endorse or promote products derived from this software without
680
+ specific prior written permission.
681
+
682
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
683
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
684
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
685
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
686
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
687
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
688
+ LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
689
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
690
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
691
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
692
+ ```
693
+
694
+ ===========================================================================
695
+
696
+ ### MapLibre-GL-Native uses portions of GLFW.
697
+
698
+ ```
202
699
  Copyright (c) 2002-2006 Marcus Geelnard
203
700
  Copyright (c) 2006-2010 Camilla Berglund <elmindreda@elmindreda.org>
204
701
 
@@ -220,11 +717,13 @@ freely, subject to the following restrictions:
220
717
 
221
718
  3. This notice may not be removed or altered from any source
222
719
  distribution.
720
+ ```
223
721
 
224
722
  ===========================================================================
225
723
 
226
- Mapbox GL uses portions of libc++.
724
+ ### MapLibre-GL-Native uses portions of libc++.
227
725
 
726
+ ```
228
727
  The libc++ library is dual licensed under both the University of Illinois
229
728
  "BSD-Like" license and the MIT license. As a user of this code you may choose
230
729
  to use it under either license. As a contributor, you agree to allow your code
@@ -297,11 +796,13 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
297
796
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
298
797
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
299
798
  THE SOFTWARE.
799
+ ```
300
800
 
301
801
  ===========================================================================
302
802
 
303
- Mapbox GL uses portions of libcurl.
803
+ ### MapLibre-GL-Native uses portions of libcurl.
304
804
 
805
+ ```
305
806
  COPYRIGHT AND PERMISSION NOTICE
306
807
 
307
808
  Copyright (c) 1996 - 2015, Daniel Stenberg, <daniel@haxx.se>.
@@ -323,11 +824,13 @@ OR OTHER DEALINGS IN THE SOFTWARE.
323
824
  Except as contained in this notice, the name of a copyright holder shall not
324
825
  be used in advertising or otherwise to promote the sale, use or other dealings
325
826
  in this Software without prior written authorization of the copyright holder.
827
+ ```
326
828
 
327
- ===========================================================================
829
+ ---
328
830
 
329
- Mapbox GL uses portions of libjpeg-turbo.
831
+ ### MapLibre-GL-Native uses portions of libjpeg-turbo.
330
832
 
833
+ ```
331
834
  This software is based in part on the work of the Independent JPEG Group.
332
835
 
333
836
  Copyright (C)2009-2015 D. R. Commander. All Rights Reserved.
@@ -357,11 +860,13 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
357
860
  POSSIBILITY OF SUCH DAMAGE.
358
861
 
359
862
  TurboJPEG/LJT: this implements the TurboJPEG API using libjpeg or libjpeg-turbo
863
+ ```
360
864
 
361
865
  ===========================================================================
362
866
 
363
- Mapbox GL uses portions of libpng.
867
+ ### MapLibre-GL-Native uses portions of libpng.
364
868
 
869
+ ```
365
870
  This copy of the libpng notices is provided for your convenience. In case of
366
871
  any discrepancy between this copy and the notices in the file png.h that is
367
872
  included in the libpng distribution, the latter shall prevail.
@@ -452,11 +957,13 @@ fee, and encourage the use of this source code as a component to
452
957
  supporting the PNG file format in commercial products. If you use this
453
958
  source code in a product, acknowledgment is not required but would be
454
959
  appreciated.
960
+ ```
455
961
 
456
962
  ===========================================================================
457
963
 
458
- Mapbox GL uses portions of libuv.
964
+ ### MapLibre-GL-Native uses portions of libuv.
459
965
 
966
+ ```
460
967
  libuv is part of the Node project: http://nodejs.org/
461
968
  libuv may be distributed alone under Node's license:
462
969
 
@@ -503,11 +1010,13 @@ The externally maintained libraries used by libuv are:
503
1010
  - android-ifaddrs.h, android-ifaddrs.c, copyright Berkeley Software Design
504
1011
  Inc, Kenneth MacKay and Emergya (Cloud4all, FP7/2007-2013, grant agreement
505
1012
  n° 289016). Three clause BSD license.
1013
+ ```
506
1014
 
507
1015
  ===========================================================================
508
1016
 
509
- Mapbox GL uses portions of libzip.
1017
+ ### MapLibre-GL-Native uses portions of libzip.
510
1018
 
1019
+ ```
511
1020
  Copyright (C) 1999-2014 Dieter Baron and Thomas Klausner
512
1021
 
513
1022
  The authors can be contacted at <libzip@nih.at>
@@ -539,11 +1048,13 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
539
1048
  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
540
1049
  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
541
1050
  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1051
+ ```
542
1052
 
543
1053
  ===========================================================================
544
1054
 
545
- Mapbox GL uses portions of LOST.
1055
+ ### MapLibre-GL-Native uses portions of LOST.
546
1056
 
1057
+ ```
547
1058
  Copyright (c) 2014 Mapzen
548
1059
 
549
1060
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -557,12 +1068,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
557
1068
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
558
1069
  See the License for the specific language governing permissions and
559
1070
  limitations under the License.
1071
+ ```
560
1072
 
561
- ===========================================================================
1073
+ ---
562
1074
 
563
- Mapbox GL uses portions of the Mapbox iOS SDK, which was derived from the
564
- Route-Me open source project, including the Alpstein fork of it.
1075
+ ### MapLibre-GL-Native uses portions of the Mapbox iOS SDK, which was derived from the Route-Me open source project, including the Alpstein fork of it.
565
1076
 
1077
+ ```
566
1078
  The Route-Me license appears below.
567
1079
 
568
1080
  Copyright (c) 2008-2013, Route-Me Contributors
@@ -588,11 +1100,13 @@ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
588
1100
  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
589
1101
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
590
1102
  POSSIBILITY OF SUCH DAMAGE.
1103
+ ```
591
1104
 
592
1105
  ===========================================================================
593
1106
 
594
- Mapbox GL uses portions of nunicode.
1107
+ ### MapLibre-GL-Native uses portions of nunicode.
595
1108
 
1109
+ ```
596
1110
  Copyright (c) 2013 Aleksey Tulinov <aleksey.tulinov@gmail.com>
597
1111
 
598
1112
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -612,11 +1126,13 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
612
1126
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
613
1127
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
614
1128
  THE SOFTWARE.
1129
+ ```
615
1130
 
616
1131
  ===========================================================================
617
1132
 
618
- Mapbox GL uses portions of OkHTTP.
1133
+ ### MapLibre-GL-Native uses portions of OkHTTP.
619
1134
 
1135
+ ```
620
1136
  Copyright 2014 Square, Inc.
621
1137
 
622
1138
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -630,11 +1146,13 @@ distributed under the License is distributed on an "AS IS" BASIS,
630
1146
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
631
1147
  See the License for the specific language governing permissions and
632
1148
  limitations under the License.
1149
+ ```
633
1150
 
634
1151
  ===========================================================================
635
1152
 
636
- Mapbox GL uses portions of OpenSSL.
1153
+ ### MapLibre-GL-Native uses portions of OpenSSL.
637
1154
 
1155
+ ```
638
1156
  LICENSE ISSUES
639
1157
  ==============
640
1158
 
@@ -645,7 +1163,7 @@ Open Source licenses. In case of any license issues related to OpenSSL
645
1163
  please contact openssl-core@openssl.org.
646
1164
 
647
1165
  OpenSSL License
648
- ---------------
1166
+ =======================================================================================================================================================================================================================================================================================================================================================================================
649
1167
 
650
1168
  Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
651
1169
 
@@ -698,7 +1216,7 @@ This product includes cryptographic software written by Eric Young
698
1216
  Hudson (tjh@cryptsoft.com).
699
1217
 
700
1218
  Original SSLeay License
701
- -----------------------
1219
+ =============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================--
702
1220
 
703
1221
  Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
704
1222
  All rights reserved.
@@ -755,118 +1273,12 @@ The licence and distribution terms for any publically available version or
755
1273
  derivative of this code cannot be changed. i.e. this code cannot simply be
756
1274
  copied and put under another distribution licence
757
1275
  [including the GNU Public Licence.]
1276
+ ```
758
1277
 
759
1278
  ===========================================================================
760
1279
 
761
- Mapbox GL uses portions of RapidJSON.
762
-
763
- Tencent is pleased to support the open source community by making RapidJSON
764
- available.
765
-
766
- Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights
767
- reserved.
768
-
769
- If you have downloaded a copy of the RapidJSON binary from Tencent, please note
770
- that the RapidJSON binary is licensed under the MIT License. If you have
771
- downloaded a copy of the RapidJSON source code from Tencent, please note that
772
- RapidJSON source code is licensed under the MIT License, except for the third-
773
- party components listed below which are subject to different license terms.
774
- Your integration of RapidJSON into your own projects may require compliance with
775
- the MIT License, as well as the other licenses applicable to the third-party
776
- components included within RapidJSON. To avoid the problematic JSON license in
777
- your own projects, it's sufficient to exclude the bin/jsonchecker/ directory, as
778
- it's the only code under the JSON license. A copy of the MIT License is included
779
- in this file.
780
-
781
- Other dependencies and licenses:
782
-
783
- Open Source Software Licensed Under the BSD License:
784
- --------------------------------------------------------------------
785
-
786
- The msinttypes r29
787
- Copyright (c) 2006-2013 Alexander Chemeris
788
- All rights reserved.
789
-
790
- Redistribution and use in source and binary forms, with or without
791
- modification, are permitted provided that the following conditions are met:
792
-
793
- * Redistributions of source code must retain the above copyright notice,
794
- this list of conditions and the following disclaimer.
795
- * Redistributions in binary form must reproduce the above copyright notice,
796
- this list of conditions and the following disclaimer in the documentation
797
- and/or other materials provided with the distribution.
798
- * Neither the name of copyright holder nor the names of its contributors may be
799
- used to endorse or promote products derived from this software without
800
- specific prior written permission.
801
-
802
- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
803
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
804
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
805
- DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
806
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
807
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
808
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
809
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
810
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
811
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
812
-
813
- Open Source Software Licensed Under the JSON License:
814
- --------------------------------------------------------------------
815
-
816
- json.org
817
- Copyright (c) 2002 JSON.org
818
- All Rights Reserved.
819
-
820
- JSON_checker
821
- Copyright (c) 2002 JSON.org
822
- All Rights Reserved.
823
-
824
- Terms of the JSON License:
825
- ---------------------------------------------------
826
-
827
- Permission is hereby granted, free of charge, to any person obtaining a copy of
828
- this software and associated documentation files (the "Software"), to deal in
829
- the Software without restriction, including without limitation the rights to
830
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
831
- the Software, and to permit persons to whom the Software is furnished to do so,
832
- subject to the following conditions:
833
-
834
- The above copyright notice and this permission notice shall be included in all
835
- copies or substantial portions of the Software.
836
-
837
- The Software shall be used for Good, not Evil.
838
-
839
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
840
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
841
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
842
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
843
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
844
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
845
-
846
- Terms of the MIT License:
847
- --------------------------------------------------------------------
848
-
849
- Permission is hereby granted, free of charge, to any person obtaining a copy of
850
- this software and associated documentation files (the "Software"), to deal in
851
- the Software without restriction, including without limitation the rights to
852
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
853
- the Software, and to permit persons to whom the Software is furnished to do so,
854
- subject to the following conditions:
855
-
856
- The above copyright notice and this permission notice shall be included in all
857
- copies or substantial portions of the Software.
858
-
859
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
860
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
861
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
862
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
863
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
864
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
865
-
866
- ===========================================================================
867
-
868
- Mapbox GL uses portions of Reachability.
869
-
1280
+ ### MapLibre-GL-Native uses portions of Reachability.
1281
+ ```
870
1282
  Copyright (c) 2011, Tony Million.
871
1283
  All rights reserved.
872
1284
 
@@ -894,7 +1306,7 @@ POSSIBILITY OF SUCH DAMAGE.
894
1306
 
895
1307
  ===========================================================================
896
1308
 
897
- Mapbox GL uses portions of SQLite.
1309
+ MapLibre-GL-Native uses portions of SQLite.
898
1310
 
899
1311
  2001 September 15
900
1312
 
@@ -905,9 +1317,13 @@ a legal notice, here is a blessing:
905
1317
  May you find forgiveness for yourself and forgive others.
906
1318
  May you share freely, never taking more than you give.
907
1319
 
1320
+ ```
1321
+
908
1322
  ===========================================================================
909
1323
 
910
- Mapbox GL uses portions of SVPulsingAnnotationView.
1324
+ ### MapLibre-GL-Native uses portions of SVPulsingAnnotationView.
1325
+
1326
+ ```
911
1327
 
912
1328
  Copyright (c) 2013, Sam Vermette <hello@samvermette.com>
913
1329
 
@@ -923,9 +1339,13 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
923
1339
  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
924
1340
  THIS SOFTWARE.
925
1341
 
1342
+ ```
1343
+
926
1344
  ===========================================================================
927
1345
 
928
- Mapbox GL uses portions of zlib.
1346
+ ### MapLibre-GL-Native uses portions of zlib.
1347
+
1348
+ ```
929
1349
 
930
1350
  Acknowledgments:
931
1351
 
@@ -956,11 +1376,13 @@ freely, subject to the following restrictions:
956
1376
 
957
1377
  Jean-loup Gailly Mark Adler
958
1378
  jloup@gzip.org madler@alumni.caltech.edu
1379
+ ```
959
1380
 
960
1381
  ===========================================================================
961
1382
 
962
- Mapbox GL uses portions of Realm Objective-C.
1383
+ ### MapLibre-GL-Native uses portions of Realm Objective-C.
963
1384
 
1385
+ ```
964
1386
  Copyright 2015 Realm Inc.
965
1387
 
966
1388
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -974,11 +1396,12 @@ distributed under the License is distributed on an "AS IS" BASIS,
974
1396
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
975
1397
  See the License for the specific language governing permissions and
976
1398
  limitations under the License.
1399
+ ```
1400
+ ---
977
1401
 
978
- ===========================================================================
979
-
980
- Leaflet - BSD 2-Clause License
981
-
1402
+ ### [Leaflet](https://github.com/Leaflet/Leaflet)
1403
+ ```
1404
+ BSD 2-Clause License
982
1405
  Copyright (c) 2010-2023, Volodymyr Agafonkin
983
1406
  Copyright (c) 2010-2011, CloudMade
984
1407
  All rights reserved.
@@ -1002,4 +1425,5 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1002
1425
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1003
1426
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1004
1427
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1005
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1428
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1429
+ ```
package/docs/conf.py CHANGED
@@ -44,7 +44,7 @@ master_doc = 'index'
44
44
 
45
45
  # General information about the project.
46
46
  project = u'TileServer GL'
47
- copyright = u'2022, MapTiler.com'
47
+ copyright = u'2023, MapTiler.com'
48
48
 
49
49
  # The version info for the project you're documenting, acts as replacement for
50
50
  # |version| and |release|, also used in various other places throughout the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tileserver-gl-light",
3
- "version": "4.4.6",
3
+ "version": "4.4.8",
4
4
  "description": "Map tile server for JSON GL styles - serving vector tiles",
5
5
  "main": "src/main.js",
6
6
  "bin": "src/main.js",
package/src/server.js CHANGED
@@ -590,6 +590,16 @@ function start(opts) {
590
590
  };
591
591
  }
592
592
 
593
+ /**
594
+ * Stop the server gracefully
595
+ *
596
+ * @param {string} signal Name of the received signal
597
+ */
598
+ function stopGracefully(signal) {
599
+ console.log(`Caught signal ${signal}, stopping gracefully`);
600
+ process.exit();
601
+ }
602
+
593
603
  /**
594
604
  *
595
605
  * @param opts
@@ -602,11 +612,11 @@ export function server(opts) {
602
612
  process.exit(1);
603
613
  });
604
614
 
605
- process.on('SIGINT', () => {
606
- process.exit();
607
- });
615
+ process.on('SIGINT', stopGracefully);
616
+ process.on('SIGTERM', stopGracefully);
608
617
 
609
- process.on('SIGHUP', () => {
618
+ process.on('SIGHUP', (signal) => {
619
+ console.log(`Caught signal ${signal}, refreshing`);
610
620
  console.log('Stopping server and reloading config');
611
621
 
612
622
  running.server.shutdown(() => {
package/src/utils.js CHANGED
@@ -8,9 +8,11 @@ import glyphCompose from '@mapbox/glyph-pbf-composite';
8
8
 
9
9
  /**
10
10
  * Generate new URL object
11
+ *
12
+ * @param req
11
13
  * @params {object} req - Express request
12
14
  * @returns {URL} object
13
- **/
15
+ */
14
16
  const getUrlObject = (req) => {
15
17
  const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
16
18
  // support overriding hostname by sending X-Forwarded-Host http header