mirror of
https://github.com/maputnik/editor.git
synced 2026-08-26 06:57:26 +00:00
Allow hash for location
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user