Skip to content
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

Issue #439: Add dataUrl error handling callback function #440

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Anemy
Copy link

@Anemy Anemy commented Apr 24, 2018

Issue: #439

This PR adds a callback function to the Datamaps constructor which is called when the dataUrl supplied with the geographyConfig fails to load.

This addition should allow for more explicit error handling, the current functionality throws an error asynchronously which cannot be caught easily.

Note: Another way we could go about this is to mutate the done callback to allow for error passing. However I'm thinking that could break a few peoples assumptions of that function.

@Anemy Anemy changed the title Issue # 439: Add dataUrl error handling callback function Issue #439: Add dataUrl error handling callback function Apr 24, 2018
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.

1 participant