MapLibre GL JS v0.52.0 Release Notes

  • 💥 Breaking changes

    • Canonicalize tile urls to mapbox:// urls so they can be transformed with config.API_URL (#7594)

    🔋 Features and improvements

    • ➕ Add getter and setter for config.API_URL (#7594)
    • 👍 Allow user to define element other than map container for full screen control (#7548)
    • ➕ Add validation option to style setters (#7604)
    • ➕ Add 'idle' event: fires when no further rendering is expected without further interaction. (#7625)

    🐛 Bug fixes

    • 🛠 Fire error when map.getLayoutProperty references missing layer (#7537, fixed by #7539)
    • 🛠 Fix shaky sprites when zooming with scrolling (#7558)
    • 🛠 Fix layout problems in attribution control (#7608) (h/t lucaswoj)
    • 🛠 Fixes resetting map's pitch to 0 if initial bounds is set (#7617) (h/t stepankuzmin)
    • 🛠 Fix occasional failure to load images after multiple image request abortions #7641
    • ⚡️ Update repo url to correct one (#7486) (h/t nicholas-l)
    • 🛠 Fix bug where symbols where sometimes not rendered immediately (#7610)
    • 🛠 Fix bug where cameraForBounds returns incorrect CameraOptions with asymmetrical padding/offset (#7517, fixed by #7518) (h/t mike-marcacci)
    • 💅 Use diff+patch approach to map.setStyle when the parameter is a URL (#4025, fixed by #7562)
    • Begin touch zoom immediately when rotation disabled (#7582) (h/t msbarry)
    • 🛠 Fix symbol rendering under opaque fill layers (#7612)
    • 🛠 Fix shaking by aligning raster sources to pixel grid only when map is idle (#7426)
    • 🛠 Fix raster layers in Edge 18 by disabling it's incomplete WebP support (#7687)
    • 🛠 Fix memory leak in hillshade layer (#7691)
    • 🛠 Fix disappearing custom layers (#7711)