We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to clip the SVG at the edges to basically prevent scrolling it beyond view?
#37 deals with this, but I couldn't quite put it all together.
beforePan(oldpan, newpan) { return { x: Math.max(newpan.x, 0), y: Math.max(newpan.y, 0) }; }
Comes close and limits top left, but how can I also limit bottom right?
Here's an example: http://jsfiddle.net/ha2t7et2/1/
Basically, I want the map to always be in view.
The text was updated successfully, but these errors were encountered:
An example is available here.
Sorry, something went wrong.
No branches or pull requests
Is there a way to clip the SVG at the edges to basically prevent scrolling it beyond view?
#37 deals with this, but I couldn't quite put it all together.
Comes close and limits top left, but how can I also limit bottom right?
Here's an example: http://jsfiddle.net/ha2t7et2/1/
Basically, I want the map to always be in view.
The text was updated successfully, but these errors were encountered: