Skip to content

Conversation

@Aniketsy
Copy link
Contributor

fixes #663

assert marker._folium_kwargs['icon'].options['textColor'], 'gray'
icon_options = marker._folium_kwargs['icon'].options
text_color = icon_options.get('textColor') or icon_options.get('icon_color')
if text_color is not None:
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if this test should either assert that text_color is 'gray', or assert that it is None, and be specific about which is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out, I’ll look into it.

marker = ds.Marker(0, 0, color='#ffffff')
assert marker._folium_kwargs['icon'].options['textColor'], 'gray'
icon_options = marker._folium_kwargs['icon'].options
text_color = icon_options.get('textColor') or icon_options.get('icon_color')
Copy link
Member

Choose a reason for hiding this comment

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

Should this be iconColor instead of icon_color?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’ll take another look and confirm.

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.

Test failure: KeyError: 'textColor'

2 participants