arlas-web-components / Exports / MapglLegendComponent

Class: MapglLegendComponent

Implements

  • OnInit
  • AfterViewInit
  • OnChanges

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MapglLegendComponent(translate, el, colorService)

Parameters

Name Type
translate TranslateService
el ElementRef<any>
colorService ArlasColorService

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:104

Properties

PROPERTY_SELECTOR_SOURCE

PROPERTY_SELECTOR_SOURCE: typeof PROPERTY_SELECTOR_SOURCE = PROPERTY_SELECTOR_SOURCE

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:95


circleRadiusLegendElement

circleRadiusLegendElement: ElementRef<any>

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:86


collection

collection: string

input : Angular

description Collection of the layer

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:54


colorLegend

colorLegend: Legend = {}

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:88


colorService

colorService: ArlasColorService


colorsPalette

colorsPalette: string = ''

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:101


detail

detail: boolean = false

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:93


downloadSourceEmitter

downloadSourceEmitter: Subject<{ downloadType: string ; layer: Layer }>

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:84


enabled

enabled: boolean

input : Angular

description Whether the layer is enabled or disabled.

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:64


layer

layer: Layer

input : Angular

description Layer object

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:49


legendUpdater

legendUpdater: Subject<Map<string, Map<string, LegendData>>>

input : Angular

description Subject of [collection, [field, legendData]] map. The map subscribes to it to keep the legend updated with the data displayed on the map.

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:70


lineDasharray

lineDasharray: any

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:89


lineWidthLegendElement

lineWidthLegendElement: ElementRef<any>

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:85


radiusLegend

radiusLegend: Legend = {}

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:92


strokeColorLegend

strokeColorLegend: Legend = {}

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:90


strokeColorPalette

strokeColorPalette: string = ''

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:102


translate

translate: TranslateService


visibilityStatus

visibilityStatus: Subject<boolean>

output : Angular

description Notifies the parent component that this layer is visible or not

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:82


visibilityUpdater

visibilityUpdater: Subject<Map<string, boolean>>

input : Angular

description Subject of [field, boolean] map. The map subscribes to it to keep the legend updated with the visibility of the layer.

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:76


visibleMode

visibleMode: boolean = false

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:94


widthLegend

widthLegend: Legend = {}

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:91


zoom

zoom: number

input : Angular

description Current zoom level of the map

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:59

Methods

downloadLayerSource

downloadLayerSource(layer, downloadType): void

Parameters

Name Type
layer Layer
downloadType string

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:162


ngAfterViewInit

ngAfterViewInit(): void

Returns

void

Implementation of

AfterViewInit.ngAfterViewInit

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:148


ngOnChanges

ngOnChanges(changes): void

Parameters

Name Type
changes SimpleChanges

Returns

void

Implementation of

OnChanges.ngOnChanges

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:154


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:108


showDetail

showDetail(event): void

Parameters

Name Type
event Event

Returns

void

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:170


buildColorLegend

Static buildColorLegend(colorExpression, visibleMode, legendData, translate?): [Legend, string]

Parameters

Name Type
colorExpression string | StyleFunction | Expression
visibleMode boolean
legendData Map<string, LegendData>
translate? TranslateService

Returns

[Legend, string]

Defined in

projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:248