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
Memory Size and TileCache #4230
Comments
To avoid unload the whole responsibility to the user, maybe we can do the following:
Logistic wise, we are making an effort to align the 2D |
Just so I can get a sense of where things are heading, will moving that revert the newly exposed API for non-geospatial use cases or is the move in name only really? Also, is #4139 going to be in 8.1? |
It's not going to revert the new API. We will have one #4139 is going to be in 8.1. I can publish an alpha release if you are interested in trying it out. |
That would be superb, actually - I've been on the other alpha branch (since I am using the |
@ilan-gold published 8.1.0-alpha.2 |
Thanks! Just so I can know what's coming, is #4232 going to be in 8.1? |
Yes. I'll let you know when the change is in an alpha release. We also need to go through API audit before the official release, which might change some prop names. |
Thanks, that second part is good to know. |
@ilan-gold 8.1.0-alpha.5 is published with built-in support for non-geospatial tiles and cache size in bytes. The documentation on the master branch is up to date. Could you give it a try and let me know if things are working as expected? |
@Pessimistress I already checked out master and gave it a whirl. Ill test out the release tomorrow. I was planning on offering you all a PR with a small example of it, like |
@ilan-gold Love the demo!!! - what is the fully zoomed in resolution??? |
|
@Pessimistress The release worked for me, by the way. |
seamless zooming on 576 Megapixel image, that is quite impressive!
There is a deck.gl-data repo for storing big data sets for other demos. I believe your tiles would be welcome there, as long as they are under permissive license. Or you can set up another similar repo to serve them. |
@ibgreen I used |
Interesting. You may want to mention that in the deck.gl-data README. And also perhaps in the info panel for the demo. I think users will be curious to learn how to make a dataset like this.
I took a look on their site, but couldn't see a LICENSE. If not stated, can you contact them and ask for permission? |
I can reach out, yes. I’ll also add information on the generation of the data from the source. |
I reached out but I also saw this @ibgreen http://lroc.sese.asu.edu/about/terms |
OK, those terms look good.
I noticed in http://lroc.sese.asu.edu/posts/293 that they are using an app called Just a crazy idea, maybe we could make our tile layer compatible with
|
@ibgreen I think writing utilities for that sort of thing would probably be very nice. I use Another thing that I was planning on tackling was writing a |
Maybe the first step is simply to create a short markdown doc, that talks about different tiled formats for deep image zoom (listing the tools available to generate that format, and the resulting file structure, whether format is proprietary etc). This would be a great go-to resource for users who are new to this problem and help establish the It would be cool if we could cover a lot of the available formats just by defining some template strings, that user could supply as a prop. If not, as you say, we could show how to write the tile URL generation functions in the docs, and later maybe even offer a library of such functions. |
You mean a controller with inertia/dampening, so that it scrolls pixel by pixel and keeps scrolling a bit after we release? Yes that is a beautiful feature that we currently miss. Some complications with taking such a PR on the core frameworks :
Obviously, you'd get some help to work through those issues, just as long as you are ready for them. If not, we can always accept a PR for an example as a first step. |
Ok that sounds good for the tiling. Thanks for the direction on the controller - I think it should be within my skill range. |
It looks like the network requests are for the normal
Those tiles don't have the right cors settings, so I don't think we could load them directly. Other notes: the |
In what sense? Is it the case where they can be loaded as images but only "opaquely" so textures can not be created? |
As in trying to call fetch('http://lroc.sese.asu.edu/ptif/zoomify/wac_nearside/TileGroup0/1-0-0.jpg') from a non
|
Zoomify URLs require a TileGroup in addition to a z/x/y mapping, where a TileGroup contains up to 256 tiles. For reference, here's the OpenLayers source: https://github.com/openlayers/openlayers/blob/master/src/ol/source/Zoomify.js |
Target Use case
Hello! I am developing something that looks like it will have off-screen (i.e not visible) custom
BaseTileLayer
s that I would like to have loaded for quick use and I would love to be able to allocate cache size equally and/or have each layer take up a predetermined percentage of the memory.Proposed feature
I'd like if we could implement the
maxCacheSize
of theTileCache
as a function of memory (allowing the user to control a percentage config, perhaps). I see that there is a TODO for it already here so I just wanted to make my use-case known. I am aware that my last PR seems to have opened something of a can of worms as per #4139 (very excited for these improvements, by the way!!!) so I understand if this is not coming for a while (until the API and location of theTileCache
are finalized).The text was updated successfully, but these errors were encountered: