2023-07-26 09:06:57 +03:00
|
|
|
# Connection keep alive timeout [default: 75]
|
|
|
|
keep_alive: 75
|
|
|
|
|
|
|
|
# The socket address to bind [default: 0.0.0.0:3000]
|
|
|
|
listen_addresses: '0.0.0.0:3000'
|
|
|
|
|
|
|
|
# Number of web server workers
|
|
|
|
worker_processes: 8
|
|
|
|
|
2023-11-21 11:06:27 +03:00
|
|
|
# see https://maplibre.org/martin/config-file.html
|
2023-07-26 09:06:57 +03:00
|
|
|
|
|
|
|
# postgres:
|
|
|
|
# connection_string: 'postgresql://postgres@localhost:5432/db'
|
|
|
|
# default_srid: 4326
|
|
|
|
# pool_size: 20
|
|
|
|
# max_feature_count: 1000
|
2023-10-22 10:30:18 +03:00
|
|
|
# auto_bounds: skip
|
2023-07-26 09:06:57 +03:00
|
|
|
|
|
|
|
# pmtiles:
|
2023-12-25 08:52:04 +03:00
|
|
|
# dir_cache_size_mb: 100
|
2023-07-26 09:06:57 +03:00
|
|
|
# paths:
|
|
|
|
# - /dir-path
|
|
|
|
# - /path/to/pmtiles.pmtiles
|
2023-12-22 09:01:50 +03:00
|
|
|
# - http://example.org/pmtiles.pmtiles
|
2023-07-26 09:06:57 +03:00
|
|
|
# sources:
|
|
|
|
# pm-src1: /path/to/pmtiles1.pmtiles
|
2023-12-22 09:01:50 +03:00
|
|
|
# pm-web1: http://example.org/pmtiles1.pmtiles
|
2023-09-26 10:41:40 +03:00
|
|
|
|
2023-07-26 09:06:57 +03:00
|
|
|
# mbtiles:
|
|
|
|
# paths:
|
|
|
|
# - /dir-path
|
|
|
|
# - /path/to/mbtiles.mbtiles
|
|
|
|
# sources:
|
|
|
|
# mb-src1: /path/to/mbtiles1.mbtiles
|
Implement dynamic font support `/font/<name>/<start>-<end>` (#755)
This implements dynamic font protobuf generation, allowing users to
request font ranges on the fly, and combining them in any order, e.g.
`Font1,Font2,Font3`, same as with sprites and tiles
This is a first iteration, without any multithreading support. In
theory, this could be done far faster by generating SDFs with multiple
threads.
### Current process
* during init, figure out all glyphs available in each font, and store
them as a bitset
* during request:
* combine requested bitsets to figure out which glyph should come from
which font file
* load those glyphs from files (using a single instance of the freetype
lib)
* convert them to SDFs and package them into a protobuf
---------
Co-authored-by: Lucas <zhangyijunmetro@hotmail.com>
2023-10-28 08:10:48 +03:00
|
|
|
|
2023-12-25 08:52:04 +03:00
|
|
|
# sprites:
|
2023-12-25 08:53:16 +03:00
|
|
|
# paths:
|
|
|
|
# - /path/to/sprites_dir
|
|
|
|
# sources:
|
|
|
|
# sprite1: /path/to/sprites_dir2
|
2023-12-25 08:52:04 +03:00
|
|
|
|
Implement dynamic font support `/font/<name>/<start>-<end>` (#755)
This implements dynamic font protobuf generation, allowing users to
request font ranges on the fly, and combining them in any order, e.g.
`Font1,Font2,Font3`, same as with sprites and tiles
This is a first iteration, without any multithreading support. In
theory, this could be done far faster by generating SDFs with multiple
threads.
### Current process
* during init, figure out all glyphs available in each font, and store
them as a bitset
* during request:
* combine requested bitsets to figure out which glyph should come from
which font file
* load those glyphs from files (using a single instance of the freetype
lib)
* convert them to SDFs and package them into a protobuf
---------
Co-authored-by: Lucas <zhangyijunmetro@hotmail.com>
2023-10-28 08:10:48 +03:00
|
|
|
# fonts:
|
|
|
|
# - /path/to/font/file.ttf
|
|
|
|
# - /path/to/font_dir
|