Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bindind layers together (some identified properties and deletion) #720

Merged
merged 144 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
05a457c
fix(directions): search term change and map synchronization (#580)
pelord Feb 13, 2020
188ba89
locale(mapTool): empty map
mbarbeau Feb 13, 2020
ecc5bf8
refactor(map): remove not used alias property
mbarbeau Feb 13, 2020
8c14203
chore(template): fix pull request template
mbarbeau Feb 13, 2020
f6ffd11
fix(search): provide projection service for coordinates search source
mbarbeau Feb 17, 2020
a13e74c
locale(auth): add login lockout message
mbarbeau Feb 17, 2020
805adc8
fix(ogc-filter, style): better handling grouped layers (#581)
pelord Feb 20, 2020
e834084
fix(demo/toast-panel): fix spatial-filter alias in demo / resize chec…
PhilippeLafreniere18 Feb 20, 2020
50ebef5
feat(datasource): retrieve query format from capabilities (#582)
mbarbeau Feb 24, 2020
bcf3d9a
feat(datasource): retrieve options from api (#583)
mbarbeau Feb 24, 2020
ef2a2ec
fix(datasource): improve error handling
mbarbeau Feb 24, 2020
1aa252e
chore(*): add package dependencies
mbarbeau Mar 2, 2020
08512af
fix(layer): add tile-watcher to vectortile-layer (#595)
mbarbeau Mar 4, 2020
f20c830
feat(search-setting): Add a button to check/uncheck all sources (#589)
mbarbeau Mar 4, 2020
836d656
feat(context): allow user to filter context list (#588)
mbarbeau Mar 4, 2020
ed46c82
fix(search) Last checked source result was kept into the search-resul…
pelord Mar 24, 2020
07e2a32
fix(layer): updateInResolutionRange works properly if maxResolution =…
drekss Mar 24, 2020
0c770cd
feat(import) configurable client side file size (#603)
pelord Mar 25, 2020
4e95004
fix(spatial-filter): fix bug when _internal is not defined
mbarbeau Mar 25, 2020
6e62abc
fix(pointer summary) Fix context change, summary was not shown. (#607)
pelord Mar 25, 2020
81331ef
feat(search results): manage focus/unfocus and select action on searc…
PhilippeLafreniere18 Mar 25, 2020
b98a18a
style(*): Group title emphasis opacity from 0.8 to 0.9 (#611)
pelord Mar 31, 2020
e84ae8c
fix(query): fix Firefox and IE svg change bug (#610)
PhilippeLafreniere18 Mar 31, 2020
3cb814f
chore(build): build warn ng-packagr No name was provided for externa…
pelord Mar 31, 2020
8cb8b02
ui(scale): better visibility on dark background
mbarbeau Mar 31, 2020
1950c95
feat(ogc-filter): Provide operator at the field scale (#608)
pelord Mar 31, 2020
5a36cf8
chore(*) warn ng-packagr No name was provided for external module (#612)
pelord Mar 31, 2020
0775e94
fix(context): queryable must be saved
mbarbeau Apr 24, 2020
7343cd7
fix(context): queryable must be saved
mbarbeau Apr 24, 2020
6023480
fix(queryFormat): fix layer's queryFormat htmlgml2 (#620)
PhilippeLafreniere18 Apr 30, 2020
95f1e0d
feat(QueryService): Add create geom for mapTag when geom is null on e…
Apr 30, 2020
61c58a6
fix(TimeFilter): calendar year range, don't reset year range in UI (i…
Apr 30, 2020
5e86863
fix(time-filter): fix UTC time, language and style on selected date (…
PhilippeLafreniere18 Apr 30, 2020
7efaa71
fix(network): connection message after leaving the tab on the phone (…
drekss Apr 30, 2020
5b55a40
feat(context-list): add context list tool (alpha, add context) (#624)
PhilippeLafreniere18 Apr 30, 2020
ca849c3
feat(import-export): ajout de l'aggregation pour gpx (#623)
LavoieO May 1, 2020
b1c6b31
feat(layers): Enhanced table of content for layers management (#625)
pelord May 1, 2020
6695cb1
fix(layer): prevent empty map message to be shown too quickly
mbarbeau May 4, 2020
c1a7173
fix(layer-list): fix baselayer with select all and opacity CSS (#632)
PhilippeLafreniere18 May 4, 2020
12c3a8e
fix(map): tracking fix (#629)
drekss May 4, 2020
6bea081
fix(feature): excludeAttribute works with offlineButton (#628)
drekss May 4, 2020
6c555ed
feat (import/export) : export naming (#631)
LavoieO May 4, 2020
22e0115
lint(import-export)
mbarbeau May 4, 2020
4bc5b39
feat(import): import cluster (#616)
drekss May 4, 2020
ea1880b
locale(import): fix translate
mbarbeau May 4, 2020
84619d0
fix(layer-list): fix selection mode (#635)
PhilippeLafreniere18 May 6, 2020
002ceef
style(map-offline): remove console.log
mbarbeau May 7, 2020
171086c
fix(map-legend) listen to layers modification (#636)
pelord May 7, 2020
5eead32
fix(map-legend) Hide all non active legend when allowShowAllLegends …
pelord May 8, 2020
c3183b3
wip
May 11, 2020
349d86a
wip
May 11, 2020
3ee17df
Merge remote-tracking branch 'origin/master' into bindedLayers2
May 11, 2020
cdbbe13
wip
May 12, 2020
ab15526
wip
May 12, 2020
9336291
wip
May 12, 2020
7fe3f77
Merge tag '1.3.1' into bindedLayers2
Jun 3, 2020
416c582
Merge remote-tracking branch 'origin/next' into bindedLayers2
Jun 3, 2020
50cec7b
Merge remote-tracking branch 'origin/next' into bindedLayers2
Jun 16, 2020
c0cad20
wip
Jun 16, 2020
b502da0
feat(layer sync) allow min/max resolution sync.
Jun 16, 2020
abcac60
wip
Jun 16, 2020
ebc463d
Merge remote-tracking branch 'origin/master' into bindedLayers2
Aug 10, 2020
795d172
travis
mbarbeau Aug 5, 2020
263a093
feat(libs): upgrade librairies (#696)
mbarbeau Aug 5, 2020
f1a5b3b
chore(utils): bowser version
mbarbeau Aug 5, 2020
2eed017
fix(spatial-filter): fix spatial filter 1.4 (#697)
PhilippeLafreniere18 Aug 6, 2020
ad990c4
fix(layer-list-tool) alphaSort icon name tooltip (#700)
Aug 12, 2020
4f092fe
feat(interactiveTour + welcomeWindows): add new component and service…
Aug 12, 2020
59fd497
fix(layer-legend.component) Fix param legendOptions.display: false (#…
Aug 17, 2020
3764f73
feat(entity-table): add pagination (#707)
pelord Aug 20, 2020
d1388fa
feat(catalog): arcgis rest data catalog (#709)
PhilippeLafreniere18 Aug 27, 2020
bfe9107
fix(interactive-tour): css fix for interactive tour (#708)
PhilippeLafreniere18 Aug 27, 2020
ee7a645
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 2, 2020
145f0e6
travis
mbarbeau Aug 5, 2020
21e1ebf
feat(libs): upgrade librairies (#696)
mbarbeau Aug 5, 2020
5ab33b2
chore(utils): bowser version
mbarbeau Aug 5, 2020
ba2d240
fix(spatial-filter): fix spatial filter 1.4 (#697)
PhilippeLafreniere18 Aug 6, 2020
bcb5242
fix(layer-list-tool) alphaSort icon name tooltip (#700)
Aug 12, 2020
7a79bc4
feat(interactiveTour + welcomeWindows): add new component and service…
Aug 12, 2020
8f4f372
fix(layer-legend.component) Fix param legendOptions.display: false (#…
Aug 17, 2020
afde233
feat(entity-table): add pagination (#707)
pelord Aug 20, 2020
2af389a
feat(catalog): arcgis rest data catalog (#709)
PhilippeLafreniere18 Aug 27, 2020
3008300
fix(interactive-tour): css fix for interactive tour (#708)
PhilippeLafreniere18 Aug 27, 2020
3102156
feat(search-bar): can set appearance and map is optional
Sep 2, 2020
0159d24
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 8, 2020
102ccec
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 8, 2020
a9e94b2
Merge branch 'bindedLayers2' of https://github.com/infra-geo-ouverte/…
Sep 8, 2020
de6d5d3
wip
Sep 8, 2020
e483105
wip
Sep 8, 2020
093c02d
feat(layer) linked layers could now be deleted simultaneously (synced…
Sep 9, 2020
8d6697b
feat(mini-basemap) base layer could now have linked layers.
Sep 9, 2020
e010815
wip
Sep 9, 2020
47057ec
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 9, 2020
1e0a2d4
merge diff
Sep 9, 2020
e00bf3d
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 9, 2020
6f35c03
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 9, 2020
dc832df
wip zIndex
Sep 10, 2020
a670f46
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 15, 2020
4e97e0b
wip
Sep 16, 2020
1a4aa20
wip
Sep 16, 2020
0138d45
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 18, 2020
c9c9963
feat(layer) sync layer displacement into the layer list
Sep 18, 2020
aa0ee93
feat(layer) time filter synchronisation between 2 layers
Sep 18, 2020
e92aefd
refactor(layer) binded layers properties to enum
Sep 18, 2020
f728070
wip
Sep 18, 2020
eb59076
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 22, 2020
705f36c
Merge remote-tracking branch 'origin/next' into bindedLayers2
Sep 25, 2020
c146d68
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 2, 2020
b54c5a8
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 13, 2020
a59f3e3
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 14, 2020
26cd4ef
wip
Oct 14, 2020
2f4f34f
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 15, 2020
468e358
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 15, 2020
2e30cfc
Merge remote-tracking branch 'origin/master' into bindedLayers2
Oct 16, 2020
eb1fe00
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 20, 2020
d6174c7
feat(search-result) add a emphasis feature for line and poly too deep…
pelord Oct 20, 2020
a7d255d
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 20, 2020
4f2e67d
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 20, 2020
f1de623
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 26, 2020
d5e2830
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 27, 2020
7452117
feat(workspace) create a workspace on wms with wfsparams
Oct 27, 2020
caf3495
refactor(layer) Moving layer syn to a watcher
Oct 27, 2020
0aa010c
wip
Oct 27, 2020
da7653f
refactor(workspace) refactor and some minor fix
Oct 27, 2020
35ea39e
fix(workspace-button) presence/absence is now maintained by the curre…
Oct 27, 2020
33d5403
wip
Oct 27, 2020
cb8b96a
wip
Oct 27, 2020
5deb1db
refactor(icherche) lint
Oct 27, 2020
2d5d508
refactor(wms-workspace) workspace disabled by default
Oct 27, 2020
397d76f
refactor(spatial-filter) prevent to create a workspace for zones
Oct 28, 2020
f7922e0
refactor(spatial-filter) create a workspace for zone
Oct 28, 2020
069b378
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 28, 2020
2c6945a
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 28, 2020
7730b03
Merge remote-tracking branch 'origin/next' into bindedLayers2
Oct 29, 2020
1c4744e
wip
Oct 29, 2020
9763b52
refactor(workspace) rename WorkspaceOptions to GeoWorkspaceOptions
Oct 30, 2020
18feb0d
feat(*) allow to open export tool for wms with workspace
Oct 30, 2020
b2c0647
feat(workspace) provide a default renderer for workspace column.
Oct 30, 2020
feb65f9
wip
Oct 30, 2020
049b4b1
wip
Oct 30, 2020
3e17474
i18n(workspace actions)
Nov 2, 2020
36c32c8
Merge remote-tracking branch 'origin/next' into bindedLayers2
Nov 3, 2020
ed1603e
Merge remote-tracking branch 'origin/next' into bindedLayers2
Nov 3, 2020
97f41f5
fix(export-button) layers without the workspace options crash
Nov 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<div *ngIf="mode === actionbarMode.Overlay">
<button class="buttonOverlay"
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]="'igo.common.actionbar.icon' | translate"
[matMenuTriggerFor]="actionbarMenu"
[disabled]="store.view.empty"
[color]="iconColor">
Expand Down
3 changes: 2 additions & 1 deletion packages/common/src/locale/en.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"actionbar": {
"scrollUp": "Scroll up",
"scrollDown": "Scroll down"
"scrollDown": "Scroll down",
"icon": "Action list"
},
"interactiveTour": {
"tooltipTourToolButton": "Interactive tour of the application",
Expand Down
3 changes: 2 additions & 1 deletion packages/common/src/locale/fr.common.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"actionbar": {
"scrollUp": "Défiler vers le haut",
"scrollDown": "Défiler vers le bas"
"scrollDown": "Défiler vers le bas",
"icon": "Actions supplémentaires"
},
"interactiveTour": {
"tooltipTourToolButton": "Aide interactive sur l'outil",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,21 @@ import {
getFormatFromOptions,
defaultMaxFeatures
} from './wms-wfs.utils';
import { BehaviorSubject } from 'rxjs';
import { AuthInterceptor } from '@igo2/auth';

export class WFSDataSource extends DataSource {
public ol: olSourceVector;

set ogcFilters(value: OgcFiltersOptions) {
(this.options as OgcFilterableDataSourceOptions).ogcFilters = value;
}
get ogcFilters(): OgcFiltersOptions {
return (this.options as OgcFilterableDataSourceOptions).ogcFilters;
}

readonly ogcFilters$: BehaviorSubject<OgcFiltersOptions> = new BehaviorSubject(undefined);

constructor(
public options: WFSDataSourceOptions,
protected wfsService: WFSService,
Expand All @@ -39,6 +49,8 @@ export class WFSDataSource extends DataSource {
) {
this.wfsService.getSourceFieldsFromWFS(this.options);
}

this.setOgcFilters((this.options as OgcFilterableDataSourceOptions).ogcFilters, true);
}

protected createOlSource(): olSourceVector {
Expand Down Expand Up @@ -112,6 +124,13 @@ export class WFSDataSource extends DataSource {
xhr.send();
}

setOgcFilters(ogcFilters: OgcFiltersOptions, triggerEvent: boolean = false) {
this.ogcFilters = ogcFilters;
if (triggerEvent) {
this.ogcFilters$.next(this.ogcFilters);
}
}

private buildUrl(extent, proj: olProjection, ogcFilters: OgcFiltersOptions): string {
const paramsWFS = this.options.paramsWFS;
const queryStringValues = formatWFSQueryString(this.options, undefined, this.options.paramsWFS.srsName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { WMSDataSourceOptions } from './wms-datasource.interface';
import { WFSService } from './wfs.service';

import { OgcFilterWriter } from '../../../filter/shared/ogc-filter';
import { OgcFilterableDataSourceOptions } from '../../../filter/shared/ogc-filter.interface';
import { OgcFilterableDataSourceOptions, OgcFiltersOptions } from '../../../filter/shared/ogc-filter.interface';
import { QueryHtmlTarget } from '../../../query/shared/query.enums';
import {
formatWFSQueryString,
Expand All @@ -15,6 +15,8 @@ import {
} from './wms-wfs.utils';

import { ObjectUtils } from '@igo2/utils';
import { BehaviorSubject } from 'rxjs';
import { TimeFilterableDataSourceOptions, TimeFilterOptions } from '../../../filter/shared/time-filter.interface';

export class WMSDataSource extends DataSource {
public ol: olSourceImageWMS;
Expand All @@ -39,6 +41,23 @@ export class WMSDataSource extends DataSource {
: QueryHtmlTarget.BLANK;
}

set ogcFilters(value: OgcFiltersOptions) {
(this.options as OgcFilterableDataSourceOptions).ogcFilters = value;
}
get ogcFilters(): OgcFiltersOptions {
return (this.options as OgcFilterableDataSourceOptions).ogcFilters;
}

readonly ogcFilters$: BehaviorSubject<OgcFiltersOptions> = new BehaviorSubject(undefined);

set timeFilter(value: TimeFilterOptions ) {
(this.options as TimeFilterableDataSourceOptions).timeFilter = value;
}
get timeFilter(): TimeFilterOptions {
return (this.options as TimeFilterableDataSourceOptions).timeFilter;
}
readonly timeFilter$: BehaviorSubject<TimeFilterOptions> = new BehaviorSubject(undefined);

constructor(
public options: WMSDataSourceOptions,
protected wfsService: WFSService
Expand Down Expand Up @@ -121,6 +140,14 @@ export class WMSDataSource extends DataSource {
fieldNameGeometry
);
sourceParams.FILTER = filterQueryString;
this.setOgcFilters(initOgcFilters, true);

const timeFilterableDataSourceOptions = (options as TimeFilterableDataSourceOptions);
if (
timeFilterableDataSourceOptions?.timeFilterable &&
timeFilterableDataSourceOptions?.timeFilter) {
this.setTimeFilter(timeFilterableDataSourceOptions.timeFilter, true);
}
}

refresh() {
Expand All @@ -138,6 +165,20 @@ export class WMSDataSource extends DataSource {
return new olSourceImageWMS(this.options);
}

setOgcFilters(ogcFilters: OgcFiltersOptions, triggerEvent: boolean = false) {
this.ogcFilters = ogcFilters;
if (triggerEvent) {
this.ogcFilters$.next(this.ogcFilters);
}
}

setTimeFilter(timeFilter: TimeFilterOptions, triggerEvent: boolean = false) {
this.timeFilter = timeFilter;
if (triggerEvent) {
this.timeFilter$.next(this.timeFilter);
}
}

getLegend(style?: string, scale?: number): Legend[] {
let legend = super.getLegend();
if (legend.length > 0 && (style === undefined && !scale)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,6 @@ export class OgcFilterToggleButtonComponent implements OnInit {
// TODO: Check how to prevent wfs to refresh when filter icon is pushed...
this.datasource.ol.refresh();
}
this.refreshFilters();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ export class OgcFilterableItemComponent implements OnInit {
this.lastRunOgcFilter = undefined;
}
const ogcFilters: OgcFiltersOptions = this.datasource.options.ogcFilters;
const activeFilters = ogcFilters.interfaceOgcFilters.filter(
f => f.active === true
);
const activeFilters = ogcFilters.interfaceOgcFilters ?
ogcFilters.interfaceOgcFilters.filter(f => f.active === true) : [];
if (activeFilters.length === 0) {
ogcFilters.filters = undefined;
ogcFilters.filtered = false;
Expand Down Expand Up @@ -201,6 +200,7 @@ export class OgcFilterableItemComponent implements OnInit {
} else {
// identical filter. Nothing triggered
}
(this.layer.dataSource as OgcFilterableDataSource).setOgcFilters(ogcFilters, true);
}

public setVisible() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class OgcFilterableListBindingDirective implements OnInit, OnDestroy {
this.component.layers = [];

this.layers$$ = this.mapService.getMap().layers$.subscribe(layers => {
this.component.layers = layers;
this.component.layers = layers.filter(layer => layer.showInLayerList);
});
}

Expand Down
3 changes: 3 additions & 0 deletions packages/geo/src/lib/filter/shared/ogc-filter.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import olFormatFilter from 'ol/format/filter/Filter';
import { DataSource } from '../../datasource/shared/datasources/datasource';
import { DataSourceOptions } from '../../datasource/shared/datasources/datasource.interface';
import { OgcFilterOperatorType } from './ogc-filter.enum';
import { BehaviorSubject } from 'rxjs';

export interface OgcFilter extends olFormatFilter {}

Expand Down Expand Up @@ -83,6 +84,8 @@ export interface OgcFilterableDataSourceOptions extends DataSourceOptions {
}
export interface OgcFilterableDataSource extends DataSource {
options: OgcFilterableDataSourceOptions;
ogcFilters$?: BehaviorSubject<OgcFiltersOptions>;
setOgcFilters(ogcFilters: OgcFiltersOptions, triggerEvent?: boolean );
}

export interface IgoLogicalArrayOptions {
Expand Down
3 changes: 3 additions & 0 deletions packages/geo/src/lib/filter/shared/time-filter.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { WMSDataSource } from '../../datasource/shared/datasources/wms-datasource';
import { WMSDataSourceOptions } from '../../datasource/shared/datasources/wms-datasource.interface';
import { TimeFilterType, TimeFilterStyle } from './time-filter.enum';
import { BehaviorSubject } from 'rxjs';

export interface TimeFilterOptions {
min?: string;
Expand All @@ -24,6 +25,8 @@ export interface TimeFilterableDataSourceOptions extends WMSDataSourceOptions {

export interface TimeFilterableDataSource extends WMSDataSource {
options: TimeFilterableDataSourceOptions;
timeFilter$: BehaviorSubject<TimeFilterOptions>;
setTimeFilter(ogcFilters: TimeFilterOptions, triggerEvent?: boolean );
filterByDate(date: Date | [Date, Date]);
filterByYear(year: string | [string, string]);
}
8 changes: 8 additions & 0 deletions packages/geo/src/lib/filter/shared/time-filter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export class TimeFilterService {

const params = { TIME: time };
datasource.ol.updateParams(params);
if (datasource instanceof WMSDataSource) {
const wmsDataSource = datasource as WMSDataSource;
wmsDataSource.setTimeFilter(wmsDataSource.timeFilter, true);
}
}

filterByYear(
Expand Down Expand Up @@ -80,6 +84,10 @@ export class TimeFilterService {

const params = { TIME: time };
datasource.ol.updateParams(params);
if (datasource instanceof WMSDataSource) {
const wmsDataSource = datasource as WMSDataSource;
wmsDataSource.setTimeFilter(wmsDataSource.timeFilter, true);
}
}

private reformatDateTime(value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ export class ExportButtonComponent {
}

layerIsExportable(): boolean {
if ((this.layer instanceof VectorLayer && this.layer.exportable === true) ||
(this.layer.dataSource.options.download && this.layer.dataSource.options.download.url)) {
if (
(this.layer instanceof VectorLayer && this.layer.exportable === true) ||
(this.layer.dataSource.options.download && this.layer.dataSource.options.download.url) ||
(this.layer.options.workspace?.workspaceId !== this.layer.id)

) {
return true;
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4 (click)="toggleLegendOnClick()" matLine class="igo-layer-title" [matTooltip]
matBadgePosition="after"
[matBadgeHidden]="queryBadgeHidden$ | async"
[ngClass]="{disabled: !(inResolutionRange$ | async)}"
[svgIcon]="layer.visible ? 'eye' : 'eye-off'">
[svgIcon]="(layer.visible$ | async) ? 'eye' : 'eye-off'">
</mat-icon>
</button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
matTooltipShowDelay="500"
[matTooltip]="(sortAlpha || onlyVisible || keyword) ? ('igo.geo.layer.filterRaiseLayer' | translate) : ('igo.geo.layer.raiseLayer' | translate)"
[disabled]="raiseDisabled"
(click)="activeLayer.map.raiseLayer(activeLayer)">
(click)="moveActiveLayer(activeLayer,layerListDisplacement.Raise)">
<mat-icon [matBadge]="(sortAlpha || onlyVisible || keyword) ? '!' : ''" matBadgeColor="warn" matBadgeSize="medium" [matBadgeHidden]="raiseDisabled"
svgIcon="arrow-up"></mat-icon>
</button>
Expand All @@ -89,7 +89,7 @@
matTooltipShowDelay="500"
[matTooltip]="(sortAlpha || onlyVisible || keyword) ? ('igo.geo.layer.filterLowerLayer' | translate) : ('igo.geo.layer.lowerLayer' | translate)"
[disabled]="lowerDisabled"
(click)="activeLayer.map.lowerLayer(activeLayer)">
(click)="moveActiveLayer(activeLayer,layerListDisplacement.Lower)">
<mat-icon [matBadge]="(sortAlpha || onlyVisible || keyword) ? '!' : ''" matBadgeColor="warn" matBadgeSize="medium" [matBadgeHidden]="lowerDisabled"
svgIcon="arrow-down"></mat-icon>
</button>
Expand Down