Skip to content

fix: name new point layer using label if provided - #3296

Merged
lixun910 merged 1 commit into
masterfrom
xli-point-layer-name
Feb 3, 2026
Merged

fix: name new point layer using label if provided#3296
lixun910 merged 1 commit into
masterfrom
xli-point-layer-name

Conversation

@lixun910

@lixun910 lixun910 commented Feb 3, 2026

Copy link
Copy Markdown
Collaborator

When creating a new point layer from a pair of {lat, lng} columns, the defaultName will be empty because of regex

const re = new RegExp(`(^|${specialCharacterSet})${suffixPair[0]}(${specialCharacterSet}|$)`);

and then falls back to name 'point':

Screenshot 2026-02-03 at 10 46 28 AM

This leads to many point layers with same label 'point', which are difficult to distinguish.

This PR tries to use the label value (if provided) first in this case.

@lixun910
lixun910 requested review from igorDykhta and ilyabo February 3, 2026 17:51
@lixun910
lixun910 merged commit 4bdf8f4 into master Feb 3, 2026
8 checks passed
@lixun910
lixun910 deleted the xli-point-layer-name branch February 3, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants