Skip to content
Snippets Groups Projects
Commit d7e4027c authored by esikkala's avatar esikkala
Browse files

LeafletMap: fix map bounds

parent 65d9831f
No related branches found
No related tags found
No related merge requests found
...@@ -408,8 +408,8 @@ class LeafletMap extends React.Component { ...@@ -408,8 +408,8 @@ class LeafletMap extends React.Component {
const currentCenter = this.leafletMap.getCenter() const currentCenter = this.leafletMap.getCenter()
return ( return (
currentZoom === this.props.zoom && currentZoom === this.props.zoom &&
currentCenter[0] === this.props.center[0] && currentCenter.lat === this.props.center[0] &&
currentCenter[1] === this.props.center[1] currentCenter.lng === this.props.center[1]
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment