arlas-web-components / Exports / MapglLegendComponent
Class: MapglLegendComponent
Implements
OnInit
AfterViewInit
OnChanges
Table of contents
Constructors
Properties
- PROPERTY_SELECTOR_SOURCE
- circleRadiusLegendElement
- collection
- colorLegend
- colorService
- colorsPalette
- detail
- downloadSourceEmitter
- enabled
- layer
- legendUpdater
- lineDasharray
- lineWidthLegendElement
- radiusLegend
- strokeColorLegend
- strokeColorPalette
- translate
- visibilityStatus
- visibilityUpdater
- visibleMode
- widthLegend
- zoom
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:109
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:100
circleRadiusLegendElement
• circleRadiusLegendElement: ElementRef
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:91
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:93
colorService
• colorService: ArlasColorService
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:110
colorsPalette
• colorsPalette: string
= ''
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:106
detail
• detail: boolean
= false
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:98
downloadSourceEmitter
• downloadSourceEmitter: Subject
<{ downloadType
: string
; layer
: Layer
}>
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:89
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: any
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:94
lineWidthLegendElement
• lineWidthLegendElement: ElementRef
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:90
radiusLegend
• radiusLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:97
strokeColorLegend
• strokeColorLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:95
strokeColorPalette
• strokeColorPalette: string
= ''
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:107
translate
• translate: TranslateService
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:109
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:99
widthLegend
• widthLegend: Legend
= {}
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:96
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:167
ngAfterViewInit
▸ ngAfterViewInit(): void
Returns
void
Implementation of
AfterViewInit.ngAfterViewInit
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:153
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:159
ngOnInit
▸ ngOnInit(): void
Returns
void
Implementation of
OnInit.ngOnInit
Defined in
projects/arlas-components/src/lib/components/mapgl-legend/mapgl-legend.component.ts:113
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:175
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:282
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:253