github mapbox/mapbox-gl-js v2.4.0

latest releases: v3.3.0, style-spec@14.3.0, v3.3.0-beta.1...
2 years ago

2.4.0

✨ Features and improvements

  • Add showUserHeading option to GeolocateControl that draws a triangle in front of the dot to denote both the user's location, and the direction they're facing.(#10817) (h/t to @tsuz)
  • Add support for text-writing-mode property when using symbol-placement: line text labels. (#10647)
    • Note: This change will bring the following changes for CJK text blocks:
        1. For vertical CJK text, all the characters including Latin and Numbers will be vertically placed now. Previously, Latin and Numbers were horizontally placed.
        1. For horizontal CJK text, there may be a slight horizontal shift due to the anchor shift.
  • Improve character alignment in labels with mixed CJK and Latin characters by adding support for descender and ascender font metrics. (#8781)
  • Improve terrain performance by reducing number of framebuffer switches during draping. (#10701)
  • Improve terrain performance by prioritizing allocation of large render cache batches. (#10701)
  • Improve behavior of vertically aligned line labels with horizontal text by adding stickiness to their flip state, preventing them from flickering. (#10622)

🐞 Bug fixes

  • Fix a potential rendering artifact when using custom fill-extrusion dataset with terrain. (#10812)
  • Fix anchor calculation for line-center line labels when the anchor is very near to line segment endpoints. (#10776)
  • Fix ImageSource breaking in Firefox/Safari if it's not immediately visible.(#10698)
  • Fix gradient skybox rendering issue on some ARM Mali GPU's.(#10703)

Don't miss a new mapbox-gl-js release

NewReleases is sending notifications on new releases.