mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-14 17:33:30 +01:00
Allow hash for location
This commit is contained in:
parent
def5ebb587
commit
0c483cffe3
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue