Packages

mapbox-gl

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

Upgrading mapbox-gl From 0.39.1 to 0.40.0

1 release in betweenevery note read

Other targets from 0.39.1Newest 0.x0.54.1Latest3.34.2
  1. 0.39.1yours
  2. 0.40.0target

Before you upgrade

Tick each one off as you go
  • breaking0.40.0
  • breaking0.40.0

Release by release

  1. 0.40.0

    Migration needed13 Sep 201710 new · 18 fixes
    • breaking

      Map#addImage now requires the image as an HTMLImageElement, ImageData, or object with width, height, and data properties with the same format as ImageData. It no longer accepts a raw ArrayBufferView in the second argument and width and height options in the third argument.

    • breaking

      canvas sources now require a contextType option specifying the drawing context associated with the source canvas. #5155

    • new

      Correct rendering for multiple fill-extrusion layers on the same map #5101

    • new

      Add an icon-anchor property to symbol layers #5183