mapbox / mapnik-pool

manage a pool of mapnik map instances
Other
20 stars 22 forks source link

Support pool without XML #12

Open stepankuzmin opened 7 years ago

stepankuzmin commented 7 years ago

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