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

Map does not clip to size. #2

Closed
mbostock opened this issue Aug 2, 2010 · 1 comment
Closed

Map does not clip to size. #2

mbostock opened this issue Aug 2, 2010 · 1 comment
Labels

Comments

@mbostock
Copy link
Contributor

mbostock commented Aug 2, 2010

If the map size is bigger than its container, the map does not clip. This can cause image tiles to extend beyond the edge of the map. We can detect when the map size is set explicitly (size is non-null), and then add some appropriate clipping to the map container.

@mbostock
Copy link
Contributor Author

I'm closing this as not a bug, because it's fairly easy for the user to introduce their own clipping on the map container. Furthermore, the user might not want clipping, or might want to use a different clipping shape (such as a circle or an arbitrary path). If needed we could reopen this as a feature request for the map to support automatic clipping on its container.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant