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 the size of image enlarge twice in coordsFromBbox #28

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

Conversation

jingsam
Copy link

@jingsam jingsam commented Jul 19, 2016

No description provided.

@bsudekum
Copy link

Thanks for checking this out @jingsam. I'd like like to keep tileSize as an optional parameter. Can we check for tileSize and if it's not present, use 256?

@jingsam
Copy link
Author

jingsam commented Jul 19, 2016

OK, already done

@jingsam
Copy link
Author

jingsam commented Jul 20, 2016

Fixed more bugs. @bsudekum

@jingsam
Copy link
Author

jingsam commented Jul 20, 2016

Pokémon GO! I caught six bugs today in abaculus 🎱

@jingsam
Copy link
Author

jingsam commented Jul 22, 2016

@bsudekum would you mind to merge these PRs and publish a new version to npm?

@bsudekum
Copy link

Also cc @tmcw @camilleanne. There are a decent amount of changes here.

var origin = sm.px([center.x, center.y], z);
center.x = origin[0];
center.y = origin[1];
center.w = Math.round(center.w * s);
center.h = Math.round(center.h * s);

if (center.w >= limit || center.h >= limit) throw new Error('Desired image is too large.');

Choose a reason for hiding this comment

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

Why is limit and this check being removed?

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Throw errors in functions is not a good practice, put it in callback may be better

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.

2 participants