More refactoring, add thematic maps button
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user