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

Fix extraneous bounds #7068

Merged
merged 1 commit into from
Apr 28, 2016
Merged

Conversation

panda01
Copy link
Contributor

@panda01 panda01 commented Apr 26, 2016

Simply wrote code to check and make sure the bounds are in a particular range, and adjust them if not.

Closes #6794.

@panda01 panda01 added bug Fixes for quality problems that affect the customer experience P2 labels Apr 26, 2016
@@ -232,17 +232,25 @@ export default function MapFactory(Private) {
// TODO: Different drawTypes need differ info. Need a switch on the object creation
let bounds = e.layer.getBounds();

let SElng = bounds.getSouthEast().lng;
if (SElng > 180 ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the space to make linter happy.

@panda01 panda01 force-pushed the fix/extraneous-bounds branch 2 times, most recently from ea59130 to 822ce39 Compare April 27, 2016 15:57
@tylersmalley
Copy link
Contributor

LGTM

@tylersmalley tylersmalley assigned panda01 and unassigned tylersmalley Apr 27, 2016
@panda01
Copy link
Contributor Author

panda01 commented Apr 28, 2016

I tried to find a way to make this prettier, not very much a fan of the code. But my search has been fruitless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v5.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants