added test for moveTo command

This commit is contained in:
Hanusiak Piotr 2022-01-20 15:47:49 +01:00
parent e87c0a07a4
commit cebb803b2b
3 changed files with 282 additions and 1 deletions

View file

@ -46,7 +46,11 @@ class UrlManager {
public getStartLayerNameFromUrl(): string | null {
const hash = window.location.hash;
return hash.length > 1 ? hash.substring(1) : null;
let layerName = null;
if (hash.length > 1) {
layerName = hash.includes("&") ? hash.split("&")[0].substring(1) : hash.substring(1);
}
return layerName;
}
public getHashParameter(name: string): string | undefined {