Skip to content

refactor ImageOverlay #697

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

Merged
merged 2 commits into from
Aug 30, 2017

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Aug 29, 2017

Similar to #696 and #683

  • brings back the utility functions to make it easier to re-factor;
  • simplified image_to_url to always embed the image unless it is a URL;
  • adds all leaflet's ImageOverlay options and defaults;
  • closes Add popups to ImageOverlays #303 when using the kwarg interact=True.

return any(scheme in name for scheme in ['http://', 'https://'])


def write_png(data, origin='upper', colormap=None):

Choose a reason for hiding this comment

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

C901 'write_png' is too complex (11)

@ocefpaf ocefpaf merged commit 387dea3 into python-visualization:master Aug 30, 2017
@ocefpaf ocefpaf deleted the refactor_imageoverlay branch August 30, 2017 00:33
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
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.

Add popups to ImageOverlays
2 participants