mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
9e5ed2fc02
Adds a new [.mbtiles](https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md) backend, without the grid support. Uses extensive tile content detection, i.e. if the content is gzipped, png, jpeg, gif, webp. From CLI, can be as easy as adding a path to a directory that contains a .mbtiles file (works just like pmtiles support) ```bash # All *.mbtiles files in this dir will be published. # The filename will be used as the source ID martin ./tests/fixtures ``` From configuration file, the path can be specified in a number of ways (same as pmtiles) ```yaml mbtiles: paths: # scan this whole dir, matching all *.mbtiles files - /dir-path # specific mbtiles file will be published as mbtiles2 source - /path/to/mbtiles2.mbtiles sources: # named source matching source name to a single file pm-src1: /tmp/mbtiles.mbtiles # named source, where the filename is explicitly set. This way we will be able to add more options later pm-src2: path: /tmp/mbtiles.mbtiles ``` Fixes #494
90 lines
1.5 KiB
Plaintext
90 lines
1.5 KiB
Plaintext
=============================================================
|
|
layer: 0
|
|
name: cities
|
|
version: 2
|
|
extent: 4096
|
|
feature: 0
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(-77,3044)
|
|
properties:
|
|
name="Kolkata"
|
|
feature: 1
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(640,2628)
|
|
properties:
|
|
name="Chengdu"
|
|
feature: 2
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(478,3464)
|
|
properties:
|
|
name="Bangkok"
|
|
feature: 3
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(630,4037)
|
|
properties:
|
|
name="Singapore"
|
|
feature: 4
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1200,2110)
|
|
properties:
|
|
name="Beijing"
|
|
feature: 5
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1100,3054)
|
|
properties:
|
|
name="Hong Kong"
|
|
feature: 6
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1430,2599)
|
|
properties:
|
|
name="Shanghai"
|
|
feature: 7
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1436,2918)
|
|
properties:
|
|
name="Taipei"
|
|
feature: 8
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1683,2248)
|
|
properties:
|
|
name="Seoul"
|
|
feature: 9
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(1409,3423)
|
|
properties:
|
|
name="Manila"
|
|
feature: 10
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(2068,2407)
|
|
properties:
|
|
name="Ōsaka"
|
|
feature: 11
|
|
id: (none)
|
|
geomtype: point
|
|
geometry:
|
|
POINT(2264,2355)
|
|
properties:
|
|
name="Tokyo"
|