Packages

mapbox-gl

3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed

Your version

0.49.0

12 Sep 2018Where it was published

0.54.1 is the newest release of 0.49.x.

In short

1 breaking11 new8 fixed

  • breaking

    Use client{Height/Width} instead of offset{Height/Width} for map canvas sizing (#6848, fixed by #7128)

Release note

September 6, 2018

Breaking changes

  • breaking

    Use client{Height/Width} instead of offset{Height/Width} for map canvas sizing (#6848, fixed by #7128)

Bug fixes

  • Fix Top Issues list for mapbox-gl-js (#7108, fixed by #7112)

  • Fix bug in which symbols with icon-allow-overlap: true, text-allow-overlap: true, text-optional: false would show icons when they shouldn't

  • Fix bug where the map would not stop at the exact zoom level requested by Map#FlyTo (#7222) (#7223) (h/t benoitbzl)

  • Keep map centered on the center point of a multi-touch gesture when zooming (#6722) (#7191) (h/t pakastin)

  • Update the style-spec's old gl-style-migrate script to include conversion of legacy functions and filters to their expression equivalents (#6927, fixed by #7095)

  • Fix icon-size for small data-driven values

  • Fix bug in the way AJAX requests load local files on iOS web view (#6610) (h/t oscarfonts)

  • Fix bug in which canvas sources would not render in world wrapped tiles at the edge of the viewport ([#7271]#7271), fixed by #7273)

Features and improvements

Performance updates:

  • Improve time to first render by updating how feature ID maps are transferred to the main thread (#7110, fixed by #7132)

  • Reduce size of JSON transmitted from worker thread to main thread

  • Improve image/glyph atlas packing algorithm

  • Use murmur hash on symbol instance keys to reduce worker transfer costs

  • Add GL state management for uniforms

  • Add symbol-z-order symbol layout property to style spec

  • Implement data-driven styling support for *-pattern properties

  • Add Map#fitScreenCoordinates which fits viewport to two points, similar to Map#fitBounds but uses screen coordinates and supports non-zero map bearings

  • Re-implement LAB/HSL color space interpolation for expressions (#5326, fixed by #7123)

  • Enable benchmark testing for Mapbox styles

  • Allow Map#setFeatureState and Map#getFeatureState to accept numeric IDs (#7106) (h/t bfrengley)