Packages

mapbox-gl

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

Your version

0.16.0

24 Mar 2016Where it was published

0.54.1 is the newest release of 0.16.x.

In short

3 breaking10 new12 fixed

  • breaking

    Replace Map#featuresAt and Map#featuresIn with Map#queryRenderedFeatures and map.querySourceFeatures

  • breaking

    Map#debug is renamed to Map#showTileBoundaries

  • breaking

    Map#collisionDebug is renamed to Map#showCollisionBoxes

Release note

Breaking Changes

  • breaking

    Replace Map#featuresAt and Map#featuresIn with Map#queryRenderedFeatures and map.querySourceFeatures

    • Replace featuresAt and featuresIn with queryRenderedFeatures

    • Make queryRenderedFeatures synchronous, remove the callback and use the return value.

    • Rename layer parameter to layers and make it an array of layer names.

    • Remove the radius parameter. radius was used with featuresAt to account for style properties like line-width and circle-radius. queryRenderedFeatures accounts for these style properties. If you need to query a larger area, use a bounding box query instead of a point query.

    • Remove the includeGeometry parameter because queryRenderedFeatures always includes geometries.

  • breaking

    Map#debug is renamed to Map#showTileBoundaries

  • breaking

    Map#collisionDebug is renamed to Map#showCollisionBoxes

New Features & Improvements

  • Improve overall rendering performance.

  • Improve performance of GeoJSONSource#setData.

  • Add Map#setMaxBounds method

  • Add isActive and isEnabled methods to interaction handlers

  • Add Map#setZoomBounds method

  • Add touch events

  • Add map.queryRenderedFeatures to query the styled and rendered representations of features

  • Add map.querySourceFeatures to get features directly from vector tiles, independent of the style

  • Add mapboxgl.Geolocate control

  • Make background patterns render seamlessly across tile boundaries

Bugfixes

  • Fix calls to setFilter, setLayoutProperty, and setLayerZoomRange on ref children

  • Fix undefined bucket errors after setFilter calls

  • Fix bugs causing hidden symbols to be rendered (#2246, #2276)

  • Fix raster flickering

  • Fix queryRenderedFeatures precision at high zoom levels

  • Fix holes in GeoJSON data caused by unexpected winding order

  • Fix bug causing deleted features to be returned by queryRenderedFeatures

  • Fix bug causing unexpected fill patterns to be rendered

  • Fix popup location with preceding sibling elements

  • Fix polygon anti-aliasing

  • Fix slivers between non-adjacent polygons

  • Fix keyboard shortcuts causing page to scroll