-
Notifications
You must be signed in to change notification settings - Fork 29
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
X-Repeat Images? #11
Comments
You would need to add a new tile provider serving tiles wrapping around 360 |
Okey, so.. The inline defined myProvider.assembleUrl function calls the function ImgcnvPyramid.prototype.tile_filename to know which tile to load, so this is the second thing that I think would need adapting for repeating the image. PanoJS.prototype.positionTiles = function(motion, reset) |
I don't really fully understand what is happening there, but the code in PanoJS.js - the function update: ah I think now I get it, a tile in that context does not mean a fixed tile from the picture, but just a "placeholder" tile that could hold any tile of the image whichever is needed, is that correct? |
Okey, so here is my first [quick&dirty] "patch" (sorry didn't set up myself an IDE for this and I don't know how to create a real patch without one) 1.) in PanoJS.js 2.) in pyramid_imgcnv.js I don't know why but it only works on the right side, so if you scroll out to the right side (negative) the left end of the picture will begin to show again. |
if anybody knows why my modifcation doesn't work as expected, or has an idea to improve it, I would be very happy to read it here. |
Is it possible to have the picture repeated horizontally?
So that if the user scrolls out of the picture to the left the right side of the picture starts to be displayed again? (and vice versa)
If this feature does not exist yet, how would one go about implementing it? Do you think it would be lots of work?
The text was updated successfully, but these errors were encountered: