arlas-web-components / Exports / MapglLegendComponent
Class: MapglLegendComponent
Implements
OnInit
AfterViewInit
OnChanges
Table of contents
Constructors
Properties
- PROPERTY_SELECTOR_SOURCE
- circleRadiusLegend
- collection
- colorLegend
- colorPalette
- colorService
- detail
- downloadSourceEmitter
- enabled
- layer
- legendUpdater
- lineDasharray
- lineWidthLegend
- radiusLegend
- strokeColorLegend
- strokeColorPalette
- translate
- visibilityStatus
- visibilityUpdater
- visibleMode
- widthLegend
- zoom
Methods
- downloadLayerSource
- ngAfterViewInit
- ngOnChanges
- ngOnDestroy
- ngOnInit
- showDetail
- buildColorLegend
- filterLegend
Constructors
constructor
• new MapglLegendComponent(translate
, colorService
)
Parameters
Name | Type |
---|---|
translate |
TranslateService |
colorService |
ArlasColorService |
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:116
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:105
circleRadiusLegend
• circleRadiusLegend: MapglLegendItemComponent
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:96
collection
• collection: string
Input
: Angular
Description
Collection of the layer
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:59
colorLegend
• colorLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:98
colorPalette
• colorPalette: string
= ''
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:111
colorService
• colorService: ArlasColorService
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:118
detail
• detail: boolean
= false
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:103
downloadSourceEmitter
• downloadSourceEmitter: Subject
<{ downloadType
: string
; layer
: Layer
}>
Output
: Angular
Description
Notifies the parent component that the user wants to download the layer
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:93
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:69
layer
• layer: Layer
Input
: Angular
Description
Layer object
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:54
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:75
lineDasharray
• lineDasharray: number
[]
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:99
lineWidthLegend
• lineWidthLegend: MapglLegendItemComponent
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:95
radiusLegend
• radiusLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:102
strokeColorLegend
• strokeColorLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:100
strokeColorPalette
• strokeColorPalette: string
= ''
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:112
translate
• translate: TranslateService
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:117
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:87
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:81
visibleMode
• visibleMode: boolean
= false
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:104
widthLegend
• widthLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:101
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:64
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:185
ngAfterViewInit
▸ ngAfterViewInit(): void
Returns
void
Implementation of
AfterViewInit.ngAfterViewInit
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:166
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:172
ngOnDestroy
▸ ngOnDestroy(): void
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:180
ngOnInit
▸ ngOnInit(): void
Returns
void
Implementation of
OnInit.ngOnInit
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:120
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:193
buildColorLegend
▸ Static
buildColorLegend(colorExpression
, visibleMode
, legendData
, filter?
, translate?
): [Legend
, string
]
Parameters
Name | Type |
---|---|
colorExpression |
string | StyleFunction | Expression |
visibleMode |
boolean |
legendData |
Map <string , LegendData > |
filter? |
any [] |
translate? |
TranslateService |
Returns
[Legend
, string
]
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:302
filterLegend
▸ Static
filterLegend(colorLegendValues
, filter
, field
): void
Parameters
Name | Type |
---|---|
colorLegendValues |
Map <string , string | number > |
filter |
any [] |
field |
string |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:273