mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 04:41:46 +03:00
fix font docs
This commit is contained in:
parent
163b44982a
commit
127c989f37
24
README.md
24
README.md
@ -86,20 +86,22 @@ docker run -p 3000:3000 \
|
|||||||
```
|
```
|
||||||
|
|
||||||
## API
|
## API
|
||||||
_See [API documentation](https://maplibre.org/martin/40-using.html) in the Martin book._
|
_See [API documentation](https://maplibre.org/martin/40-using-endpoints.html) in the Martin book._
|
||||||
|
|
||||||
Martin data is available via the HTTP `GET` endpoints:
|
Martin data is available via the HTTP `GET` endpoints:
|
||||||
|
|
||||||
| URL | Description |
|
| URL | Description |
|
||||||
|----------------------------------------|-----------------------------------------------|
|
|-----------------------------------------|-----------------------------------------------|
|
||||||
| `/` | Status text, that will eventually show web UI |
|
| `/` | Status text, that will eventually show web UI |
|
||||||
| `/catalog` | List of all sources |
|
| `/catalog` | List of all sources |
|
||||||
| `/{sourceID}` | Source TileJSON |
|
| `/{sourceID}` | Source TileJSON |
|
||||||
| `/{sourceID}/{z}/{x}/{y}` | Map Tiles |
|
| `/{sourceID}/{z}/{x}/{y}` | Map Tiles |
|
||||||
| `/{source1},...,{sourceN}` | Composite Source TileJSON |
|
| `/{source1},…,{sourceN}` | Composite Source TileJSON |
|
||||||
| `/{source1},...,{sourceN}/{z}/{x}/{y}` | Composite Source Tiles |
|
| `/{source1},…,{sourceN}/{z}/{x}/{y}` | Composite Source Tiles |
|
||||||
| `/sprite/{spriteID}[@2x].{json,png}` | Sprites (low and high DPI, index/png) |
|
| `/sprite/{spriteID}[@2x].{json,png}` | Sprites (low and high DPI, index/png) |
|
||||||
| `/health` | Martin server health check: returns 200 `OK` |
|
| `/font/{font}/{start}-{end}` | Font source |
|
||||||
|
| `/font/{font1},…,{fontN}/{start}-{end}` | Composite Font source |
|
||||||
|
| `/health` | Martin server health check: returns 200 `OK` |
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
See [Martin book](https://maplibre.org/martin/) for complete documentation.
|
See [Martin book](https://maplibre.org/martin/) for complete documentation.
|
||||||
|
@ -2,16 +2,18 @@
|
|||||||
|
|
||||||
Martin data is available via the HTTP `GET` endpoints:
|
Martin data is available via the HTTP `GET` endpoints:
|
||||||
|
|
||||||
| URL | Description |
|
| URL | Description |
|
||||||
|----------------------------------------|------------------------------------------------|
|
|-----------------------------------------|-----------------------------------------------|
|
||||||
| `/` | Status text, that will eventually show web UI |
|
| `/` | Status text, that will eventually show web UI |
|
||||||
| `/catalog` | [List of all sources](#catalog) |
|
| `/catalog` | [List of all sources](#catalog) |
|
||||||
| `/{sourceID}` | [Source TileJSON](#source-tilejson) |
|
| `/{sourceID}` | [Source TileJSON](#source-tilejson) |
|
||||||
| `/{sourceID}/{z}/{x}/{y}` | Map Tiles |
|
| `/{sourceID}/{z}/{x}/{y}` | Map Tiles |
|
||||||
| `/{source1},...,{sourceN}` | [Composite Source TileJSON](#source-tilejson) |
|
| `/{source1},…,{sourceN}` | [Composite Source TileJSON](#source-tilejson) |
|
||||||
| `/{source1},...,{sourceN}/{z}/{x}/{y}` | [Composite Source Tiles](30-config-file.md) |
|
| `/{source1},…,{sourceN}/{z}/{x}/{y}` | [Composite Source Tiles](30-config-file.md) |
|
||||||
| `/sprite/{spriteID}[@2x].{json,png}` | [Sprite sources](36-sources-spritess.md) |
|
| `/sprite/{spriteID}[@2x].{json,png}` | [Sprite sources](36-sources-spritess.md) |
|
||||||
| `/health` | Martin server health check: returns 200 `OK` |
|
| `/font/{font}/{start}-{end}` | [Font source](#37-sources-fonts.md) |
|
||||||
|
| `/font/{font1},…,{fontN}/{start}-{end}` | [Composite Font source](#37-sources-fonts.md) |
|
||||||
|
| `/health` | Martin server health check: returns 200 `OK` |
|
||||||
|
|
||||||
### Duplicate Source ID
|
### Duplicate Source ID
|
||||||
In case there is more than one source that has the same name, e.g. a PG function is available in two schemas/connections, or a table has more than one geometry columns, sources will be assigned unique IDs such as `/points`, `/points.1`, etc.
|
In case there is more than one source that has the same name, e.g. a PG function is available in two schemas/connections, or a table has more than one geometry columns, sources will be assigned unique IDs such as `/points`, `/points.1`, etc.
|
||||||
@ -43,6 +45,25 @@ curl localhost:3000/catalog | jq
|
|||||||
},
|
},
|
||||||
...
|
...
|
||||||
},
|
},
|
||||||
|
"sprites": {
|
||||||
|
"cool_icons": {
|
||||||
|
"images": [
|
||||||
|
"bicycle",
|
||||||
|
"bear",
|
||||||
|
]
|
||||||
|
},
|
||||||
|
...
|
||||||
|
},
|
||||||
|
"fonts": {
|
||||||
|
"Noto Mono Regular": {
|
||||||
|
"family": "Noto Mono",
|
||||||
|
"style": "Regular",
|
||||||
|
"glyphs": 875,
|
||||||
|
"start": 0,
|
||||||
|
"end": 65533
|
||||||
|
},
|
||||||
|
...
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user