-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add new cacheSize option to ol.source #4805
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
Conversation
be48e37
to
6877468
Compare
I'm wondering if the tile cache should be per-map instead of per-source. Opinions? |
Is there any plan to merge it to dist version? Actually usage of RAM in firefox is unaceptable (especially on older PC's) or there is any "newer" way to solve caching size (without rebuilding whole ol) |
After doing bit more research, I think it is reasonable to continue with the approach you proposed here @fredj. An improvement for another pull request would be to completely disable the tile cache for sources that are known to send sensible cache headers, because the browser cache properly handles them. I did some testing with OSM, and I didn't notice any visual performance penalties with a disabled tile cache. |
ok, I will finish this PR |
b220114
to
dd960b6
Compare
thanks for any review |
@fredj Is it added to |
Yes, it has been added to |
Thanks @fredj. Two minor comments:
Both comments can also be addressed in separate pull requests, but if you're still at it, you might want to address them here. It's up to you to merge now or after making these changes 😄. |
It's already
Yes, I will add the option to |
I was just wondering if |
ok, got it. Now that we have a simple way to change this value what about removing |
👍 - with an upgrade note. |
Option added to: - olx.source.BingMapsOptions - olx.source.MapQuestOptions - olx.source.OSMOptions - olx.source.StamenOptions - olx.source.TileArcGISRestOptions - olx.source.TileImageOptions - olx.source.TileJSONOptions - olx.source.TileWMSOptions - olx.source.VectorTileOptions - olx.source.XYZOptions - olx.source.WMTSOptions - olx.source.ZoomifyOptions
Add new cacheSize option to ol.source
Great work, thanks @fredj. |
Fixes #4702
Option added to:
All sources except vector, static image and single image