-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
v3.0.0 #12988
Merged
Merged
v3.0.0 #12988
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* consistent docs * remove require for model related emissiveness props
…nal-944) * Reload sources on projection change * Fix source cache tile cleanup on changing map projection * Add allowed value to imports/set-projection
…internal-946) * Don't reset shared style changes when creating fragments * Add unit test
…oss tile boundaries (internal-943) * [MAPS3D-1044] Fix breakage of ground effect that occurs when edges cross tile boundaries * render test
* Fix adding first import * simplify import management code in style.js (internal-948) --------- Co-authored-by: Volodymyr Agafonkin <[email protected]>
* Ignore layer slot in style diffs * Add unit test
…ternal-953) * [GLJS-584] fix missing condition for circle layer depth occlusion * add render test
* Diff configs on setStyle * Add render test
* Fix Style.mergeAll when removing all imports * Ignore legacy light since it's always set * Add scope check for terrain in mergeAll * Add layers check to the unit test * Cleanup Style._remove() * Check for terrain or globe on Style.mergeAll()
* Diff slots on setStyle * Update error message * Move repeating Style checks to _checkLayer and _checkSource
* Rewrite 3D Style async/await functions to Promises * Fix decodeGLTF * Cleanup * Restrict async/await in ESLint
Bumps [testem](https://github.com/testem/testem) from 3.10.1 to 3.11.0. - [Release notes](https://github.com/testem/testem/releases) - [Commits](testem/testem@v3.10.1...v3.11.0) --- updated-dependencies: - dependency-name: testem dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add version information to lights root element
* Mark Models section as private and fix setConfigProperty example * Mark renderstart event as private * Move setConfigProperty to the Style properties section * Move setLights/getLights to the Style properties section * Update events.js
… (internal-972) * fix issue with source collision between imports in symbol layers * Add render test * Use layer.scope instead of getScopeFromFQID --------- Co-authored-by: Stepan Kuzmin <[email protected]>
mourner
approved these changes
Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mapbox GL JS v3 enables the Mapbox Standard Style, a new realistic 3D lighting system, building shadows and many other visual enhancements, and an ergonomic API for using a new kind of rich, evolving, configurable map styles and seamless integration with custom data. You can get more information about the new features in the Mapbox GL JS v3 migration guide.
v3.0.0
Breaking changes⚠️
optimizeForTerrain
map option (layer rendering on globe and terrain is always optimized now).Features and improvements ✨
3D Lights
*-emissive-strength
properties for styling layers with the new lighting API.measureLight
expression lights configuration property: Create dynamic styles based on lighting conditions.hsl
andhsla
color expressions: These expressions allow you to define colors using hue, saturation, and lightness format.fill-extrusion-cutoff-fade-range
andmodel-cutoff-fade-range
style properties.Style Composition with Imports
slot
s, pre-specified locations in the style, where your layer can be added (e.g., on top of existing land layers but below all labels).config
expression: Retrieves the configuration value for the given option.style
option is provided to the Map constructor, the Mapbox Standard Style is now enabled as a default.style.import.load
event to track the loading of imported style fragments.Terrain Improvements
New Raster Features
raster-color
paint properties.raster-value
expression: Returns the raster value of a pixel computed viaraster-color-mix
.…and more!
vertical-range
style property.icon-image-cross-fade
property, which controls the transitioning between the two variants of an icon image.random
expression: Generate random values using this expression. Use this expression to generate random values, which can be particularly helpful for introducing randomness into your map data.distance
expression: Returns the shortest distance in meters between the evaluated feature and the input geometry.symbol-z-elevate
style property.renderstart
event, which, combined with therender
event, can be used to measure rendering frame duration.Bug fixes 🐞
padding
is used.tabindex
when the map is not interactive; removerole="list"
from the attribution control; addrole="img"
to markers (h/t @kumiko-haraguchi and @aviroopjana).queryRenderedFeatures
results on maps with globe and terrain.map
hasImage
andupdateImage
after the map was removed.line-border
.Changes since
v3.0.0-rc.2
Bug fixes 🐞
setStyle
.queryRenderedFeatures
when the model layer is present in the style.