added test for moveTo command
This commit is contained in:
parent
e87c0a07a4
commit
cebb803b2b
3 changed files with 282 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue