Releases: alex3165/react-mapbox-gl
GeoJson mouse events
Add mouse events to GeoJson layer see documentation
Add getLeaves to Cluster components
getLeaves()
returnCluster
children of a cluster, with pagination support: limit is the number of points to return (set to Infinity for all points, default to 10), and offset is the amount of points to skip (for pagination).
Add features, breaking changes and bug fixes
Breaking changes
ReactMapboxGl
is now a factory that return a React Component, see documentation on how to use it
Feature
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
Bug fixes
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
Others
- Improvement of the documentation
- Brand new website for the examples with more examples
- Add more tests
- Prettify all the source files
- Update dependencies
RotationControl and bugfixes
- RotationControl component has been added: https://github.com/alex3165/react-mapbox-gl/blob/master/docs/API.md#rotationcontrol
- Fixes rotation/pitch glitch when using clusters: #233
- Add paint / layout property on component re-rendering: #232
Bug fixes / dependencies improvements
- Fix bug when updating the style of the map: #219 thanks @davecranwell
- Add back
deep-equal
,reduce-object
,supercluster
as dependencies.
v1.9.0
This release include the following changes:
- Move all dependencies to peer dependencies, you have to make sure these libraries are dependencies of your project :
"deep-equal": "^1.0.1",
"mapbox-gl": "^0.36.0",
"reduce-object": "^0.1.3",
"supercluster": "^2.3.0"
- Fix a bug when unmounting the map: #178
- Update some dev dependencies and mapbox-gl
Convert project to typescript
This release convert the source files to typescript
Add Source and Cluster component
This release include 2 new components :
Source
component is a first step to a complete redesign of the Layer component, the idea is to decouple source and layer in order to add multiple sources to the map.Cluster
component group multiple Html Marker togethers, it is using supercluster as a dependency to generate the cluster of points.
Change Popup and Marker implementation
This release include some breaking changes for the Popup
and the Marker
API, these are now standalone layer projected using map.project
instead of using the native Popup and Marker API of Mapbox-gl. This was necessary to keep track of the context down to the nested components.
v0.10.0 - The empire strikes back!
This release doesn't add great new features 😞 , but mainly cleans up the structure of the project, adds vendoring for mapbox-gl, and automatically loads up the required CSS code. 🎉
- Vendoring for Mapbox GL was added with Webpack (Does server side rendering work now?)
- The example was extracted into a sub folder
package.json
was cleaned up- CSS code is being injected into the body's head automatically
Is that it? 😢 Yes, unfortunately for now that's it. But this projects is getting closer to a 1.0 release!
-- @philpl 🐱