Skip to content

feat(symbol): Allow to set custom symbol#74

Merged
arnaudfnr merged 3 commits into
mainfrom
david-bretaud-dev/feat-add-custom-symbols
Apr 19, 2026
Merged

feat(symbol): Allow to set custom symbol#74
arnaudfnr merged 3 commits into
mainfrom
david-bretaud-dev/feat-add-custom-symbols

Conversation

@david-bretaud-dev
Copy link
Copy Markdown
Collaborator

#64

Comment thread coordo-py/coordo/map/datapackage.py Outdated
@david-bretaud-dev david-bretaud-dev force-pushed the david-bretaud-dev/feat-add-custom-symbols branch from 035613d to ae4f174 Compare April 13, 2026 22:22
@david-bretaud-dev david-bretaud-dev force-pushed the david-bretaud-dev/feat-add-custom-symbols branch 2 times, most recently from 0176e38 to 0ac902f Compare April 17, 2026 07:52
pictureId = imageId;
}

if (svg) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if both imageUrl and svg are set ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have said "no worries, ts does not allow that" but not all consumers projects will be in typescript 😮‍💨 I'll add constraints

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated with

  • early return when it's configured
  • additional JSDoc
  • warning when nothing is provided

@david-bretaud-dev david-bretaud-dev force-pushed the david-bretaud-dev/feat-add-custom-symbols branch from 0ac902f to 99355f7 Compare April 19, 2026 09:30
@arnaudfnr arnaudfnr merged commit 3e2702a into main Apr 19, 2026
3 checks passed
@arnaudfnr arnaudfnr deleted the david-bretaud-dev/feat-add-custom-symbols branch April 19, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants