-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for checking this out @jingsam. I'd like like to keep tileSize as an optional parameter. Can we check for |
OK, already done |
Fixed more bugs. @bsudekum |
Pokémon GO! I caught six bugs today in abaculus 🎱 |
@bsudekum would you mind to merge these PRs and publish a new version to npm? |
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.'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
No description provided.