Merge pull request #46 from uwap/greenkeeper/react-leaflet-2.0.0

Update react-leaflet to the latest version 🚀
This commit is contained in:
uwap 2018-07-10 17:40:25 +02:00 committed by GitHub
commit f7972afcd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -20,7 +20,7 @@
"mqtt": "^2.14.0", "mqtt": "^2.14.0",
"react": "^16.0.0", "react": "^16.0.0",
"react-dom": "^16.0.0", "react-dom": "^16.0.0",
"react-leaflet": "^1.8.0", "react-leaflet": "^2.0.0",
"react-tap-event-plugin": "^3.0.0", "react-tap-event-plugin": "^3.0.0",
"redux": "^3.7.2" "redux": "^3.7.2"
}, },

View file

@ -36,7 +36,8 @@ export default class ControlMap extends React.PureComponent<ControlMapProps> {
return ( return (
<Map center={this.center} <Map center={this.center}
zoom={this.props.zoom} zoom={this.props.zoom}
crs={CRS.Simple}> crs={CRS.Simple}
leaflet={{}}>
{this.renderMarkers()} {this.renderMarkers()}
{this.renderLayers()} {this.renderLayers()}
</Map> </Map>