Paths outside paper's limits
Fufusulier opened this issue · 0 comments
Hello,
I'm having an issue using this library when the paths are outside the paper's size ( x < 0, x > paper.width, y < 0, y > paper.width ). I'm drawing states and airports and the view box used to display all of them is quite large:
var box = {
x: 942100.7078883117,
y: -5414446.826592057,
width: 6794177.096055372,
height: 4472720.386593419
} ;
I don't know wheither the problem occurs because I'm using the library in a wrong way or not. I have tried to adapt the code but I can't have the behavior I want. The modified file is js/raphael.pan-zoom.custom.js.
My project is available at https://www.dropbox.com/s/56itwkh2b8pse9t/raphael-map-v1.zip. It needs to run on a web server because it loads local files. File to launch: lssip_test.html
Could you have a look?
Thank you.