Skip to content

refactor(source): dynamic marker icons #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

antontranelis
Copy link
Member

marker icons can dynamically passed to layer and items

needs utopia-os/utopia-map#39

@antontranelis antontranelis changed the title refator(source): dynamic marker icons refactor(source): dynamic marker icons May 14, 2025
@antontranelis antontranelis requested a review from ulfgebhardt May 14, 2025 16:11
Copy link
Member

@ulfgebhardt ulfgebhardt left a comment

Choose a reason for hiding this comment

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

It works - the icons are loaded form the server as expected
image

I corrected the type definition to avoid warnings in rollup (would likely cause not to be able to resolve the MarkerIcon type).
Further more renamed the type to Capital letter MarkerIcon as this is standard for types.

@ulfgebhardt
Copy link
Member

The correct resolution of the MarkerIcon type causes the examples to fail, which still provide a string for the MarkerIcon
image

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