Browse Source

Reset files

pull/14155/head
LeoMorgan113 10 months ago
parent
commit
663ee57e73
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/map-data-layer.ts
  2. 8
      ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/polygons-data-layer.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/map-data-layer.ts

@ -298,7 +298,7 @@ export abstract class TbMapDataLayer<S extends MapDataLayerSettings = MapDataLay
protected calculateDataKeys(): DataKey[] { protected calculateDataKeys(): DataKey[] {
const dataKeys = this.settings.additionalDataKeys ? [...this.settings.additionalDataKeys] : []; const dataKeys = this.settings.additionalDataKeys ? [...this.settings.additionalDataKeys] : [];
const colorRangeKeys = this.allColorSettings().filter(settings => settings.type === DataLayerColorType.range && settings.rangeKey) const colorRangeKeys = this.allColorSettings().filter(settings => settings.type === DataLayerColorType.range && settings.rangeKey)
.map(settings => settings.rangeKey); .map(settings => settings.rangeKey);
dataKeys.push(...colorRangeKeys); dataKeys.push(...colorRangeKeys);
dataKeys.push(...this.getDataKeys()); dataKeys.push(...this.getDataKeys());
return dataKeys; return dataKeys;

8
ui-ngx/src/app/modules/home/components/widget/lib/maps/data-layer/polygons-data-layer.ts

@ -90,7 +90,7 @@ class TbPolygonDataLayerItem extends TbLatestDataLayerItem<PolygonsDataLayerSett
protected bindLabel(content: L.Content): void { protected bindLabel(content: L.Content): void {
this.polygonContainer.bindTooltip(content, {className: 'tb-polygon-label', permanent: true, direction: 'center'}) this.polygonContainer.bindTooltip(content, {className: 'tb-polygon-label', permanent: true, direction: 'center'})
.openTooltip(this.polygonContainer.getBounds().getCenter()); .openTooltip(this.polygonContainer.getBounds().getCenter());
} }
protected doUpdate(data: FormattedData<TbMapDatasource>, dsData: FormattedData<TbMapDatasource>[]): void { protected doUpdate(data: FormattedData<TbMapDatasource>, dsData: FormattedData<TbMapDatasource>[]): void {
@ -189,9 +189,9 @@ class TbPolygonDataLayerItem extends TbLatestDataLayerItem<PolygonsDataLayerSett
protected onDeselected(): void { protected onDeselected(): void {
if (this.dataLayer.isEditEnabled()) { if (this.dataLayer.isEditEnabled()) {
this.disablePolygonEditMode(); this.disablePolygonEditMode();
this.disablePolygonCutMode(); this.disablePolygonCutMode();
this.disablePolygonRotateMode(); this.disablePolygonRotateMode();
} }
} }

Loading…
Cancel
Save