Add location locking functionality

This commit is contained in:
Pieter Vander Vennet 2021-03-14 20:14:51 +01:00
parent 94c0b8667a
commit 19582853f5
5 changed files with 34 additions and 5 deletions

View file

@ -158,6 +158,13 @@ export interface LayoutConfigJson {
*/
hideFromOverview?: boolean;
/**
* If set to true, the basemap will not scroll outside of the area visible on initial zoom.
* If set to [[lat0, lon0], [lat1, lon1]], the map will not scroll outside of those bounds.
* Off by default, which will enable panning to the entire world
*/
lockLocation?: boolean | [[number, number], [number, number]];
enableUserBadge?: boolean;
enableShareScreen?: boolean;
enableMoreQuests?: boolean;