Skip to content

React-mapbox-gl v3

Compare
Choose a tag to compare
@alex3165 alex3165 released this 20 Nov 09:50
· 298 commits to master since this release

Breaking changes

Layer

  • bearing is no more a number but an array of length one with the bearing value as a number in it, see readme to know why.
  • pitch is no more a number but an array of length one with the bearing value as a number in it, see readme to know why.
  • layerOptions no longer exist, options are now being passed as props see API.md for more informations
  • sourceOptions moved to geoJSONSourceOptions

ZoomControl, ScaleControl, RotationControl

  • position is no more camelCase but hyphen separated case for consistency with Marker and Popup

New Features

Layer

  • type also support fill-extrusion, background and heatmap (see heatmap new example)

Cluster

  • Support style and className props

Map

  • Update event handlers when changing between renders

Others

  • Better examples
  • Upgrade to mapbox-gl 0.41
  • Fix bug with default Popup anchor