-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a top level config parameter -- the size of cache memory (in MB) to use for caching tiles and PMT directories, defaulting to 512, and 0 to disable. This also removes the `pmtiles.dir_cache_size_mb` parameter (it will be ignored, but will give a warning) ``` cache_size_mb: 512 ``` The new cache will contain all tiles as provided by the source. So if PostgreSQL returns a non-compressed tile, the cache will contain the uncompressed variant, and will be compressed for each response. This will be fixed in the later releases. Note that fonts and sprites are not cached at this time, and are still a TODO.
- Loading branch information
Showing
32 changed files
with
417 additions
and
225 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ lints.workspace = true | |
|
||
[package] | ||
name = "martin-tile-utils" | ||
version = "0.4.0" | ||
version = "0.4.1" | ||
authors = ["Yuri Astrakhan <[email protected]>", "MapLibre contributors"] | ||
description = "Utilites to help with map tile processing, such as type and compression detection. Used by the MapLibre's Martin tile server." | ||
keywords = ["maps", "tiles", "mvt", "tileserver"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ lints.workspace = true | |
[package] | ||
name = "martin" | ||
# Once the release is published with the hash, update https://github.com/maplibre/homebrew-martin | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
authors = ["Stepan Kuzmin <[email protected]>", "Yuri Astrakhan <[email protected]>", "MapLibre contributors"] | ||
description = "Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support" | ||
keywords = ["maps", "tiles", "mbtiles", "pmtiles", "postgis"] | ||
|
@@ -62,7 +62,7 @@ harness = false | |
default = ["fonts", "mbtiles", "pmtiles", "postgres", "sprites"] | ||
fonts = ["dep:bit-set", "dep:pbf_font_tools"] | ||
mbtiles = [] | ||
pmtiles = ["dep:moka"] | ||
pmtiles = [] | ||
postgres = ["dep:deadpool-postgres", "dep:json-patch", "dep:postgis", "dep:postgres", "dep:postgres-protocol", "dep:semver", "dep:tokio-postgres-rustls"] | ||
sprites = ["dep:spreet"] | ||
bless-tests = [] | ||
|
@@ -85,7 +85,7 @@ json-patch = { workspace = true, optional = true } | |
log.workspace = true | ||
martin-tile-utils.workspace = true | ||
mbtiles.workspace = true | ||
moka = { workspace = true, optional = true } | ||
moka.workspace = true | ||
num_cpus.workspace = true | ||
pbf_font_tools = { workspace = true, optional = true } | ||
pmtiles.workspace = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.