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

Return rather than fail if resolution is not defined #2527

Merged
merged 1 commit into from Aug 16, 2014

Conversation

pagameba
Copy link
Member

When using a source which has to parse data, it is possible for the source to change before the map has called loadFeatures, triggering the assertion in debug mode and failing entirely otherwise. This proposes to remove the assertion and simply return if resolution_ is not defined.

An alternate approach I considered was to delay registering for the change event on the origin source until the first time loadFeatures is called, but this seemed simpler and safer.

@pagameba pagameba added this to the v3.0.0 milestone Aug 16, 2014
@pagameba pagameba added the bug label Aug 16, 2014
@pagameba
Copy link
Member Author

Can this be included in 3.0?

@ahocevar
Copy link
Member

Looks good to me. Please merge.

pagameba added a commit that referenced this pull request Aug 16, 2014
Return rather than fail if resolution is not defined
@pagameba pagameba merged commit 1fc620b into openlayers:master Aug 16, 2014
@pagameba pagameba deleted the cluster-fix branch August 16, 2014 23:26
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.

None yet

2 participants