@tangram.gl/basemap-layers 0.0.0 → 10.0.0-alpha.3
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/README.md +12 -7
- package/THIRD-PARTY-NOTICES.md +7 -5
- package/dist/geojson-task-worker.js +3166 -0
- package/dist/geojson-task-worker.js.map +6 -0
- package/dist/geojson-worker.js +1089 -7
- package/dist/geojson-worker.js.map +3 -3
- package/dist/index.cjs +9588 -2093
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +9599 -2090
- package/dist/index.js.map +3 -3
- package/dist/map-style.cjs +456 -20
- package/dist/map-style.cjs.map +3 -3
- package/dist/map-style.js +456 -19
- package/dist/map-style.js.map +2 -2
- package/dist/types/basemap-error.d.ts +52 -0
- package/dist/types/basemap-layer.d.ts +378 -25
- package/dist/types/basemap-protocol.d.ts +91 -0
- package/dist/types/basemap-request.d.ts +73 -0
- package/dist/types/circle-layer.d.ts +65 -8
- package/dist/types/color-relief-layer.d.ts +184 -0
- package/dist/types/dem-pixels.d.ts +40 -0
- package/dist/types/feature-state.d.ts +55 -0
- package/dist/types/fill-extrusion-lighting-extension.d.ts +1 -2
- package/dist/types/fill-outline-extension.d.ts +2 -3
- package/dist/types/fill-pattern.d.ts +35 -3
- package/dist/types/fill-style-extensions.d.ts +11 -59
- package/dist/types/geojson-resource.d.ts +18 -0
- package/dist/types/geojson-source.d.ts +13 -2
- package/dist/types/geojson-task-handler.d.ts +2 -0
- package/dist/types/geojson-task.d.ts +26 -0
- package/dist/types/geojson-tiler.d.ts +29 -2
- package/dist/types/geojson-worker.d.ts +5 -1
- package/dist/types/globe-horizon-extension.d.ts +2 -45
- package/dist/types/globe-layers.d.ts +141 -45
- package/dist/types/globe-line-angle-extension.d.ts +20 -17
- package/dist/types/glyph-store.d.ts +10 -1
- package/dist/types/heatmap-layer.d.ts +99 -0
- package/dist/types/hillshade-layer.d.ts +159 -27
- package/dist/types/icon-text-fit.d.ts +92 -0
- package/dist/types/image-source-layer.d.ts +142 -0
- package/dist/types/index.d.ts +25 -1
- package/dist/types/line-blur-extension.d.ts +3 -11
- package/dist/types/line-dash-extension.d.ts +53 -0
- package/dist/types/line-gradient-extension.d.ts +69 -0
- package/dist/types/line-metrics.d.ts +24 -0
- package/dist/types/line-pattern-extension.d.ts +50 -0
- package/dist/types/line-shape-extension.d.ts +76 -0
- package/dist/types/map-style-loader.d.ts +1 -1
- package/dist/types/map-style.d.ts +2 -2
- package/dist/types/mvt-label-layer.d.ts +111 -20
- package/dist/types/pmtiles-source.d.ts +38 -0
- package/dist/types/projected-background-layer.d.ts +63 -0
- package/dist/types/projected-bitmap-layer.d.ts +58 -0
- package/dist/types/projected-tile-data.d.ts +16 -0
- package/dist/types/projected-tile-selection.d.ts +72 -0
- package/dist/types/projected-tileset.d.ts +92 -0
- package/dist/types/projected-viewport.d.ts +76 -0
- package/dist/types/raster-color-extension.d.ts +4 -7
- package/dist/types/raster-fade.d.ts +155 -0
- package/dist/types/raster-tile-fingerprint.d.ts +11 -0
- package/dist/types/raster-tile-loader.d.ts +80 -0
- package/dist/types/shader-injection-plugin.d.ts +8 -0
- package/dist/types/source-features.d.ts +58 -0
- package/dist/types/source-tiles.d.ts +32 -0
- package/dist/types/sprite.d.ts +37 -3
- package/dist/types/stretch-icon-layer.d.ts +28 -0
- package/dist/types/style-accessor.d.ts +50 -12
- package/dist/types/style-expression.d.ts +22 -2
- package/dist/types/style-resolver.d.ts +47 -2
- package/dist/types/terrain-query.d.ts +39 -0
- package/dist/types/zoom-load-gate.d.ts +22 -0
- package/dist/types/zoom-paint-extension.d.ts +80 -11
- package/package.json +24 -21
- package/src/basemap-error.ts +82 -0
- package/src/basemap-layer.ts +1289 -101
- package/src/basemap-protocol.ts +353 -0
- package/src/basemap-request.ts +212 -0
- package/src/circle-layer.ts +430 -54
- package/src/color-relief-layer.ts +572 -0
- package/src/dem-pixels.ts +174 -0
- package/src/feature-state.ts +164 -0
- package/src/fill-extrusion-lighting-extension.ts +126 -9
- package/src/fill-outline-extension.ts +4 -4
- package/src/fill-pattern.ts +87 -9
- package/src/fill-style-extensions.ts +114 -44
- package/src/geojson-resource.ts +58 -0
- package/src/geojson-source.ts +106 -85
- package/src/geojson-task-handler.ts +11 -0
- package/src/geojson-task-worker.ts +8 -0
- package/src/geojson-task.ts +34 -0
- package/src/geojson-tiler.ts +270 -4
- package/src/geojson-worker.ts +36 -6
- package/src/globe-horizon-extension.ts +14 -4
- package/src/globe-layers.ts +1905 -406
- package/src/globe-line-angle-extension.ts +183 -23
- package/src/glyph-store.ts +28 -6
- package/src/heatmap-layer.ts +591 -0
- package/src/hillshade-layer.ts +309 -88
- package/src/icon-text-fit.ts +358 -0
- package/src/image-source-layer.ts +380 -0
- package/src/index.ts +58 -1
- package/src/line-blur-extension.ts +14 -12
- package/src/line-dash-extension.ts +303 -0
- package/src/line-gradient-extension.ts +191 -0
- package/src/line-metrics.ts +90 -0
- package/src/line-pattern-extension.ts +173 -0
- package/src/line-shape-extension.ts +272 -0
- package/src/map-style-loader.ts +5 -4
- package/src/map-style.ts +2 -1
- package/src/mvt-label-layer.ts +568 -144
- package/src/pmtiles-source.ts +276 -0
- package/src/projected-background-layer.ts +202 -0
- package/src/projected-bitmap-layer.ts +262 -0
- package/src/projected-tile-data.ts +132 -0
- package/src/projected-tile-selection.ts +605 -0
- package/src/projected-tileset.ts +183 -0
- package/src/projected-viewport.ts +254 -0
- package/src/raster-color-extension.ts +43 -18
- package/src/raster-fade.ts +319 -0
- package/src/raster-tile-fingerprint.ts +31 -0
- package/src/raster-tile-loader.ts +211 -0
- package/src/shader-injection-plugin.ts +25 -0
- package/src/source-features.ts +170 -0
- package/src/source-tiles.ts +102 -0
- package/src/sprite.ts +122 -15
- package/src/stretch-icon-layer.ts +87 -0
- package/src/style-accessor.ts +105 -17
- package/src/style-expression.ts +80 -3
- package/src/style-resolver.ts +200 -22
- package/src/terrain-query.ts +86 -0
- package/src/text-layout.ts +2 -3
- package/src/zoom-load-gate.ts +57 -0
- package/src/zoom-paint-extension.ts +245 -47
- package/dist/types/arabic-shaping.d.ts +0 -7
- package/dist/types/bidi.d.ts +0 -8
- package/dist/types/polylabel.d.ts +0 -17
- package/src/arabic-shaping.ts +0 -366
- package/src/bidi.ts +0 -199
- package/src/polylabel.ts +0 -312
package/README.md
CHANGED
|
@@ -6,24 +6,29 @@ Copyright (c) vis.gl contributors
|
|
|
6
6
|
|
|
7
7
|
# basemap-layers
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/@tangram.gl/basemap-layers)
|
|
10
|
+
[](https://www.npmjs.com/package/@tangram.gl/basemap-layers)
|
|
11
11
|
|
|
12
12
|
> _This is a work in progress_.
|
|
13
13
|
|
|
14
14
|
An implementation of a subset of the [Mapbox Style
|
|
15
15
|
Specification][mapbox_style_spec] with the intention of visualizing it using deck.gl.
|
|
16
16
|
|
|
17
|
-
The runtime API is exported from `@
|
|
18
|
-
helpers are exported from `@
|
|
17
|
+
The runtime API is exported from `@tangram.gl/basemap-layers`, and the map-style
|
|
18
|
+
helpers are exported from `@tangram.gl/basemap-layers/map-style`.
|
|
19
19
|
|
|
20
|
-
Install the
|
|
20
|
+
Install the eight peer dependencies alongside this package:
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
npm install @
|
|
23
|
+
npm install @tangram.gl/basemap-layers \
|
|
24
|
+
@deck.gl/core@10.0.0-alpha.3 @deck.gl/layers@10.0.0-alpha.3 \
|
|
25
|
+
@deck.gl/geo-layers@10.0.0-alpha.3 @deck.gl/extensions@10.0.0-alpha.3 \
|
|
26
|
+
@deck.gl-community/layers@10.0.0-alpha.4 \
|
|
27
|
+
@luma.gl/core@10.0.0 @luma.gl/engine@10.0.0 \
|
|
28
|
+
@loaders.gl/core@5.0.3
|
|
24
29
|
```
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
Strict dependency resolvers such as Yarn Plug'n'Play need each peer explicitly.
|
|
27
32
|
|
|
28
33
|
For more information, see the online documentation.
|
|
29
34
|
# Migration snapshot
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -16,19 +16,21 @@ built `dist` files.
|
|
|
16
16
|
|
|
17
17
|
| Upstream | License | Files in this package |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js) v6.13.0, which contains code from mapbox-gl-js v1.13 and earlier | BSD-3-Clause | `src/bidi.ts
|
|
20
|
-
| [Unicode Character Database](https://www.unicode.org/ucd/) 17.0.0 | Unicode-3.0 | `src/arabic-shaping.ts` |
|
|
19
|
+
| [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js) v6.13.0, which contains code from mapbox-gl-js v1.13 and earlier | BSD-3-Clause | Bundled from `map-utils/src/text/bidi.ts` and `map-utils/src/text/arabic-shaping.ts`; also `src/hillshade-layer.ts`, `src/image-source-layer.ts`, `src/color-relief-layer.ts`, `src/raster-color-extension.ts` |
|
|
20
|
+
| [Unicode Character Database](https://www.unicode.org/ucd/) 17.0.0 | Unicode-3.0 | Bundled from `map-utils/src/text/arabic-shaping.ts` |
|
|
21
21
|
|
|
22
22
|
## MapLibre GL JS
|
|
23
23
|
|
|
24
24
|
Source: <https://github.com/maplibre/maplibre-gl-js/blob/v6.13.0/LICENSE.txt>
|
|
25
25
|
|
|
26
|
-
- `src/bidi.ts` adapts `src/symbol/bidi.ts`.
|
|
27
|
-
- `src/arabic-shaping.ts` adapts `src/symbol/arabic_shaping.ts` and the tables that
|
|
26
|
+
- `map-utils/src/text/bidi.ts` adapts `src/symbol/bidi.ts`.
|
|
27
|
+
- `map-utils/src/text/arabic-shaping.ts` adapts `src/symbol/arabic_shaping.ts` and the tables that
|
|
28
28
|
`build/generate-unicode-data.ts` writes to `src/util/unicode_properties.g.ts`.
|
|
29
29
|
- `src/hillshade-layer.ts` ports `src/shaders/glsl/hillshade.fragment.glsl` and the arithmetic of
|
|
30
30
|
`src/shaders/glsl/hillshade_prepare.fragment.glsl`. The standard hillshade algorithm in that
|
|
31
31
|
shader comes from mapbox-gl-js v1.13 and earlier.
|
|
32
|
+
- `src/image-source-layer.ts` ports the image warp of `src/source/image_source.ts`
|
|
33
|
+
(`calculateImageWarp`) and the warped position of `src/shaders/glsl/raster.vertex.glsl`.
|
|
32
34
|
- `src/raster-color-extension.ts` ports the color adjustments of
|
|
33
35
|
`src/shaders/glsl/raster.fragment.glsl`, which come from mapbox-gl-js v1.13 and earlier.
|
|
34
36
|
|
|
@@ -158,7 +160,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
158
160
|
|
|
159
161
|
Source: <https://www.unicode.org/license.txt>
|
|
160
162
|
|
|
161
|
-
The Arabic joining types, presentation forms and ligatures in `src/arabic-shaping.ts` are derived
|
|
163
|
+
The Arabic joining types, presentation forms and ligatures in `map-utils/src/text/arabic-shaping.ts` are derived
|
|
162
164
|
from the Unicode Character Database 17.0.0 (`extracted/DerivedJoiningType.txt` and
|
|
163
165
|
`UnicodeData.txt`).
|
|
164
166
|
|