Repository navigation
·
1 commit
to main
since this release
Immutable
release. Only release title and notes can be modified.
✨ Features and improvements
- Add the
fill-rounded-corner-distancepaint property, which rounds the corners of fill polygons: the given distance in meters on each side of a corner is cut off and replaced by a curve. Set it withPropertyFactory.fillRoundedCornerDistance(). A fill layer that uses it can take up to twice as much memory (#4670). - Make
LocationIndicatorLayerandLocationPropertyFactorypublic, so apps can add and style a location indicator layer themselves instead of only throughLocationComponent(#5026). MapView.OnRenderErrorListenergets the error's message: override its new default methodonRenderError(String message). Listeners that only implementonRenderError()are still called. The error is also logged (#5070, #5115).- Make symbol guard checks opt-in, so symbol-dense tiles load faster. To keep them, set the environment variable
MLN_SYMBOL_GUARDS=1before the first map loads (#4871). - Performance improvements: tiles free the CPU copy of their vertices and indices once these are uploaded to the GPU, as MapLibre GL JS does (#4828); feature state is applied to a tile once, then only its changes (#4919);
filllayers no longer upload their vertex data on every frame (#4765); hillshade and color-relief layers no longer redo work on every frame (#5001, #5052, #5053); and each tile of anmbtiles://source is read and decoded once instead of twice (#4985). - Draw hillshade layers without pixel snapping while the camera moves, so the shading moves smoothly with the map instead of in whole-pixel steps (#4688).
- A request for a missing local file (
file://orasset://) now fails withCannot find file <path>orCannot read directory <path>instead of an empty error message (#4930).
🐞 Bug fixes
rasterandraster-demsources loaded from aurltake the style's inlineminzoomandmaxzoomover the TileJSON's, asvectorsources and maplibre-gl-js already do. Araster-demsource with an invalidencoding,minzoomormaxzoom, or arastersource with an invalidminzoomormaxzoom, is now rejected with an error, as avectorsource is. Before, such araster-demsource still loaded, decoded as Mapbox whatever itsencoding(#4557).- Color property getters return whole-number channels, as MapLibre GL JS prints colors: a color set to
rgba(240,245,255,1)reads back as set instead ofrgba(240.00001525878906,245.00001525878906,255,1)(#4967). - Tiles whose labels need a glyph range that fails to load now render without those glyphs, and the range is requested again when a tile next needs it (#4837).
- With Vulkan, draw every layer at one constant depth, as OpenGL ES does. This fixes hillshade and color-relief layers that were invisible above fill layers (#4149), circle layers partly hidden behind fill layers and missing fill outline edges on pitched maps (#4851), and z-fighting (#3704) (#4868).
- With Vulkan, translucent fill layers above an opaque fill no longer vanish for a frame on a pitched, moving map (#4627).
- With Vulkan, vertex buffers no longer stop updating because of an uninitialized timestamp. Changes to symbol opacity, feature state and data-driven paint properties could fail to show (#4958).
- With Vulkan, recreate the framebuffer of an offscreen render target, such as a heatmap layer's, when its texture is resized, for example when the map view changes size (#5035).
- With Vulkan, skip the cleanup of descriptor sets that were never allocated, and record the descriptor pool index only after allocation succeeds (#4818).
- With Vulkan, back vertex attributes that a shader reads but that have no data with a zero-stride dummy buffer, instead of leaving them unbound (#4788).
- Fix a race condition when releasing unused dynamic textures, so the last reference is always dropped on the render thread (#4817).
- Recreate the drawables of a location indicator layer when a render error dropped one of them, to mitigate a crash on the render thread (#5037, #5070).
- Replacing a style image with another image of the same name now shows the new image, also when a GeoJSON source is updated synchronously (#4326, #4543).
- Adding a source that a layer already refers to, removing a source, and removing a style image now reach the renderer right away instead of at the next unrelated style change (#4676).
- Changes to
MapLibreMap.setPrefetchZoomDelta()and thesetTileLod…()options take effect right away on an idle map instead of at the next map update (#4678). - Hide a layer at a zoom equal to its
maxzoom, as the style specification and MapLibre GL JS do. Background, raster, hillshade, color-relief and custom layers were still drawn there (#4766). - After a pinch zoom across the antimeridian, the camera reported a longitude past 180° and
Projection.toScreenLocation()put every location a world away. Screen locations and the location puck are now also right while a fling orflyTocrosses the antimeridian (#4746, #4776). queryRenderedFeatures()finds a line withline-offsetup to its end. The final point of the line was not offset (#4702).- Stop custom geometry source callbacks from running for tiles that were already cancelled (#4815).
- Draw
line-gradienttogether withline-dasharray. The dashes were drawn inline-color(#4725). - With OpenGL ES and Vulkan,
line-patternlines no longer swap the zoom interpolation factors ofline-offsetandline-gap-width(#4831). - A
%that is not followed by two hex digits stays literal infile://,asset://andmbtiles://URLs, so a file such as100%.jsonis found (#4926). - Retry a rate-limited request right away when its
Retry-AfterorX-RateLimit-Resettime has already passed. It was never retried (#4923). - Plugin layers: filters use the style's global state (#4807), properties that do not opt in to transitions update immediately (#4808), and drawables with read-write depth are depth tested when the layer is above a
fill-extrusionlayer (#4820).