Configuring maxbounds in config to allow pan to not snap out of center

This commit is contained in:
efarooqui
2020-10-07 17:41:09 -07:00
parent 3dc13f334b
commit d649ba99ed
2 changed files with 3 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ class Map extends React.Component {
* Creates a Leaflet map and a tilelayer for the map background
*/
const { map: mapConf } = this.props.app
console.info(mapConf.maxBounds)
const map =
L.map(this.props.ui.dom.map)
.setView(mapConf.anchor, mapConf.startZoom)