Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set size on Map to prevent Failed to execute getImageData error, bump… #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.5 Release
- Documentation: Set height and width on <Map/> component to prevent getImageData error

# 1.0.4 Release
- Allow the latest versions of `react` and `react-dom` (i.e. 16 and up).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MapExample extends React.Component {
render() {
return (
<div>
<Map center={[0,0]} zoom={13}>
<Map center={[0,0]} zoom={13} style={{width: 500, height: 500}}>
<HeatmapLayer
fitBoundsOnLoad
fitBoundsOnUpdate
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet-heatmap-layer",
"version": "1.0.4",
"version": "1.0.5",
"description": "A custom layer for heatmaps in react-leaflet",
"main": "lib/HeatmapLayer.js",
"scripts": {
Expand Down