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

Generate projection transform function only when requested #6175

Merged
merged 2 commits into from Nov 29, 2016

Conversation

tchandelle
Copy link
Contributor

Fix #6174

transform = transforms[sourceCode][destinationCode];
}
} else {
transform = undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I don't do that here, the builder complains, but I can't figure out why. I'd be interested if someone has an logical explanation.

@ahocevar
Copy link
Member

@tchandelle I took the liberty to simplify the code a bit, which also made the compiler happy. I don't have a logical explanation though, other than that I don't like the compiler, but have learned how to make it behave by trial and error.

@tchandelle
Copy link
Contributor Author

Thanks @ahocevar, it looks better that way.

@ahocevar ahocevar merged commit 7946287 into openlayers:master Nov 29, 2016
@tchandelle tchandelle deleted the projection-perf branch November 29, 2016 12:23
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