maplibre-gl 3.6.0 → 3.6.2
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 +0 -36
- package/dist/maplibre-gl-csp.js +1 -1
- package/dist/maplibre-gl-csp.js.map +1 -1
- package/dist/maplibre-gl-dev.js +57 -38
- package/dist/maplibre-gl-dev.js.map +1 -1
- package/dist/maplibre-gl.d.ts +2 -1
- package/dist/maplibre-gl.js +4 -4
- package/dist/maplibre-gl.js.map +1 -1
- package/package.json +35 -35
- package/src/render/terrain.test.ts +56 -1
- package/src/render/terrain.ts +17 -2
- package/src/render/update_pattern_positions_in_program.test.ts +74 -0
- package/src/render/update_pattern_positions_in_program.ts +4 -0
- package/src/ui/camera.test.ts +81 -0
- package/src/ui/camera.ts +3 -1
- package/src/ui/map.test.ts +1 -1
- package/src/ui/map.ts +1 -1
- package/src/util/test/mock_fetch.ts +1 -1
package/README.md
CHANGED
|
@@ -49,42 +49,6 @@ Check out the features through [examples](https://maplibre.org/maplibre-gl-js/do
|
|
|
49
49
|
|
|
50
50
|
<br />
|
|
51
51
|
|
|
52
|
-
## Migrating from mapbox-gl to maplibre
|
|
53
|
-
The libraries are very similar but diverge with newer features happening from v2 in both libraries where Mapbox turned proprietary.
|
|
54
|
-
|
|
55
|
-
The overall migration happens by uninstalling `mapbox-gl` and installing `maplibre-gl` in your node packages (or see below for CDN links), and replacing `mapboxgl` with `maplibregl` throughout your TypeScript, JavaScript and HTML/CSS.
|
|
56
|
-
|
|
57
|
-
```diff
|
|
58
|
-
- var map = new mapboxgl.Map({
|
|
59
|
-
+ var map = new maplibregl.Map({
|
|
60
|
-
|
|
61
|
-
- <button class="mapboxgl-ctrl">
|
|
62
|
-
+ <button class="maplibregl-ctrl">
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
#### Compatibility branch
|
|
66
|
-
|
|
67
|
-
MapLibre GL JS v1 is completely backward compatible with Mapbox GL JS v1. This compatibility branch (named 1.x) is tagged v1 on npm, and its current version is 1.15.3.
|
|
68
|
-
|
|
69
|
-
#### CDN Links
|
|
70
|
-
|
|
71
|
-
> MapLibre GL JS is distributed via [unpkg.com](https://unpkg.com). For more information, please see [MapLibre GL JS is on unpkg.com](./developer-guides/README-unpkg.md).
|
|
72
|
-
|
|
73
|
-
```diff
|
|
74
|
-
- <script src="https://api.mapbox.com/mapbox-gl-js/v#.#.#/mapbox-gl.js"></script>
|
|
75
|
-
- <link
|
|
76
|
-
- href="https://api.mapbox.com/mapbox-gl-js/v#.#.#/mapbox-gl.css"
|
|
77
|
-
- rel="stylesheet"
|
|
78
|
-
- />
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
+ <script src="https://unpkg.com/maplibre-gl@#.#.#/dist/maplibre-gl.js"></script>
|
|
82
|
-
+ <link
|
|
83
|
-
+ href="https://unpkg.com/maplibre-gl@#.#.#/dist/maplibre-gl.css"
|
|
84
|
-
+ rel="stylesheet"
|
|
85
|
-
+ />
|
|
86
|
-
|
|
87
|
-
```
|
|
88
52
|
|
|
89
53
|
Want an example? Have a look at the official [MapLibre GL JS Documentation](https://maplibre.org/maplibre-gl-js/docs/examples/).
|
|
90
54
|
|