Packages

mapbox-gl

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

Your version

0.50.0

12 Oct 2018Where it was published

0.54.1 is the newest release of 0.50.x.

In short

7 new17 fixed

Release note

Features and improvements

  • 🎉 Add Custom Layers that can be rendered into with user-provided WebGL code

  • Add WebGL face culling for increased performance

  • Improve speed of expression evaluation

  • Automatically coerce to string for concat expression and text-field property (#6190, fixed by #7280)

  • Add fill-extrusion-vertical-gradient property for controlling shading of fill extrusions (#5768, fixed by #6841)

  • Add update functionality for images provided via ImageSource (#4050, fixed by #7342) (h/t dcervelli)

Bug fixes

  • Expressions

    • Fix expressions that use log2 and log10 in IE11 (#7318, fixed by #7320)

    • Fix let expression stripping expected type during parsing (#7300, fixed by #7301)

    • Fix superfluous wrapping of literals in literal expression (#7336, fixed by #7337)

    • Allow calling to-color on values that are already of type Color

    • Fix to-array for empty arrays ((#7261))

    • Fix identity functions for text-field when using formatted text

    • Fix coercion of null to 0 in to-number expression (#7083, fixed by #7274)

  • Canvas source

    • Fix missing repeats of CanvasSource when it crosses the antimeridian

    • Fix CanvasSource not respecting alpha values set on canvas element (#7302, fixed by #7309)

  • Rendering

    • Fix rendering of fill extrusions with really high heights

    • Fix an error where the map state wouldn't return to loaded after certain runtime styling changes when there were errored tiles in the viewport

    • Fix errors when rendering symbol layers without symbols (#7241, fixed by #7253)

    • Don't fade in symbols with *-allow-overlap: true when panning into the viewport (#7172, fixed by#7244)

  • Library

    • Fix disambiguation for mouseover event (#7295, fixed by #7299)

    • Fix silent failure of getImage if an SVG is requested (#7312, fixed by #7313)

    • Fix empty control group box shadow (#7303, fixed by #7304) (h/t Duder-onomy)

    • Fixed an issue where a wrong timestamp was sent for Mapbox turnstile events

    • Fixed a bug that lead to attribution not showing up correctly in Internet Explorer (#3945, fixed by #7391)