@maplibre/maplibre-gl-native 5.0.1-pre.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.mbgl-core.md +661 -0
- package/LICENSE.md +30 -0
- package/README.md +248 -0
- package/lib/node-v102/mbgl.node +0 -0
- package/lib/node-v108/mbgl.node +0 -0
- package/lib/node-v57/mbgl.node +0 -0
- package/lib/node-v59/mbgl.node +0 -0
- package/lib/node-v64/mbgl.node +0 -0
- package/lib/node-v67/mbgl.node +0 -0
- package/lib/node-v72/mbgl.node +0 -0
- package/lib/node-v79/mbgl.node +0 -0
- package/lib/node-v83/mbgl.node +0 -0
- package/lib/node-v88/mbgl.node +0 -0
- package/lib/node-v93/mbgl.node +0 -0
- package/package.json +76 -0
- package/platform/node/index.js +51 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
### [Mapbox GL Native](https://github.com/mapbox/mapbox-gl-native) by Mapbox
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
mapbox-gl-native Copyright (c) 2014-2020 Mapbox.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are
|
|
8
|
+
met:
|
|
9
|
+
|
|
10
|
+
* Redistributions of source code must retain the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer.
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
notice, this list of conditions and the following disclaimer in
|
|
14
|
+
the documentation and/or other materials provided with the
|
|
15
|
+
distribution.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
18
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
19
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
20
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
21
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
22
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
23
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR
|
|
24
|
+
PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
25
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
26
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### [kdbush.hpp](https://github.com/mourner/kdbush.hpp) by Vladimir Agafonkin
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Copyright (c) 2016, Vladimir Agafonkin
|
|
37
|
+
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
40
|
+
copyright notice and this permission notice appear in all copies.
|
|
41
|
+
|
|
42
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
43
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
44
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
45
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
46
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
47
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
48
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### [supercluster.hpp](https://github.com/mapbox/supercluster.hpp) by Mapbox
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
Copyright (c) 2016, Mapbox
|
|
58
|
+
|
|
59
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
60
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
61
|
+
copyright notice and this permission notice appear in all copies.
|
|
62
|
+
|
|
63
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
64
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
65
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
66
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
67
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
68
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
69
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
### [shelf-pack-cpp](https://github.com/mapbox/shelf-pack-cpp) by Mapbox
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
ISC License
|
|
79
|
+
|
|
80
|
+
Copyright (c) 2017, Mapbox
|
|
81
|
+
|
|
82
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
83
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
84
|
+
and this permission notice appear in all copies.
|
|
85
|
+
|
|
86
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
87
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
88
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
89
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
90
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
91
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
92
|
+
THIS SOFTWARE.
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### [geojson-vt-cpp](https://github.com/mapbox/geojson-vt-cpp) by Mapbox
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
ISC License
|
|
102
|
+
|
|
103
|
+
Copyright (c) 2015, Mapbox
|
|
104
|
+
|
|
105
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
106
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
107
|
+
and this permission notice appear in all copies.
|
|
108
|
+
|
|
109
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
110
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
111
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
112
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
113
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
114
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
115
|
+
THIS SOFTWARE.
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
### [cheap-ruler-cpp](https://github.com/mapbox/cheap-ruler-cpp) by Mapbox
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
ISC License
|
|
125
|
+
|
|
126
|
+
Copyright (c) 2017, Mapbox
|
|
127
|
+
|
|
128
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
129
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
130
|
+
and this permission notice appear in all copies.
|
|
131
|
+
|
|
132
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
133
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
134
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
135
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
136
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
137
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
138
|
+
THIS SOFTWARE.
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### [Boost C++ Libraries](https://www.boost.org) by Boost authors
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
Boost Software License - Version 1.0 - August 17th, 2003
|
|
148
|
+
|
|
149
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
150
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
151
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
152
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
153
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
154
|
+
do so, all subject to the following:
|
|
155
|
+
|
|
156
|
+
The copyright notices in the Software and this entire statement, including
|
|
157
|
+
the above license grant, this restriction and the following disclaimer,
|
|
158
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
159
|
+
all derivative works of the Software, unless such copies or derivative
|
|
160
|
+
works are solely in the form of machine-executable object code generated by
|
|
161
|
+
a source language processor.
|
|
162
|
+
|
|
163
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
164
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
165
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
166
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
167
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
168
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
169
|
+
DEALINGS IN THE SOFTWARE.
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
### [csscolorparser](https://github.com/mapbox/css-color-parser-cpp) by Dean McNamee and Konstantin Käfer
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
(c) Dean McNamee <dean@gmail.com>, 2012.
|
|
179
|
+
(c) Konstantin Käfer <mail@kkaefer.com>, 2014.
|
|
180
|
+
|
|
181
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
182
|
+
of this software and associated documentation files (the "Software"), to
|
|
183
|
+
deal in the Software without restriction, including without limitation the
|
|
184
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
185
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
186
|
+
furnished to do so, subject to the following conditions:
|
|
187
|
+
|
|
188
|
+
The above copyright notice and this permission notice shall be included in
|
|
189
|
+
all copies or substantial portions of the Software.
|
|
190
|
+
|
|
191
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
192
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
193
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
194
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
195
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
196
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
197
|
+
IN THE SOFTWARE.
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
### [earcut.hpp](https://github.com/mapbox/earcut.hpp) by Mapbox
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
ISC License
|
|
207
|
+
|
|
208
|
+
Copyright (c) 2015, Mapbox
|
|
209
|
+
|
|
210
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
211
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
212
|
+
and this permission notice appear in all copies.
|
|
213
|
+
|
|
214
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
215
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
216
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
217
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
218
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
219
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
220
|
+
THIS SOFTWARE.
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### [eternal](https://github.com/mapbox/eternal) by Mapbox
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
ISC License
|
|
230
|
+
|
|
231
|
+
Copyright (c) 2018, Mapbox
|
|
232
|
+
|
|
233
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
234
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
235
|
+
and this permission notice appear in all copies.
|
|
236
|
+
|
|
237
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
238
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
239
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
240
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
241
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
242
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
243
|
+
THIS SOFTWARE.
|
|
244
|
+
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### [parsedate](https://curl.haxx.se) by Daniel Stenberg and others
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
253
|
+
|
|
254
|
+
Copyright (c) 1996 - 2020, Daniel Stenberg, <daniel@haxx.se>, and many
|
|
255
|
+
contributors, see the THANKS file.
|
|
256
|
+
|
|
257
|
+
All rights reserved.
|
|
258
|
+
|
|
259
|
+
Permission to use, copy, modify, and distribute this software for any purpose
|
|
260
|
+
with or without fee is hereby granted, provided that the above copyright
|
|
261
|
+
notice and this permission notice appear in all copies.
|
|
262
|
+
|
|
263
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
264
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
265
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
|
|
266
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
267
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
268
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
269
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
270
|
+
|
|
271
|
+
Except as contained in this notice, the name of a copyright holder shall not
|
|
272
|
+
be used in advertising or otherwise to promote the sale, use or other dealings
|
|
273
|
+
in this Software without prior written authorization of the copyright holder.
|
|
274
|
+
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
### [polylabel](https://github.com/mapbox/polylabel) by Mapbox
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
ISC License
|
|
283
|
+
Copyright (c) 2016 Mapbox
|
|
284
|
+
|
|
285
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
286
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
287
|
+
and this permission notice appear in all copies.
|
|
288
|
+
|
|
289
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
|
290
|
+
THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
|
291
|
+
IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
|
292
|
+
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
|
|
293
|
+
OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
|
294
|
+
ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
295
|
+
SOFTWARE.
|
|
296
|
+
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
### [protozero](https://github.com/mapbox/protozero) by Mapbox
|
|
302
|
+
|
|
303
|
+
```
|
|
304
|
+
protozero copyright (c) Mapbox.
|
|
305
|
+
|
|
306
|
+
Redistribution and use in source and binary forms, with or without
|
|
307
|
+
modification, are permitted provided that the following conditions are
|
|
308
|
+
met:
|
|
309
|
+
|
|
310
|
+
* Redistributions of source code must retain the above copyright
|
|
311
|
+
notice, this list of conditions and the following disclaimer.
|
|
312
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
313
|
+
notice, this list of conditions and the following disclaimer in
|
|
314
|
+
the documentation and/or other materials provided with the
|
|
315
|
+
distribution.
|
|
316
|
+
|
|
317
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
318
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
319
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
320
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
321
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
322
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
323
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE, DATA, OR
|
|
324
|
+
PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
325
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
326
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
327
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
328
|
+
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
### [unique_resource](https://github.com/okdshin/unique_resource) by Shintarou Okada
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
Boost Software License - Version 1.0 - August 17th, 2003
|
|
337
|
+
|
|
338
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
339
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
340
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
341
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
342
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
343
|
+
do so, all subject to the following:
|
|
344
|
+
|
|
345
|
+
The copyright notices in the Software and this entire statement, including
|
|
346
|
+
the above license grant, this restriction and the following disclaimer,
|
|
347
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
348
|
+
all derivative works of the Software, unless such copies or derivative
|
|
349
|
+
works are solely in the form of machine-executable object code generated by
|
|
350
|
+
a source language processor.
|
|
351
|
+
|
|
352
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
353
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
354
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
355
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
356
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
357
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
358
|
+
DEALINGS IN THE SOFTWARE.
|
|
359
|
+
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
### [vector-tile](https://github.com/mapbox/vector-tile) by Mapbox
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
Copyright (c) 2016, Mapbox
|
|
368
|
+
|
|
369
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
370
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
371
|
+
copyright notice and this permission notice appear in all copies.
|
|
372
|
+
|
|
373
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
374
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
375
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
376
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
377
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
378
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
379
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
380
|
+
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### [wagyu](https://github.com/mapbox/wagyu.git) by Angus Johnson and Mapbox
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
Parts of the code in the Wagyu Library are derived from the version of the
|
|
389
|
+
Clipper Library by Angus Johnson listed below.
|
|
390
|
+
|
|
391
|
+
Author : Angus Johnson
|
|
392
|
+
Version : 6.4.0
|
|
393
|
+
Date : 2 July 2015
|
|
394
|
+
Website : http://www.angusj.com
|
|
395
|
+
|
|
396
|
+
Copyright for portions of the derived code in the Wagyu library are held
|
|
397
|
+
by Angus Johnson, 2010-2015. All other copyright for the Wagyu Library are held by
|
|
398
|
+
Mapbox, 2016. This code is published in accordance with, and retains the same license
|
|
399
|
+
as the Clipper Library by Angus Johnson.
|
|
400
|
+
|
|
401
|
+
Copyright (c) 2010-2015, Angus Johnson
|
|
402
|
+
Copyright (c) 2016, Mapbox
|
|
403
|
+
|
|
404
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
405
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
406
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
407
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
408
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
409
|
+
do so, all subject to the following:
|
|
410
|
+
|
|
411
|
+
The copyright notices in the Software and this entire statement, including
|
|
412
|
+
the above license grant, this restriction and the following disclaimer,
|
|
413
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
414
|
+
all derivative works of the Software, unless such copies or derivative
|
|
415
|
+
works are solely in the form of machine-executable object code generated by
|
|
416
|
+
a source language processor.
|
|
417
|
+
|
|
418
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
419
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
420
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
421
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
422
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
423
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
424
|
+
DEALINGS IN THE SOFTWARE.
|
|
425
|
+
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
### [mapbox-base](https://github.com/mapbox/mapbox-base) by Mapbox
|
|
431
|
+
|
|
432
|
+
```
|
|
433
|
+
Copyright (c) MapBox
|
|
434
|
+
All rights reserved.
|
|
435
|
+
|
|
436
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
437
|
+
are permitted provided that the following conditions are met:
|
|
438
|
+
|
|
439
|
+
- Redistributions of source code must retain the above copyright notice, this
|
|
440
|
+
list of conditions and the following disclaimer.
|
|
441
|
+
- Redistributions in binary form must reproduce the above copyright notice, this
|
|
442
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
443
|
+
other materials provided with the distribution.
|
|
444
|
+
- Neither the name "MapBox" nor the names of its contributors may be
|
|
445
|
+
used to endorse or promote products derived from this software without
|
|
446
|
+
specific prior written permission.
|
|
447
|
+
|
|
448
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
449
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
450
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
451
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
452
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
453
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
|
|
454
|
+
LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
455
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
456
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
457
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
### [expected-lite](https://github.com/martinmoene/expected-lite) by Martin Moene
|
|
463
|
+
|
|
464
|
+
```
|
|
465
|
+
Boost Software License - Version 1.0 - August 17th, 2003
|
|
466
|
+
|
|
467
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
468
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
469
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
470
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
471
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
472
|
+
do so, all subject to the following:
|
|
473
|
+
|
|
474
|
+
The copyright notices in the Software and this entire statement, including
|
|
475
|
+
the above license grant, this restriction and the following disclaimer,
|
|
476
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
477
|
+
all derivative works of the Software, unless such copies or derivative
|
|
478
|
+
works are solely in the form of machine-executable object code generated by
|
|
479
|
+
a source language processor.
|
|
480
|
+
|
|
481
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
482
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
483
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
484
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
485
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
486
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
487
|
+
DEALINGS IN THE SOFTWARE.
|
|
488
|
+
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
---
|
|
492
|
+
|
|
493
|
+
### [RapidJSON](https://rapidjson.org) by THL A29 Limited, a Tencent company, and Milo Yip
|
|
494
|
+
|
|
495
|
+
```
|
|
496
|
+
Tencent is pleased to support the open source community by making RapidJSON available.
|
|
497
|
+
|
|
498
|
+
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
|
499
|
+
|
|
500
|
+
If you have downloaded a copy of the RapidJSON binary from Tencent, please note that the RapidJSON binary is licensed under the MIT License.
|
|
501
|
+
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.
|
|
502
|
+
A copy of the MIT License is included in this file.
|
|
503
|
+
|
|
504
|
+
Other dependencies and licenses:
|
|
505
|
+
|
|
506
|
+
Open Source Software Licensed Under the BSD License:
|
|
507
|
+
--------------------------------------------------------------------
|
|
508
|
+
|
|
509
|
+
The msinttypes r29
|
|
510
|
+
Copyright (c) 2006-2013 Alexander Chemeris
|
|
511
|
+
All rights reserved.
|
|
512
|
+
|
|
513
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
514
|
+
|
|
515
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
516
|
+
* 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.
|
|
517
|
+
* 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.
|
|
518
|
+
|
|
519
|
+
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.
|
|
520
|
+
|
|
521
|
+
Open Source Software Licensed Under the JSON License:
|
|
522
|
+
--------------------------------------------------------------------
|
|
523
|
+
|
|
524
|
+
json.org
|
|
525
|
+
Copyright (c) 2002 JSON.org
|
|
526
|
+
All Rights Reserved.
|
|
527
|
+
|
|
528
|
+
JSON_checker
|
|
529
|
+
Copyright (c) 2002 JSON.org
|
|
530
|
+
All Rights Reserved.
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
Terms of the JSON License:
|
|
534
|
+
---------------------------------------------------
|
|
535
|
+
|
|
536
|
+
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:
|
|
537
|
+
|
|
538
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
539
|
+
|
|
540
|
+
The Software shall be used for Good, not Evil.
|
|
541
|
+
|
|
542
|
+
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.
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
Terms of the MIT License:
|
|
546
|
+
--------------------------------------------------------------------
|
|
547
|
+
|
|
548
|
+
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:
|
|
549
|
+
|
|
550
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
551
|
+
|
|
552
|
+
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.
|
|
553
|
+
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
---
|
|
557
|
+
|
|
558
|
+
### [geojson.hpp](https://github.com/mapbox/geojson-cpp) by Mapbox
|
|
559
|
+
|
|
560
|
+
```
|
|
561
|
+
Copyright (c) 2016, Mapbox
|
|
562
|
+
|
|
563
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
564
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
565
|
+
copyright notice and this permission notice appear in all copies.
|
|
566
|
+
|
|
567
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
568
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
569
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
570
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
571
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
572
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
573
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
574
|
+
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
---
|
|
578
|
+
|
|
579
|
+
### [geometry.hpp](https://github.com/mapbox/geometry.hpp) by Mapbox
|
|
580
|
+
|
|
581
|
+
```
|
|
582
|
+
Copyright (c) 2016, Mapbox
|
|
583
|
+
|
|
584
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
585
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
586
|
+
copyright notice and this permission notice appear in all copies.
|
|
587
|
+
|
|
588
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
589
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
590
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
591
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
592
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
593
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
594
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
---
|
|
598
|
+
|
|
599
|
+
### [Optional](https://github.com/akrzemi1/Optional) by Andrzej Krzemienski
|
|
600
|
+
|
|
601
|
+
```
|
|
602
|
+
Boost Software License - Version 1.0 - August 17th, 2003
|
|
603
|
+
|
|
604
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
605
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
606
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
607
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
608
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
609
|
+
do so, all subject to the following:
|
|
610
|
+
|
|
611
|
+
The copyright notices in the Software and this entire statement, including
|
|
612
|
+
the above license grant, this restriction and the following disclaimer,
|
|
613
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
614
|
+
all derivative works of the Software, unless such copies or derivative
|
|
615
|
+
works are solely in the form of machine-executable object code generated by
|
|
616
|
+
a source language processor.
|
|
617
|
+
|
|
618
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
619
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
620
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
621
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
622
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
623
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
624
|
+
DEALINGS IN THE SOFTWARE.
|
|
625
|
+
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
---
|
|
629
|
+
|
|
630
|
+
### [variant](https://github.com/mapbox/variant) by Mapbox
|
|
631
|
+
|
|
632
|
+
```
|
|
633
|
+
Copyright (c) MapBox
|
|
634
|
+
All rights reserved.
|
|
635
|
+
|
|
636
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
637
|
+
are permitted provided that the following conditions are met:
|
|
638
|
+
|
|
639
|
+
- Redistributions of source code must retain the above copyright notice, this
|
|
640
|
+
list of conditions and the following disclaimer.
|
|
641
|
+
- Redistributions in binary form must reproduce the above copyright notice, this
|
|
642
|
+
list of conditions and the following disclaimer in the documentation and/or
|
|
643
|
+
other materials provided with the distribution.
|
|
644
|
+
- Neither the name "MapBox" nor the names of its contributors may be
|
|
645
|
+
used to endorse or promote products derived from this software without
|
|
646
|
+
specific prior written permission.
|
|
647
|
+
|
|
648
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
649
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
650
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
651
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
652
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
653
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES
|
|
654
|
+
LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
655
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
656
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
657
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
---
|
|
661
|
+
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
BSD 2-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 MapLibre contributors
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2018-2021 MapTiler.com
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2014-2020 Mapbox
|
|
8
|
+
|
|
9
|
+
Redistribution and use in source and binary forms, with or without
|
|
10
|
+
modification, are permitted provided that the following conditions are
|
|
11
|
+
met:
|
|
12
|
+
|
|
13
|
+
* Redistributions of source code must retain the above copyright
|
|
14
|
+
notice, this list of conditions and the following disclaimer.
|
|
15
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
notice, this list of conditions and the following disclaimer in
|
|
17
|
+
the documentation and/or other materials provided with the
|
|
18
|
+
distribution.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
21
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
22
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
23
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
24
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
25
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
26
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
27
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
28
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
29
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
30
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
# MapLibre GL Native - Open-Source Mapbox GL Native
|
|
2
|
+
|
|
3
|
+
SDK for iOS, Android and other platforms
|
|
4
|
+
|
|
5
|
+
MapLibre GL Native is a community led fork derived from [mapbox-gl-native](https://github.com/mapbox/mapbox-gl-native) prior to their switch to a non-OSS license. The fork also includes Maps SDK for iOS and MacOS (forked from [mapbox-gl-native-ios](https://github.com/mapbox/mapbox-gl-native-ios)) and Android SDK (forked from [mapbox-gl-native-android](https://github.com/mapbox/mapbox-gl-native-android)). These platform-specific SDKs were merged under platform directory and they reference mapbox-gl-native directly, not as a submodule.
|
|
6
|
+
|
|
7
|
+
Beside merging in platform specific SDKs, the following changes were made compared to original mapbox projects:
|
|
8
|
+
|
|
9
|
+
* The code was upgraded so that it can be built using latest clang compiler / Xcode 12.
|
|
10
|
+
* CI/CD was migrated from CircleCI to GitHub Actions.
|
|
11
|
+
* Along with GitHub releases, binaries are distributed as follows:
|
|
12
|
+
* The iOS binaries distribution was upgraded from fat packages to Swift package containing XCFramework.
|
|
13
|
+
* The Android binaries are distributed to GitHub maven package repository.
|
|
14
|
+
|
|
15
|
+
> The mapbox-gl-native was forked from [d60fd30 - mgbl 1.6.0](https://github.com/mapbox/mapbox-gl-native/tree/d60fd302b1f6563e7d16952f8855122fdcc85f73), mapbox-gl-native-ios from [a139216](https://github.com/mapbox/mapbox-gl-native-ios/commit/a139216) and mapbox-gl-native-android from [4c12fb2](https://github.com/mapbox/mapbox-gl-native-android/commit/4c12fb2c)
|
|
16
|
+
## Build Status
|
|
17
|
+
|
|
18
|
+
| SDK | Build | Build status |
|
|
19
|
+
|---------------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
20
|
+
| [Maps SDK for iOS](platform/ios/) | CI | [](https://github.com/maplibre/maplibre-gl-native/workflows/ios-ci) |
|
|
21
|
+
| [Maps SDK for iOS](platform/ios/) | Release | [](https://github.com/maplibre/maplibre-gl-native/workflows/ios-release) |
|
|
22
|
+
| [Maps SDK for Android](platform/android/) | CI | [](https://github.com/maplibre/maplibre-gl-native/workflows/android-ci) |
|
|
23
|
+
| [Maps SDK for Android](platform/android/) | Release | [](https://github.com/maplibre/maplibre-gl-native/workflows/android-release) |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Sponsors
|
|
27
|
+
|
|
28
|
+
We thank everyone who supported us financially in the past and special thanks to the people and organizations who support us with recurring dontations:
|
|
29
|
+
|
|
30
|
+
[MIERUNE Inc.](https://www.mierune.co.jp/?lang=en) [@MIERUNE](https://github.com/MIERUNE), [@jawg](https://github.com/jawg), [@nekoyasan](https://github.com/nekoyasan), [@atierian](https://github.com/atierian), [@photoprism](https://github.com/photoprism), [@kaplanlior](https://github.com/kaplanlior), [@francois2metz](https://github.com/francois2metz), [@Schneider-Geo](https://github.com/Schneider-Geo), [@serghov](https://github.com/serghov), [@ambientlight](https://github.com/ambientlight), [@joschi77](https://github.com/joschi77), [@geoffhill](https://github.com/geoffhill), [@jasongode](https://github.com/jasongode)
|
|
31
|
+
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
The Android API documentation is available at https://maplibre.org/maplibre-gl-native/android/api/
|
|
35
|
+
|
|
36
|
+
The iOS API documentation is available at https://maplibre.org/maplibre-gl-native/ios/api/
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
### Android
|
|
41
|
+
|
|
42
|
+
1. Add bintray maven repositories to your build.gradle at project level so that you can access MapLibre packages for Android:
|
|
43
|
+
|
|
44
|
+
```gradle
|
|
45
|
+
allprojects {
|
|
46
|
+
repositories {
|
|
47
|
+
...
|
|
48
|
+
mavenCentral()
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
> Note: [Bintray was turn off May 1st, 2021](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/) so we migrated all packages to maven central.
|
|
54
|
+
|
|
55
|
+
2. Add the library as a dependency into your module build.gradle
|
|
56
|
+
|
|
57
|
+
```gradle
|
|
58
|
+
dependencies {
|
|
59
|
+
...
|
|
60
|
+
implementation 'org.maplibre.gl:android-sdk:<version>'
|
|
61
|
+
...
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
3. Sync gradle and rebuild your app
|
|
66
|
+
|
|
67
|
+
*Note: MapLibre by default ships with the proprietary Google Play Location Services. If you want to avoid pulling proprietary dependencies into your project, you can exclude Google Play Location Services as follows:*
|
|
68
|
+
```gradle
|
|
69
|
+
implementation ('org.maplibre.gl:android-sdk:<version>') {
|
|
70
|
+
exclude group: 'com.google.android.gms'
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### iOS
|
|
75
|
+
|
|
76
|
+
1. To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. You can also navigate to your target’s General pane, and in the “Frameworks, Libraries, and Embedded Content” section, click the + button, select Add Other, and choose Add Package Dependency.
|
|
77
|
+
|
|
78
|
+
2. Either add MapLibre GitHub distribution URL (https://github.com/maplibre/maplibre-gl-native-distribution) or search for `maplibre-gl-native` package.
|
|
79
|
+
|
|
80
|
+
3. Choose "next". Xcode should clone the distribution repository and download the binaries.
|
|
81
|
+
|
|
82
|
+
## Alternative installation
|
|
83
|
+
|
|
84
|
+
You can also download pre-build from releases in this repository.
|
|
85
|
+
|
|
86
|
+
## How to create your own build
|
|
87
|
+
|
|
88
|
+
### Source code checkout
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
git clone --recurse-submodules https://github.com/maplibre/maplibre-gl-native.git
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Build
|
|
95
|
+
|
|
96
|
+
MapLibre uses tags for its Android & iOS releases based on [SemVer](https://semver.org) versioning. This is useful for checking out a particular released version for feature enhancments or debugging.
|
|
97
|
+
|
|
98
|
+
You can list available tags by issuing the command `git tag`, then use the result
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# 1. Obtain a list of tags, which matches to release versions
|
|
102
|
+
git tag
|
|
103
|
+
|
|
104
|
+
# 2. Set a convenience variable with the desired TAG
|
|
105
|
+
# TAG=android-v9.4.2
|
|
106
|
+
# TAG=android-v9.5.2
|
|
107
|
+
TAG=ios-v5.12.0
|
|
108
|
+
# TAG=ios-v5.12.0-pre.1
|
|
109
|
+
|
|
110
|
+
# 3. Check out a particular TAG
|
|
111
|
+
git checkout tags/$TAG -b $TAG
|
|
112
|
+
|
|
113
|
+
# 4. build, debug or enhance features based on the tag
|
|
114
|
+
# clean, if you need to troubleshoot build dependencies by using `make clean`
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Build using Bazel
|
|
118
|
+
|
|
119
|
+
[Bazel](https://bazel.build) is also supported as a build option for getting a packaged release of the xcframework compiled for either static or dynamic linking.
|
|
120
|
+
|
|
121
|
+
Firstly you will have to ensure that Bazel is installed
|
|
122
|
+
|
|
123
|
+
`brew install baselisk`
|
|
124
|
+
|
|
125
|
+
From there you can use the script in platform/ios/platform/ios/scripts/package-bazel.sh
|
|
126
|
+
|
|
127
|
+
# There are 4 options:
|
|
128
|
+
|
|
129
|
+
`cd platform/ios/platform/ios/scripts`
|
|
130
|
+
|
|
131
|
+
Static xcframework compiled for release (this is default if no parameters are provided):
|
|
132
|
+
`./bazel-package.sh --static --release`
|
|
133
|
+
|
|
134
|
+
Static xcframework compiled for debug:
|
|
135
|
+
`./bazel-package.sh --static --debug`
|
|
136
|
+
|
|
137
|
+
Dynamic xcframework compiled for release:
|
|
138
|
+
`./bazel-package.sh --dynamic --release`
|
|
139
|
+
|
|
140
|
+
Dynamic xcframework compiled for debug:
|
|
141
|
+
`./bazel-package.sh --dynamic --debug`
|
|
142
|
+
|
|
143
|
+
All compiled frameworks will end up in the `bazel-bin/platform/ios/` path from the root of the repo.
|
|
144
|
+
|
|
145
|
+
Also you can use the link option to ensure that the framework is able to link.
|
|
146
|
+
|
|
147
|
+
`./bazel-package.sh --link`
|
|
148
|
+
|
|
149
|
+
# Bazel build files are placed in a few places throughout the project:
|
|
150
|
+
|
|
151
|
+
`BUILD.bazel`
|
|
152
|
+
- Covering the base cpp in the root `src` directory.
|
|
153
|
+
|
|
154
|
+
`vendor/BUILD.bazel`
|
|
155
|
+
- Covering the submodule dependencies of Maplibre.
|
|
156
|
+
|
|
157
|
+
`platform/default/BUILD.bazel`
|
|
158
|
+
- Covering the cpp dependencies in default.
|
|
159
|
+
|
|
160
|
+
`platform/darwin/BUILD.bazel`
|
|
161
|
+
- Covering the cpp source in platform/default.
|
|
162
|
+
|
|
163
|
+
`platform/ios/platform/ios/vendor/`
|
|
164
|
+
- Covering the iOS specific dependencies.
|
|
165
|
+
|
|
166
|
+
`platform/ios/BUILD.bazel`
|
|
167
|
+
- Covering the source in `platform/ios/platform/ios/src` and `platform/ios/platform/darwin/src` as well as defining all the other BUILD.bazel files and defining the xcframework targets.
|
|
168
|
+
|
|
169
|
+
# There are also some other areas that make bazel work:
|
|
170
|
+
|
|
171
|
+
`WORKSPACE`
|
|
172
|
+
- Defines the "repo" and the different modules that are loaded in order to compile for Apple.
|
|
173
|
+
|
|
174
|
+
`.bazelversion`
|
|
175
|
+
- Defines the version of bazel used, important for specific support for Apple targets.
|
|
176
|
+
|
|
177
|
+
`bazel/flags.bzl`
|
|
178
|
+
- Defines some compilation flags that are used between the different build files.
|
|
179
|
+
|
|
180
|
+
### Android
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
<details open><summary>macOS Build Environment: Android Studio + NDK</summary>
|
|
185
|
+
<ul>
|
|
186
|
+
<li>Environment: Android Studio + NDK<ul>
|
|
187
|
+
<li><code style="font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;">JAVA_HOME=/Applications/Android Studio.app/Contents/jre/Contents/Home</code></li>
|
|
188
|
+
<li><code style="font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;">ANDROID_SDK_ROOT=~/Library/Android/sdk</code></li>
|
|
189
|
+
<li><code style="font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;">~/Library/Android/sdk/tools/bin/sdkmanager --install ndk;major.minor.build</code></li>
|
|
190
|
+
</ul>
|
|
191
|
+
</details>
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
cd platform/android
|
|
196
|
+
BUILDTYPE=Debug make apackage
|
|
197
|
+
#BUILDTYPE=Release make apackage
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Binaries are produced in `platform/android/MapboxGLAndroidSDK/build/outputs/aar/MapboxGLAndroidSDK-<BUILDTYPE>.aar`
|
|
201
|
+
Please refer to [Mapbox Maps SDK for Android](platform/android/) for detailed instructions.
|
|
202
|
+
|
|
203
|
+
### iOS
|
|
204
|
+
|
|
205
|
+
You can run automated test on a Simulator or Device by changing to the Scheme `iosapp` and choosing `Product` > `Test` (or use `⌘-U`). Use `⌘-9` to navigate to `Reports` to see results and browse through screenshots. This method of testing should work well with CI tools such as GitHub Actions, Xcode Server Bots, & AWS Device Farm.
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
cd platform/ios
|
|
209
|
+
|
|
210
|
+
# make and open the Xcode workspace
|
|
211
|
+
make iproj
|
|
212
|
+
|
|
213
|
+
# make Xcode workspace, but run in headless mode
|
|
214
|
+
make iproj CI=1
|
|
215
|
+
|
|
216
|
+
# Make Frameworks
|
|
217
|
+
make xcframework BUILDTYPE=Release
|
|
218
|
+
|
|
219
|
+
# test
|
|
220
|
+
make ios-test
|
|
221
|
+
|
|
222
|
+
# UITests
|
|
223
|
+
# You can review uitest results: $(IOS_OUTPUT_PATH)/Logs/Test
|
|
224
|
+
make ios-uitest
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The packaging script will produce a `Mapbox.xcframework` in the `platform/ios/build/ios/pkg/dynamic` folder.
|
|
228
|
+
Please refer to [Mapbox Maps SDK for iOS](platform/ios/platform/ios/) for detailed instructions.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
#### MacOS
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
cd platform/ios
|
|
235
|
+
# open macOS project in Xcode
|
|
236
|
+
make xproj
|
|
237
|
+
|
|
238
|
+
# build or test from the command line
|
|
239
|
+
make xpackage
|
|
240
|
+
make macos-test
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
This produces a `Mapbox.framework` in the `platform/ios/build/macos/pkg/` folder.
|
|
244
|
+
Please refer to [Mapbox Maps SDK for macos](platform/ios/platform/macos/) for detailed instructions.
|
|
245
|
+
|
|
246
|
+
#### Linux
|
|
247
|
+
|
|
248
|
+
See [the Linux platform build section](platform/linux/) for instructions.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maplibre/maplibre-gl-native",
|
|
3
|
+
"version": "5.0.1-pre.0",
|
|
4
|
+
"description": "Renders map tiles with Maplibre GL",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"maplibre",
|
|
7
|
+
"gl"
|
|
8
|
+
],
|
|
9
|
+
"directories": {
|
|
10
|
+
"lib": "lib"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"lib"
|
|
14
|
+
],
|
|
15
|
+
"main": "platform/node/index.js",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/maplibre/maplibre-gl-native.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "BSD-2-Clause",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@mapbox/cmake-node-module": "^1.2.0",
|
|
23
|
+
"@mapbox/node-pre-gyp": "^1.0.10",
|
|
24
|
+
"@acalcutt/node-pre-gyp-github": "1.4.8",
|
|
25
|
+
"minimatch": "^5.1.0",
|
|
26
|
+
"npm-run-all": "^4.0.2"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@mapbox/flow-remove-types": "^2.0.0",
|
|
30
|
+
"@mapbox/mvt-fixtures": "3.10.0",
|
|
31
|
+
"@octokit/plugin-retry": "^3.0.9",
|
|
32
|
+
"@octokit/rest": "^19.0.4",
|
|
33
|
+
"aws-sdk": "^2.1213.0",
|
|
34
|
+
"csscolorparser": "~1.0.2",
|
|
35
|
+
"d3-queue": "3.0.7",
|
|
36
|
+
"diff": "5.1.0",
|
|
37
|
+
"ejs": "^3.1.8",
|
|
38
|
+
"esm": "~3.2.25",
|
|
39
|
+
"express": "^4.18.1",
|
|
40
|
+
"json-stringify-pretty-compact": "^4.0.0",
|
|
41
|
+
"jsonwebtoken": "^8.3.0",
|
|
42
|
+
"lodash": "^4.16.4",
|
|
43
|
+
"lodash.template": "4.5.0",
|
|
44
|
+
"mapbox-gl-styles": "2.0.2",
|
|
45
|
+
"pixelmatch": "^5.3.0",
|
|
46
|
+
"pngjs": "^6.0.0",
|
|
47
|
+
"pretty-bytes": "^6.0.0",
|
|
48
|
+
"request": "^2.88.0",
|
|
49
|
+
"semver": "^7.3.7",
|
|
50
|
+
"shuffle-seed": "1.1.6",
|
|
51
|
+
"st": "3.0.0",
|
|
52
|
+
"tape": "^5.6.0",
|
|
53
|
+
"xcode": "^3.0.1"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=6"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"install": "node-pre-gyp install --fallback-to-build=true",
|
|
60
|
+
"test": "tape platform/node/test/js/**/*.test.js",
|
|
61
|
+
"test-memory": "node --expose-gc platform/node/test/memory.test.js",
|
|
62
|
+
"test-expressions": "node -r esm platform/node/test/expression.test.js",
|
|
63
|
+
"test-render": "node -r esm platform/node/test/render.test.js",
|
|
64
|
+
"test-query": "node -r esm platform/node/test/query.test.js",
|
|
65
|
+
"package": "node-pre-gyp package",
|
|
66
|
+
"release": "node-pre-gyp-github publish --release"
|
|
67
|
+
},
|
|
68
|
+
"gypfile": true,
|
|
69
|
+
"binary": {
|
|
70
|
+
"module_name": "mbgl",
|
|
71
|
+
"module_path": "./lib/{node_abi}",
|
|
72
|
+
"host": "https://github.com/maplibre/maplibre-gl-native/releases/download/",
|
|
73
|
+
"remote_path": "node-v{version}",
|
|
74
|
+
"package_name": "{node_abi}-{platform}-{arch}-{configuration}.tar.gz"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// Shim to wrap req.respond while preserving callback-passing API
|
|
4
|
+
|
|
5
|
+
var mbgl = require('../../lib/node-v' + process.versions.modules + '/mbgl');
|
|
6
|
+
var constructor = mbgl.Map.prototype.constructor;
|
|
7
|
+
|
|
8
|
+
var Map = function(options) {
|
|
9
|
+
if (!(options instanceof Object)) {
|
|
10
|
+
throw TypeError("Requires an options object as first argument");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (!options.hasOwnProperty('request') || !(options.request instanceof Function)) {
|
|
14
|
+
throw TypeError("Options object must have a 'request' method");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var request = options.request;
|
|
18
|
+
|
|
19
|
+
return new constructor(Object.assign(options, {
|
|
20
|
+
request: function(req) {
|
|
21
|
+
// Protect against `request` implementations that call the callback synchronously,
|
|
22
|
+
// call it multiple times, or throw exceptions.
|
|
23
|
+
// http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony
|
|
24
|
+
|
|
25
|
+
var responded = false;
|
|
26
|
+
var callback = function() {
|
|
27
|
+
var args = arguments;
|
|
28
|
+
if (!responded) {
|
|
29
|
+
responded = true;
|
|
30
|
+
process.nextTick(function() {
|
|
31
|
+
req.respond.apply(req, args);
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
console.warn('request function responded multiple times; it should call the callback only once');
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
request(req, callback);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
console.warn('request function threw an exception; it should call the callback with an error instead');
|
|
42
|
+
callback(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
Map.prototype = mbgl.Map.prototype;
|
|
49
|
+
Map.prototype.constructor = Map;
|
|
50
|
+
|
|
51
|
+
module.exports = Object.assign(mbgl, { Map: Map });
|