Support pool without XML
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Hi! I'm working on PostGIS tilelive.js adapter https://github.com/stepankuzmin/tilelive-postgis. When I'm trying to get tiles in parallel I'm getting `TypeError: render: Map currently in use by another thread. Consider using a map pool.` I've tried to set `max_async_connection` as postgis datasource option and setting `threading_mode` with `mapnik.threadingMode.deferred`, but it seems that there is no effect.
Is there any way to create map pool without calling `map.fromString`?
`tilelive@5.12.3`
`mapnik@3.5.14`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no file, test, or entry point. Start by tracing mapnik-pool's map creation path and the use of map.fromString, then determine whether a pool can be created without XML; done means parallel rendering no longer reports that the map is in use by another thread.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100