Releases: alex3165/react-mapbox-gl
Add customAttribution option
Added support for customAttribution option from mapbox-gl 0.48.0 release
Upgrade to mapbox-gl 0.48.0
Updates mapbox-gl to 0.48.0
Removes the classes
factory parameter (as it was removed in mapbox-gl).
Upgrade to mapbox-gl 0.44 and zoomControl hover bugfix
Bug fixes + upgrade to mapbox-gl-js 0.43
Bugfix layer style update
When updating the style
of the map and when using Layer
without sourceId
, an error was showing that a source with the same id was already there. This update should fix it.
React-mapbox-gl v3
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 informationssourceOptions
moved togeoJSONSourceOptions
ZoomControl, ScaleControl, RotationControl
position
is no more camelCase but hyphen separated case for consistency with Marker and Popup
New Features
Layer
type
also supportfill-extrusion
,background
andheatmap
(see heatmap new example)
Cluster
- Support
style
andclassName
props
Map
- Update event handlers when changing between renders
Others
- Better examples
- Upgrade to mapbox-gl 0.41
- Fix bug with default Popup anchor
Refactor layer component and add support for dragging on mobile
Notes: This release should not include any breaking changes, if your app break when upgrading from react-mapbox-gl 2.5.3
to 2.6.0
please open an issue.
There is some possible regressions around events for the Feature
component
The release include:
- Add support for dragging a feature on mobile
- Refactor the layer component to extract the mouse events to an HOC
GEOJsonLayer bugfix
Include a fix related to source not being updated when setting new data resulting to the loss / unexpected change of data when re-rendering. See #384
New features for Cluster and Layer components
Cluster
- New prop
zoomOnClick
, zoom to fit the bounds of the map with the markers within the cluster on click on the cluster. - New prop
zoomOnClickPadding
, the amount of padding in pixels to add to the cluster bounds for the zoom.
Layer
- New prop
images
, add custom images to Mapbox style at runtime to use with the layer, see Layer doc
Breaking change! Move maxBounds to component property
It is now possible to update maxBounds of the map as is it now a property of the Map component and not a factory parameter.