Comments (9)
Forgot to mention: my tests were conducted with tilelive-mapnik 0.3.2 but I see that also master is affected
from tilelive-mapnik.
See also #14
from tilelive-mapnik.
happy to review a pull request that keeps existing functionality (used by TileMill) but extends the code to have options for more flexible uses.
from tilelive-mapnik.
note: if/as you are working on this - there are a few other locking cache tickets you may or may not be interested in.
from tilelive-mapnik.
There was a pull request from @tokumine which was about having the policy specified by a parameter passed to LockingCache, but I'm afraid the same parameter wasn't accessible from the outside.
from tilelive-mapnik.
I think I'm done with this task, anyway if you add a "LockingCache" label for the issues it'll be easier to look at them next time I'm around :)
from tilelive-mapnik.
The LockingCache removes the item it triggers immediately (and doesn't wait until the timer expires/deletes the timer) because when we wrote it, tilelive-mapnik was mainly used for generating MBTiles files. Since every tile is requested exactly once there is no need to keep them in the cache until they expire. This expectation doesn't hold of course in a setup where you request tiles at random.
from tilelive-mapnik.
So will @rcoup commit be merged or should it be enhanced to expose a parameter (as per #14) ?
from tilelive-mapnik.
see #57 which is viable and will supersede this.
from tilelive-mapnik.
Related Issues (20)
- lockingcache into its own module HOT 2
- Tile images don't reflect changes made to the underlying data
- How to generate @2x png for retina display?
- event loop hangs at end of execution. document close method
- tilelive generates all transparent images when uses pgraster as data source with use_overviews:false
- Closing behavior is buggy
- Cannot load from vectortile source in XML HOT 1
- Unable to disable tile cache, cache is unbounded
- node-mapnik v3.5.15+ does not work on debian
- Insecure dependencies
- can multiple layers be interactive?
- v1.0.0 not on NPM HOT 1
- Randomly occurring PostGIS errors HOT 2
- tilelive-mapnik using an XML string HOT 1
- build environment
- Upgrade node-mapnik and use a less restrictive version pinning (and release a new version)
- autoLoadFonts not using boolean value HOT 4
- Timeout
- TileLive Blank tiles when size is not 256 HOT 1
- it seems like render.js does not pass correct value to map.render() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilelive-mapnik.