mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
1a8e7c89a4
PMTiles is a web-optimized format, allowing the actual file to be read with HTTP range requests. Supporting this use case instantly allows Martin to function as a lambda executable accessing PMTiles, but without any significant investment into devops or hosting large file. PMTiles config now also allows `http` and `https` protocol. ``` # Publish PMTiles files pmtiles: paths: # specific pmtiles file will be published as mypmtiles source # (use last portion of the URL without extension) - http://example.org/path/to/mypmtiles.pmtiles sources: # named source matching source name to a single file pm-src1: https://example.org/path/to/some_pmtiles.pmtiles ``` fixes #884 --------- Co-authored-by: Kyle Slugg-Urbino <35903887+kyleslugg@users.noreply.github.com> |
||
---|---|---|
.. | ||
.sqlx | ||
src | ||
tests | ||
.env | ||
Cargo.toml | ||
README.md |
mbtiles
A library to help tile servers like Martin work with MBTiles files. When using as a lib, you may want to disable default features (i.e. the unused "cli" feature).
This crate also has a small utility that allows users to interact with the *.mbtiles
files from the command line. See tools documentation for more information.
Development
Any changes to SQL commands require running of just prepare-sqlite
. This will install cargo sqlx
command if it is not already installed, and update the ./sqlx-data.json
file.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.