mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-29 04:51:18 -07:00
Loading a URL with lat/lng/zoom specified does not work (#414)
This commit is contained in:
parent
937770ab3c
commit
3238e09792
4 changed files with 27168 additions and 58 deletions
|
@ -51,6 +51,7 @@ export interface IDetailViewInterface {
|
|||
};
|
||||
|
||||
const J40Map = ({location}: IJ40Interface) => {
|
||||
// Hash portion of URL is of the form #zoom/lat/lng
|
||||
const [zoom, lat, lng] = location.hash.slice(1).split('/');
|
||||
const [viewport, setViewport] = useState<ViewportProps>({
|
||||
latitude: lat && parseFloat(lat) || constants.DEFAULT_CENTER[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue