Skip to content

Commit 95bacaa

Browse files
author
Jeremiah R. Hall
committed
Add fitBoundsOnUpdate prop to docs
1 parent 877719f commit 95bacaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class MapExample extends React.Component {
2121
<Map center={[0,0]} zoom={13}>
2222
<HeatmapLayer
2323
fitBoundsOnLoad
24+
fitBoundsOnUpdate
2425
points={addressPoints}
2526
longitudeExtractor={m => m[1]}
2627
latitudeExtractor={m => m[0]}
@@ -48,6 +49,7 @@ The `HeatmapLayer` component takes the following props:
4849
- `latitudeExtractor`: *required* a function that returns the object's latitude e.g. `marker => marker.lat`
4950
- `intensityExtractor`: *required* a function that returns the object's intensity e.g. `marker => marker.val`
5051
- `fitBoundsOnLoad`: boolean indicating whether map should fit data in bounds of map on load
52+
- `fitBoundsOnUpdate`: boolean indicating whether map should fit data in bounds of map on Update
5153
- `max`: max intensity value for heatmap (default: 3.0)
5254
- `radius`: radius for heatmap points (default: 30)
5355
- `maxZoom`: maximum zoom for heatmap (default: 18)

0 commit comments

Comments
 (0)