Merge pull request #46 from uwap/greenkeeper/react-leaflet-2.0.0
Update react-leaflet to the latest version 🚀
This commit is contained in:
commit
f7972afcd4
2 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue