martin-cp doc source param #1241
-
Hi team, I think there's something wrong with the source: https://maplibre.org/martin/martin-cp.html I have 4 tables in postgres (created by
martin-cp --output-file tileset.mbtiles \
--mbtiles-type normalized \
"--bbox=-180,-90,180,90" \
--min-zoom 0 \
--max-zoom 10 \
--source source_name \
postgresql://postgres@localhost:5432/db |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Trying to create a public repo to illustrate something I struggle to do, I wondered why |
Beta Was this translation helpful? Give feedback.
-
All depends on your usecase, as always. If you are building "base map" - use something like planetiler to pre-generate it into an mbtiles/pmtiles file. Generating tiles on the fly for the base map could be expensive (slow). Think of it as a tile cache. Martin can serve that file - no postgres needed. If you are generating custom data on top of a base map, e.g. taxi info like in the demo, martin could get that data from a database, possibly even with custom parameters (like in the demo). If you are serving tiles and need some extras - like fonts or sprites - martin can handle that for you too. |
Beta Was this translation helpful? Give feedback.
martin-cp
can take anysource
as a parameter, which includes a combined comma-separated source as well. Do note that the default osm2pgsql output may not be what you want - take a look at the planetiler tool to generate your tiles directly from OSM dump in a much better schema and much faster.