Skip to content

Commit 22c3c78

Browse files
committed
fix: set box draw mode by default for geo search
1 parent 5d221da commit 22c3c78

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/components/filters-dropdown/list-filters/list-filters.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class ListFiltersComponent implements OnInit, OnDestroy {
125125
filtersStore.FiltersActionType.RESTORE_FILTERS
126126
),
127127
withLatestFrom(this.store$.select(filtersStore.getSearchList).pipe(map(list => list.join('\n')))),
128-
)]).subscribe(([[_, listStr]]) => {console.log(listStr);this.searchList = listStr}
128+
)]).subscribe(([[_, listStr]]) => this.searchList = listStr
129129
)
130130
);
131131

src/app/store/search/search.effect.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ export class SearchEffects {
311311
];
312312
if (action.payload === models.SearchType.DISPLACEMENT) {
313313
output.push(new mapStore.SetMapDrawMode(models.MapDrawModeType.POINT))
314+
} else {
315+
output.push(new mapStore.SetMapDrawMode(models.MapDrawModeType.BOX))
314316
}
315317
return output;
316318
})

0 commit comments

Comments
 (0)