From 0c483cffe39164479fe86aa3127ca967e4735459 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Sat, 24 Dec 2016 15:17:15 +0100 Subject: [PATCH] Allow hash for location --- src/components/map/InspectionMap.jsx | 1 + src/components/map/MapboxGlMap.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/map/InspectionMap.jsx b/src/components/map/InspectionMap.jsx index c382129..ee836bd 100644 --- a/src/components/map/InspectionMap.jsx +++ b/src/components/map/InspectionMap.jsx @@ -61,6 +61,7 @@ export default class InspectionMap extends React.Component { const map = new MapboxGl.Map({ container: this.container, style: convertInspectStyle(this.props.mapStyle, this.props.sources), + hash: true, }) const nav = new MapboxGl.NavigationControl(); diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 9ea24dd..fb344fd 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -36,6 +36,7 @@ export default class MapboxGlMap extends React.Component { const map = new MapboxGl.Map({ container: this.container, style: this.props.mapStyle, + hash: true, }) const nav = new MapboxGl.NavigationControl();