See release notes
ReactMapboxGl
is now a factory that return a React Component, see documentation on how to use it
Feature
component has adraggable
property- The map component returned by the factory accept all the events
- Listen events only on the concerned
Layer
, should improve performances
Cluster
component bugs have been fixed, it is tested and should behave as expected- Fix issue when using
text-align: center
on a parent tag of the map - Fix wrong unmounting of the map
- Fix
Layer
andGeoJsonLayer
when changing the style of the map
- Improvement of the documentation
- Brand new website for the examples with more examples
- Add more tests
- Prettify all the source files
- Update dependencies
- Breaking change :
onHover
is nowonMouseEnter
,onEndHover
is nowonMouseLeave
- Breaking change:
GEOJSONLayer
is not displaying all the layers in your geojson source, you have to specify which source to display by passing the correct props, see note - Fix issue when unmounting all the features
setData
is not called and the features doesn't disappear. PR
- All the source code is now written in Typescript, you can now get the type definitions for each component in a Typescript environment.
- Implement the
Popup
and theMarker
Components using React. These components now keep track of the context.
- Upgrade mapbox-gl from v0.21.0 to v0.25.1 and don't build the vendor anymore, react-mapbox-gl is now using mapbox-gl/dist/mapbox-gl.js bundle again
- Improve the examples with a navigation to select one.
- Fix a major issue when removing a layer with a sourceId.
- Add GeoJSONLayer component to display a raw geojson
- Breaking change, zoom is now wrapped in an array so the map component can check for a reference equality of the value.
- Update API documentation
- A change of the style geojson passed down to the map component will update the style of the map itself using mapbox
setStyle
- Get rid of
lodash
for internal methods and smaller packages
- Add
layerOptions
property to Layer component - Layer can use external source : #22
- Add Layer with external source to all-shape example
onStyleLoad
callback is now called before childrens components are rendered- Update mapbox-gl to version 0.20.0
- Add properties property to Feature component