ReactMapboxGlis now a factory that return a React Component, see documentation on how to use it
Featurecomponent has adraggableproperty- The map component returned by the factory accept all the events
- Listen events only on the concerned
Layer, should improve performances
Clustercomponent bugs have been fixed, it is tested and should behave as expected- Fix issue when using
text-align: centeron a parent tag of the map - Fix wrong unmounting of the map
- Fix
LayerandGeoJsonLayerwhen 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 :
onHoveris nowonMouseEnter,onEndHoveris nowonMouseLeave - Breaking change:
GEOJSONLayeris 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
setDatais 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
Popupand theMarkerComponents 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
lodashfor internal methods and smaller packages
- Add
layerOptionsproperty to Layer component - Layer can use external source : #22
- Add Layer with external source to all-shape example
onStyleLoadcallback is now called before childrens components are rendered- Update mapbox-gl to version 0.20.0
- Add properties property to Feature component