Both fields are string | null and never absent: a caller must handle "no style
applied yet" anyway, and an optional field would let it read undefined as a value.
⚠️ label is null when the applied style has no display name — including the case
where the underlying field holds a map-label CONFIG object rather than a name, which
the style-file format allows. A name is returned only when it is one.
Which style a layer currently wears, as LayerDataApi.getStyle reports it.
Both fields are
string | nulland never absent: a caller must handle "no style applied yet" anyway, and an optional field would let it readundefinedas a value.⚠️
labelisnullwhen the applied style has no display name — including the case where the underlying field holds a map-label CONFIG object rather than a name, which the style-file format allows. A name is returned only when it is one.