Allow hash for location

This commit is contained in:
Lukas Martinelli 2016-12-24 15:17:15 +01:00
parent def5ebb587
commit 0c483cffe3
2 changed files with 2 additions and 0 deletions

View file

@ -61,6 +61,7 @@ export default class InspectionMap extends React.Component {
const map = new MapboxGl.Map({ const map = new MapboxGl.Map({
container: this.container, container: this.container,
style: convertInspectStyle(this.props.mapStyle, this.props.sources), style: convertInspectStyle(this.props.mapStyle, this.props.sources),
hash: true,
}) })
const nav = new MapboxGl.NavigationControl(); const nav = new MapboxGl.NavigationControl();

View file

@ -36,6 +36,7 @@ export default class MapboxGlMap extends React.Component {
const map = new MapboxGl.Map({ const map = new MapboxGl.Map({
container: this.container, container: this.container,
style: this.props.mapStyle, style: this.props.mapStyle,
hash: true,
}) })
const nav = new MapboxGl.NavigationControl(); const nav = new MapboxGl.NavigationControl();