Skip to content

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