Skip to content

Commit a697fe2

Browse files
lixun910Copilot
andauthored
Update src/layers/src/point-layer/point-layer.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 57f36c8 commit a697fe2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/layers/src/point-layer/point-layer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ export default class PointLayer extends Layer {
347347
columns?: PointLayerColumnsConfig;
348348
} = {
349349
label:
350+
// Skip the generic 'point' fallback from findPointFieldPairs and use the dataset label instead
350351
pair.defaultName && pair.defaultName !== 'point'
351352
? pair.defaultName
352353
: (typeof label === 'string' && label.replace(/\.[^/.]+$/, '')) || 'Point'

0 commit comments

Comments
 (0)