maps-v1.6.0-rc.1
Pre-release✨ New features
-
[core] Move logging off the main thread (#16325)
-
Add source property to limit parent's tile overscale factor (#16347)
The new property sets a limit for how much parent tile can be overscaled.
-
[core][tile mode] Introduce API to collect placed symbols data (#16339)
The following methods are added to the
Renderer
class in implemented in the Tile map mode:-
collectPlacedSymbolData()
enables or disables collecting of the placed symbols data -
getPlacedSymbolsData()
if collecting of the placed symbols data is enabled, returns the reference to thePlacedSymbolData
vector holding the collected data.
-
-
[core] Enable circle-sort-key property (#15875)
Adds support for
circle-sort-key
property, consistent withsymbol-sort-key
.Sorts drawing order by sort key both within-tile and cross-tile.
-
[core] Add LocationIndicator layer (#16340)
Adds a new layer type,
location-indicator
, that can be used to add a source-less indicator to the map, comprising raster images and a precision radius in meters. -
Add generic setter for Layer's 'source' property (#16406)
🐞 Bug fixes
-
[core][tile mode] Reduce cut-off labels (part 2) (#16369)
Now, the intersecting symbols are placed across all layers symbol by symbol according to the following rules:
- First we look, which of the tile border(s) the symbol intersects and prioritize the the symbol placement accordingly (high priority -> low priority):
vertical & horizontal -> vertical -> horizontal
- For the symbols that intersect the same tile border(s), assuming the tile border split symbol into several sections, we look at the minimal section length. The symbol with a larger minimal section length is placed first.
- For the symbols that intersect the same tile border(s), and have equal minimal section length, we look at the anchor coordinates.
- Finally, if all the previous criteria are the same, we look at the symbol key hashes.
- First we look, which of the tile border(s) the symbol intersects and prioritize the the symbol placement accordingly (high priority -> low priority):
-
[core][tile mode] Fix variable placement for labels with the
icon-text-fit
property set (#16382)The
symbolIntersectsTileEdges()
util inmbgl::TilePlacement
now considers icon shift for the variable symbols with enabled icon-text-fit setting, thus providing more accurate results. -
[core] Correctly log a warning instead of crashing when a non-existent image is attempted to be removed. (#16391)
-
[core] Fix segfault resulting from an invalid geometry (#16409)