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

add a buffer to fitSelectedRoutes so pins don't get cut off #74

Open
burritojustice opened this issue Apr 10, 2017 · 1 comment
Open

Comments

@burritojustice
Copy link

When a center and zoom level are not specified for a map, it results in a very snug fit and the pins end up getting cut off. (Might be LRM's fitSelectedRoutes?)

Would be nice if we could add padding to whatever fitbounding is going on.

@hanbyul-here
Copy link
Collaborator

Making this as an official api of lrm-mapzen will take some consideration and time. Meanwhile, I added the example of how to do this here : https://github.com/mapzen/lrm-mapzen/blob/gh-pages/fit-routes-with-padding.html

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

No branches or pull requests

2 participants