Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0 #10160

Merged
merged 161 commits into from
Dec 8, 2020
Merged

v2.0.0 #10160

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
2cd09d6
Update mapbox-gl-js v2 license
karimnaaji Jul 9, 2020
551c947
DEM terrain: specification and implementation (internal-4)
astojilj Apr 7, 2020
08fd956
Elevate camera over terrain (internal-9)
astojilj Apr 16, 2020
405ba2a
Symbols placement and rendering on terrain. Terrain exaggeration. (in…
astojilj Apr 24, 2020
db78dc5
Sky layer implementation and spec (internal-5)
karimnaaji May 7, 2020
f4d7fca
Terrain rendering optimizations. Vector tiles clipping. (internal-12)
astojilj May 8, 2020
bf3c65a
Fix horizon frustum culling for skybox
May 11, 2020
03f3dfd
fixing the precision qualifiers and also adding the terrain prelude f…
sgolbabaei May 19, 2020
b481933
Add 3D camera API (internal-18)
mpulkki-mapbox May 26, 2020
b4ffe56
Reduce memory used for fill extrusion pos and normal
astojilj May 10, 2020
fc9ba87
Fill extrusions: terrain and flat roofs
astojilj May 12, 2020
3d65720
Terrain LOD, based on distance to camera
astojilj May 4, 2020
e8b51df
Cleanup shader caching code and define handling, allow for injection …
May 27, 2020
7f9c927
fix limited camera movement with terrain (internal-33)
astojilj Jun 5, 2020
d6f1ed6
Fix flickering 3d terrain internal-31
astojilj Jun 4, 2020
e36ed44
Heatmap on 3D terrain
astojilj Jun 4, 2020
d97b168
ImageSource 3D terrain support
astojilj Jun 8, 2020
aa274f5
Performance, lookup and distance to center sorting fixes (internal-42)
astojilj Jun 12, 2020
7cdaaa7
Update and revive size checker script (internal-23)
Jun 12, 2020
e037b86
Fix broken shader statement on specific hardware (internal-45)
karimnaaji Jun 12, 2020
4bd98c2
Fix out of order problem with size checker (internal-47)
Jun 15, 2020
cc99d6d
Fixup rebase conflict
karimnaaji Jun 17, 2020
3453af3
Set expectations based on latest public changes
karimnaaji Jun 17, 2020
e3a83f0
symbols that pitch with map: rendering and collision (internal-48)
astojilj Jun 17, 2020
b998477
Hopefully the last size checker fix that will be necessary (internal-50)
Jun 17, 2020
2eb9e1e
Improve camera behavior when terrain is enabled (internal-44)
mpulkki-mapbox Jun 17, 2020
83e1912
Optimize DEM cover, clear render tests (internal-52)
astojilj Jun 23, 2020
e368cdb
Add tile coverage freeze debug toggle (internal-46)
karimnaaji Jun 24, 2020
d8290f1
Fix incorrect line widths when zoom changes (internal-55)
mpulkki-mapbox Jun 25, 2020
6e0a016
Fix out of bounds elevation sampling (internal-60)
mpulkki-mapbox Jul 1, 2020
4d03400
Add 3d playground demo code (internal-59)
karimnaaji Jul 1, 2020
0139b08
Hybrid render cache approach (internal-61)
astojilj Jul 2, 2020
b7d8221
Move symbols behind camera (internal-67)
astojilj Jul 7, 2020
4685c44
Add render tests for text shaping related changes that needs to be ba…
zmiao Jul 7, 2020
9988c3c
Optimize sky layer (internal-72)
karimnaaji Jul 7, 2020
840c450
Dashed and pattern lines with line-metrics enabled sources (internal-62)
pozdnyakov Jul 7, 2020
cfde3b2
Circle layer integration with terrain (internal-34)
Jul 7, 2020
ea1bc26
Terrain vertex geomorphing (internal-73)
mpulkki-mapbox Jul 8, 2020
428806f
Update to-number expression test to cover more cases (internal-78)
zmiao Jul 8, 2020
78fa937
Fix collision and placement for line labels (internal-65)
astojilj Jul 8, 2020
b743458
Revise atmosphere color contribution, better artistic controls (inter…
karimnaaji Jul 8, 2020
f88ac94
Implement tracking ellipsoid for smoother pan gesture (internal-51)
mpulkki-mapbox Jul 9, 2020
ac30d41
Adding Speed index to Map (internal-25)
sgolbabaei Jul 9, 2020
7c42086
Add geojson_update debug page with continuosly updating GeoJSON sourc…
Jul 13, 2020
a39ead9
Add demo terrain hike with line gradients update (internal-92)
karimnaaji Jul 13, 2020
c1b6dd4
fix getPerformanceMetrics() for non-chrome browsers (internal-88)
ansis Jul 13, 2020
f34d9d5
Update terrain as soon as style changes (internal-90)
astojilj Jul 14, 2020
5a6efa5
Terrain: invalidate render cache on setPaintProperty (internal-100)
astojilj Jul 14, 2020
3a52074
Minor update to demos (internal-95)
karimnaaji Jul 14, 2020
5b78e2b
Fixes: internal-113 (internal-115)
astojilj Jul 15, 2020
b30b337
Flat roofs for buildings on tile borders (internal-28)
astojilj Jul 15, 2020
0aa5e53
Rename collision circle attribute (internal-123)
Jul 20, 2020
87ec915
Padded DEM tile support for terrain and hillshade (internal-53)
astojilj Jul 22, 2020
2b1e8a6
Default to 2 workers on all platforms (internal-121)
mourner Jul 22, 2020
38da60a
Fix WebGL: INVALID_OPERATION when sky animation is enabled (internal-…
karimnaaji Jul 23, 2020
575753c
Only reload vector tiles on syncRTLPluginState (internal-129)
Jul 23, 2020
835b45b
Assert internal-110 fix. Minor revert. (internal-126)
astojilj Jul 23, 2020
68ab8b1
Update style on drag end instead of continuous update while panning (…
astojilj Jul 23, 2020
78ed756
fix mapboxgl.getPerformanceMetrics() (internal-132)
ansis Jul 24, 2020
67ee4d0
Add stylespec to allow linking sun position and light position (inter…
karimnaaji Jul 24, 2020
0498e14
Terrain: Fix geojson setData flicker (internal-140)
astojilj Jul 29, 2020
d6f8ed2
Relax assert for terrain as 3D camera to center distance is not alway…
astojilj Jul 29, 2020
613e51c
Terrain occluded symbols flicker: use opacity instead of discrete on …
astojilj Jul 30, 2020
80b8499
isEntirelyOutside border case fix (internal-135)
astojilj Jul 31, 2020
092fb74
Put u_sample_pattern under ifdef (internal-153)
Jul 31, 2020
1d7bf96
Minor demo fixup (internal-150)
karimnaaji Jul 31, 2020
f9c177e
fix error when using terrain with custom layers (internal-158)
mourner Aug 3, 2020
7bb4531
Distance culling for very far away symbols on tilted views (internal-…
karimnaaji Aug 4, 2020
2844417
Switch back to numeric tile IDs while avoiding collisions (internal-125)
mourner Aug 5, 2020
4af4757
Delete unused uniforms from circle shader (internal-164)
Aug 6, 2020
162eb10
Enable anisotropic filtering for terrain draping (internal-162)
karimnaaji Aug 6, 2020
b31c224
Markers: 2D and 3D keep position on map. Terrain support. (internal-159)
astojilj Aug 10, 2020
364e26f
Bit shift floating point issue. (internal-168)
astojilj Aug 10, 2020
0e6c7e1
Maximum mipmap data structure for accelerated terrain raycasts (inter…
mpulkki-mapbox Aug 11, 2020
55b00ca
Fix in circle shader for Metal compatibility (internal-181)
Aug 12, 2020
24b00de
Fix invalid null check in terrain raycasts (internal-188)
mpulkki-mapbox Aug 14, 2020
eff6675
Markers occlusion (internal-183)
astojilj Aug 18, 2020
8606473
change polygon description to valid geoJSON (internal-214)
im029 Aug 19, 2020
f4261c7
Enable tracking ellipsoid in 2d (internal-213)
karimnaaji Aug 19, 2020
25bdada
Get rid of uniform array in the circle shader (internal-215)
Aug 24, 2020
5ea9b85
Add render tests coverage for terrain moveLayer (internal-217)
karimnaaji Aug 24, 2020
9d602f3
Account for terrain exaggeration in DEM maximum mipmaps (internal-216)
karimnaaji Aug 24, 2020
175884a
Fix zooming on terrain (internal-218)
mpulkki-mapbox Aug 25, 2020
54a3235
Fix invalid camera placement (internal-224)
mpulkki-mapbox Aug 25, 2020
1e1320f
Fix camera jumping 0 level -> tile elevation when opening (internal-1…
astojilj Aug 28, 2020
084ccaa
Free camera should ignore elevation reference mode (internal-229)
mpulkki-mapbox Aug 28, 2020
7b2e355
Handle unusual line dasharray input cases (internal-230)
zmiao Aug 28, 2020
b93d709
Merge pull request internal-160 from mapbox/sgolbabaei/shader-compila…
sgolbabaei Aug 28, 2020
5ed472e
Fix main flow and lint (internal-235)
karimnaaji Aug 28, 2020
cbf6229
Run render tests in browser (internal-64)
Aug 28, 2020
3a911ea
Change name of base branch (internal-236)
Aug 29, 2020
454100d
Camera improvements (internal-232)
mpulkki-mapbox Aug 31, 2020
348ca3a
`fitScreenCoordinates` for high pitch (internal-228)
karimnaaji Aug 31, 2020
89ad2e9
Refactoring and cleanup: terrain.isEnabled (internal-156)
astojilj Aug 31, 2020
dff488a
getBounds for terrain (internal-239)
astojilj Sep 2, 2020
c16cd3e
Adding a new build `Bench` to be used in benchmarks (internal-241)
sgolbabaei Sep 4, 2020
9741974
update yarn.lock (internal-247)
ansis Sep 4, 2020
cf04480
Fix size checker failing to checkout base branch (internal-252)
Sep 9, 2020
58c5616
Pass tile id while evaluating symbol layer properties (internal-250)
alexshalamov Sep 9, 2020
de6f081
Sky changes to aid porting (internal-249)
ivovandongen Sep 15, 2020
81f36d2
Skip extraneous mipmaps generation (internal-257)
karimnaaji Sep 15, 2020
8a7e507
Add terrain support to free camera lookAt (internal-243)
karimnaaji Sep 15, 2020
fc1934b
project/unproject uses terrain (internal-259)
astojilj Sep 16, 2020
00ed1dc
Disable fade in animations on load (internal-251)
Sep 16, 2020
883ced5
improve shader precompilation (internal-263)
mourner Sep 17, 2020
a5b27c4
Size checker reliability fix (internal-264)
Sep 18, 2020
7fd3d60
Load tiles on the main thread for initial map load (internal-219)
mourner Sep 21, 2020
eb36d0f
Fix wrong horizon check value and consolidate with more unit tests (i…
karimnaaji Sep 21, 2020
84814b8
atmosphere shader - avoid undefined behaviour (internal-273)
ivovandongen Sep 21, 2020
6cdae85
Avoid recenter on map when zoom is constrained on zoom out/ zoom in. …
astojilj Sep 21, 2020
e6727f3
Refactored queryRenderedFeatures with draping and high-pitch support.…
Sep 21, 2020
755d70e
add two-phase tile loading and worker prioritization (internal-142)
ansis Sep 23, 2020
0e8c955
Adjust clamping of perspective ratio for symbols and text (internal-271)
karimnaaji Sep 24, 2020
be767c3
optimize speedindex recording (internal-274)
ansis Sep 30, 2020
ffa0459
collect performance metrics from workers (internal-275)
ansis Sep 30, 2020
8825fb6
fix and expand frame metrics (internal-286)
ansis Oct 2, 2020
534558a
Remove terrain.isEnabled check, add style-spec validation (internal-265)
Oct 5, 2020
fa1927d
Fix view scaling of circles with terrain (internal-301)
Oct 7, 2020
762ecfa
Try size checker fix again (internal-302)
Oct 8, 2020
8372e61
Expose missing atmosphere sun intensity to style spec (internal-305)
karimnaaji Oct 8, 2020
b2d2e25
Add render test to assert equivalence of gl-native interpreted cluste…
Oct 9, 2020
5935f2c
Runtime evaluation of label collision boxes (internal-292)
karimnaaji Oct 13, 2020
45ffe44
Wrap position coordinates for free camera options (internal-311)
Oct 17, 2020
0884728
Fix circle querying for terrain (internal-316)
Oct 21, 2020
dac5a0d
Improve worker task scheduling (internal-320)
mourner Oct 22, 2020
5878ded
fix tile cache size for terrain dem sources (internal-325)
mourner Oct 23, 2020
1c20cf4
Do not hold on to DEM data on the worker side (internal-327)
mourner Oct 26, 2020
fffc59b
Fix terrain flickering using off-by-one stencil value (internal-330)
karimnaaji Oct 29, 2020
df543ee
Fix terrain fill outline rendering (internal-332)
mpulkki-mapbox Oct 29, 2020
d9d3d2e
Fix terrain render when style contains hidden layer (internal-334)
karimnaaji Oct 30, 2020
575d324
Add terrain render test for fill-outline (internal-338)
karimnaaji Nov 2, 2020
0211e49
Fix fill extrusion with hole on border (internal-340)
ivovandongen Nov 3, 2020
b667a27
[render-tests] replace invalid polygon definitions in terrain circle …
ivovandongen Nov 3, 2020
e953f5a
Free Camera + Sky demos (internal-337)
karimnaaji Nov 3, 2020
72a0870
Avoid parsing vector tiles that were already aborted (internal-335)
mourner Nov 5, 2020
191356f
Do not use Terrain Render Cache on raster faded tiles (internal-342)
karimnaaji Nov 6, 2020
be41ca1
Reduce links to internal to their issue id
karimnaaji Nov 3, 2020
d1b802b
Authentication telemetry call and UX (internal-333)
Nov 10, 2020
c921d83
Constrain camera height over terrain fixes (internal-346)
astojilj Nov 10, 2020
a7ad5f5
Remove support for IE and modernize the bundle (internal-344)
mourner Nov 10, 2020
7020531
Fix sky demo using non supported date time feature (internal-356)
karimnaaji Nov 12, 2020
0e5842f
[render-tests] Test feature-state with changing zoom level (internal-…
Nov 13, 2020
bc23122
Fix exception when using terrain with custom layer (internal-357)
karimnaaji Nov 13, 2020
cd68c4c
Fix raster fading from black when not retaining LOD child tiles (inte…
karimnaaji Nov 13, 2020
0f31697
Add mapbox-gl-js v2 changelog
karimnaaji Nov 18, 2020
9561517
Fix gesture inconsistencies (internal-354)
Nov 17, 2020
e4ff662
Terrain: simplify gl-native shader compiler subtitution for centroid …
astojilj Nov 23, 2020
4327d8b
Add support for /raster/v1 tiles (internal-366)
Nov 25, 2020
0d3d75a
fix regression in requesting 512 raster tiles from v4 api (internal-374)
ansis Nov 27, 2020
9ae22f1
Adding documentation for free camera api (internal-363)
sgolbabaei Nov 30, 2020
d4d1125
Fix seams when raster-dem-source tileSize is set to 256 (internal-371)
Nov 30, 2020
f92f1c6
[shaders] sky atmosphere - fix the precision of the sun direction for…
ivovandongen Dec 2, 2020
21e4889
Fix crash when default sky gradient is intended to be used (internal-…
Dec 3, 2020
58ba6b0
Reword docs for new style-spec properties (internal-377)
Dec 3, 2020
ed06ef0
Update LOD tile cover to consider source zoom range (internal-380)
karimnaaji Dec 4, 2020
28614a3
More style spec docs tweaks (internal-381)
Dec 5, 2020
b9c7fbb
Reflect new max pitch value in docs (internal-391)
karimnaaji Dec 5, 2020
702eeb6
tweak docs and map.project() return value (internal-395)
ansis Dec 7, 2020
be0aeb5
Sending the newly create AccessToken Authenticator API after each map…
sgolbabaei Dec 7, 2020
b47b42e
v2.0.0-dev
karimnaaji Dec 7, 2020
06c178a
Revert build changes
karimnaaji Dec 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 7 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ workflows:
filters:
tags:
only: /.*/
- check-size:
requires:
- build
filters:
tags:
only: /.*/
- collect-stats:
requires:
- build
Expand Down Expand Up @@ -157,6 +151,10 @@ jobs:
- run: yarn run build-style-spec
- run: yarn run build-flow-types
- run: yarn run test-build
- run:
name: Check bundle size
command: |
node build/check-bundle-size.js
- deploy:
name: Trigger memory metrics when merging to main
command: |
Expand All @@ -174,17 +172,6 @@ jobs:
paths:
- dist

check-size:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Check bundle size
command: |
node build/check-bundle-size.js "dist/mapbox-gl.js" "JS"
node build/check-bundle-size.js "dist/mapbox-gl.css" "CSS"

collect-stats:
<<: *defaults
steps:
Expand Down Expand Up @@ -217,7 +204,10 @@ jobs:
steps:
- attach_workspace:
at: .
- run: yarn run build-token
- run: yarn run test-render
- store_test_results:
path: test/integration/render-tests
- store_artifacts:
path: "test/integration/render-tests/index.html"

Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
## 2.0.0

### ⚠️ Breaking changes

- **mapbox-gl-js is no longer under the 3-Clause BSD license. By upgrading to this release, you are agreeing to [Mapbox terms of service](https://www.mapbox.com/legal/tos/).** Refer to LICENSE.txt for the new licensing terms and details. For questions, contact our team at [https://support.mapbox.com](https://support.mapbox.com).
- Beginning with v2.0.0, a billable map load occurs whenever a Map object is initialized. Before updating an existing implementation from v1.x.x to v2.x.x, please review the pricing documentation to estimate expected costs.
- Deprecate Internet Explorer 11, no longer supported from this release. ([#8283](https://github.com/mapbox/mapbox-gl-js/issues/8283), [#6391](https://github.com/mapbox/mapbox-gl-js/issues/6391))
- Support for unlocked pitch up to 85°. The default `maxPitch` is increased from 60° to 85° which can result in viewing above the horizon line. By default, this area will be drawn transparent but a new sky layer can be added to the map in order to fill this space. The legacy behavior can be achieved by simply adding `maxPitch: 60` to the map options when instantiating your map.

### ✨ Features and improvements

- Add 3D terrain feature. All layer types and markers can now be extruded using the new `terrain` root level style-spec property or with the function `map.setTerrain()`. ([#1489](https://github.com/mapbox/mapbox-gl-js/issues/1489))
- Add support for unlocked pitch up to 85° (previously 60°). ([#3731](https://github.com/mapbox/mapbox-gl-js/issues/3731))
- Add a new sky layer acting as an infinite background above the horizon line. This layer can be used from the style-spec and has two types: `atmospheric` and `gradient`.
- Add a free form camera API, allowing for more complex camera manipulation in 3D, accessible using `map.getFreeCameraOptions()` and `map.setFreeCameraOptions()`.
- Improve performance by adopting a two-phase tile loading strategy, prioritizing rendering of non-symbol layers first.
- Improve performance by avoiding parsing vector tiles that were already aborted.
- Improve performance by adopting a preemptive shader compilation strategy. ([#9384](https://github.com/mapbox/mapbox-gl-js/issues/9384))
- Improve performance by disabling fade-in animation for symbols and raster tiles on initial map load.
- Improve performance by defaulting to 2 workers on all platforms. ([#3153](https://github.com/mapbox/mapbox-gl-js/issues/3153))
- Improve performance by loading tiles on the main thread at initial map load.
- Improve performance by using better worker task scheduling.

### 🐞 Bug fixes

- Avoid reloading `raster` and `raster-dem` tiles when the RTLTextPlugin loads.
- Add runtime evaluation of label collision boxes for more accurate symbol placement at fractional zoom levels and tilted views.
- Fix tile cache size for terrain DEM sources.
- Prevent holding on to DEM memory on the worker.
- Reduce memory used by `fill-extrusion`s.

### 🛠️ Workflow

- Run render tests in browser.

## 1.13.0

### ✨ Features and improvements
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ See [`bench/README.md`](./bench/README.md).
* We use [`assert`](https://nodejs.org/api/assert.html) to check invariants that are not likely to be caused by user error. These `assert` statements are stripped out of production builds.
* We use the following ES6 features:
* `let`/`const`
* `for...of` loops (for arraylike iteration only, i.e. what is supported by [Bublé's `dangerousForOf` transform](https://buble.surge.sh/guide/#dangerous-transforms))
* `for...of` loops
* Arrow functions
* Classes
* Template strings
Expand All @@ -120,8 +120,7 @@ See [`bench/README.md`](./bench/README.md).
* Rest parameters
* Destructuring
* Modules
* The following ES6 features are not to be used, in order to maintain support for IE 11 and older mobile browsers. This may change in the future.
* Spread (`...`) operator (because it requires Object.assign)
* Spread (`...`) operator
* Iterators and generators
* "Library" features such as `Map`, `Set`, `array.find`, etc.

Expand Down
93 changes: 58 additions & 35 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
mapbox-gl-js v2.0

Mapbox Web SDK

Copyright (c) 2020, Mapbox

All rights reserved.

Mapbox gl-js version 2.0 or higher (“Mapbox Web SDK”) must be used according to
the Mapbox Terms of Service. This license allows developers with a current active
Mapbox account to use and modify the Mapbox Web SDK. Developers may modify the
Mapbox Web SDK code so long as the modifications do not change or interfere with
marked portions of the code related to billing, accounting, and anonymized data
collection. The Mapbox Web SDK only sends anonymized usage data, which Mapbox uses
for fixing bugs and errors, accounting, and generating aggregated anonymized
statistics. This license terminates automatically if a user no longer has an
active Mapbox account.

For the full license terms, please see the Mapbox Terms of Service at
https://www.mapbox.com/legal/tos/.

-------------------------------------------------------------------------------

Contains code from mapbox-gl-js v1.13 and earlier

Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license

Copyright (c) 2020, Mapbox
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of Mapbox GL JS nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* 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.
* Neither the name of Mapbox GL JS nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Expand All @@ -23,33 +47,8 @@ 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.


-------------------------------------------------------------------------------

Contains code from glfx.js

Copyright (C) 2011 by Evan Wallace

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:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

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.
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------

Expand Down Expand Up @@ -82,3 +81,27 @@ 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.

-------------------------------------------------------------------------------

Contains code from glfx.js

Copyright (C) 2011 by Evan Wallace

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:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

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.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ native SDKs. For code and issues specific to the native SDKs, see the

## License

Mapbox GL JS is licensed under the [3-Clause BSD license](./LICENSE.txt).
The licenses of its dependencies are tracked via [FOSSA](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmapbox%2Fmapbox-gl-js):
Copyright © 2020 Mapbox

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmapbox%2Fmapbox-gl-js.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmapbox%2Fmapbox-gl-js?ref=badge_large)
All rights reserved.

Mapbox gl-js version 2.0 or higher (“Mapbox Web SDK”) must be used according to the Mapbox Terms of Service. This license allows developers with a current active Mapbox account to use and modify the Mapbox Web SDK. Developers may modify the Mapbox Web SDK code so long as the modifications do not change or interfere with marked portions of the code related to billing, accounting, and anonymized data collection. The Mapbox Web SDK only sends anonymized usage data, which Mapbox uses for fixing bugs and errors, accounting, and generating aggregated anonymized statistics. This license terminates automatically if a user no longer has an active Mapbox account.

For the full license terms, please see the [Mapbox Terms of Service](https://www.mapbox.com/legal/tos/).
3 changes: 2 additions & 1 deletion bench/benchmarks/symbol_layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export default class SymbolLayout extends Layout {
tileResult.iconMap,
tileResult.imageAtlas.iconPositions,
false,
tileResult.tileID.canonical);
tileResult.tileID.canonical,
tileResult.tileZoom);
}
}
});
Expand Down
6 changes: 4 additions & 2 deletions bench/lib/tile_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,13 @@ export default class TileParser {
parseTile(tile: {tileID: OverscaledTileID, buffer: ArrayBuffer}, returnDependencies?: boolean): Promise<?WorkerTileResult> {
const workerTile = new WorkerTile({
tileID: tile.tileID,
tileZoom: tile.tileID.overscaledZ,
zoom: tile.tileID.overscaledZ,
tileSize: 512,
overscaling: 1,
showCollisionBoxes: false,
source: this.sourceID,
uid: '0',
uid: 0,
maxZoom: 22,
pixelRatio: 1,
request: {url: ''},
Expand All @@ -130,7 +131,8 @@ export default class TileParser {
cameraToCenterDistance: 0,
cameraToTileDistance: 0,
returnDependencies,
promoteId: undefined
promoteId: undefined,
isSymbolTile: false
});

const vectorTile = new VT.VectorTile(new Protobuf(tile.buffer));
Expand Down
2 changes: 0 additions & 2 deletions bench/rollup_config_benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs from 'fs';
import sourcemaps from 'rollup-plugin-sourcemaps';
import replace from 'rollup-plugin-replace';
import {plugins} from '../build/rollup_plugins';
import buble from 'rollup-plugin-buble';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

Expand Down Expand Up @@ -58,7 +57,6 @@ const viewConfig = {
sourcemap: false
},
plugins: [
buble({transforms: {dangerousForOf: true}, objectAssign: true}),
resolve({browser: true, preferBuiltins: false}),
commonjs(),
replace(replaceConfig)
Expand Down
2 changes: 1 addition & 1 deletion build/banner.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from 'fs';

const version = JSON.parse(fs.readFileSync('package.json')).version;
export default `/* Mapbox GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/mapbox/mapbox-gl-js/blob/v${version}/LICENSE.txt */`;
export default `/* Mapbox GL JS is Copyright © 2020 Mapbox and subject to the Mapbox Terms of Service ((https://www.mapbox.com/legal/tos/). */`;
Loading