Client - update react-leaflet to 3.0.5
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import hash from 'object-hash'
|
||||
import React from 'react'
|
||||
import { GeoJSON, Map, Marker, TileLayer } from 'react-leaflet'
|
||||
import { GeoJSON, MapContainer, Marker, TileLayer } from 'react-leaflet'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
import { getActivityGpx, getSegmentGpx } from '../../../actions/activities'
|
||||
@ -54,7 +54,7 @@ class ActivityMap extends React.Component {
|
||||
return (
|
||||
<div>
|
||||
{jsonData && (
|
||||
<Map
|
||||
<MapContainer
|
||||
zoom={this.state.zoom}
|
||||
bounds={bounds}
|
||||
boundsOptions={{ padding: [10, 10] }}
|
||||
@ -74,7 +74,7 @@ class ActivityMap extends React.Component {
|
||||
position={[coordinates.latitude, coordinates.longitude]}
|
||||
/>
|
||||
)}
|
||||
</Map>
|
||||
</MapContainer>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
Reference in New Issue
Block a user