mapbox / mapbox/mapnik-pool

Support pool without XML

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.