More refactoring, add thematic maps button

This commit is contained in:
Willem Dantuma
2020-04-22 08:11:50 +02:00
parent ef81b04f4e
commit 69751540d3
4 changed files with 34 additions and 16 deletions

View File

@@ -42,6 +42,7 @@ export const DOQUERY = '[Map] DoQuery';
export const SETSTYLE = '[Map] SetStyle';
export const SHOWLAYERSWITCHER = '[Map] ShowLayerSwitcher';
export const CLEAR = '[Map] Clear';
export const SETREPLACEURL = '[Map] SetReplaceUrl';
export class Clear implements Action {
readonly type = CLEAR;
@@ -165,7 +166,7 @@ export class SetExtent implements Action {
export class SetQueryState implements Action {
readonly type = SETQUERYSTATE;
constructor(public queryState: IQueryState) { }
constructor(public queryState: IQueryState,public replaceUrl:boolean = true) { }
}
export class SetTimeSpan implements Action {
@@ -251,6 +252,11 @@ export class ShowLayerSwitcher implements Action {
constructor(public show:boolean) {}
}
export class SetReplaceUrl implements Action {
readonly type = SETREPLACEURL;
constructor(public replaceUrl:boolean) {}
}
export type Actions = SetMapState
| Init
| Clear
@@ -285,5 +291,6 @@ export type Actions = SetMapState
| SetViewExtent
| DoQuery
| SetStyle
| ShowLayerSwitcher;
| ShowLayerSwitcher
| SetReplaceUrl;