Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: 'Validate .md files (use "just fmt-md" to fix)'
uses: DavidAnson/markdownlint-cli2-action@v19
uses: DavidAnson/markdownlint-cli2-action@v20
with:
config: '.github/files/config.markdownlint-cli2.jsonc'

Expand Down
4 changes: 2 additions & 2 deletions docs/src/run-with-nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
- ./pg_data:/var/lib/postgresql/data
```

You can find an example NGINX configuration file [here](https://github.com/maplibre/martin/blob/main/demo/frontend/nginx.conf).
You can [find an example NGINX configuration file here](https://github.com/maplibre/martin/blob/main/demo/frontend/nginx.conf).

### Rewriting URLs

Expand Down Expand Up @@ -91,4 +91,4 @@ http {
}
```

You can find an example NGINX configuration file [here](https://github.com/maplibre/martin/blob/main/demo/frontend/nginx.conf).
You can [find an example NGINX configuration file here](https://github.com/maplibre/martin/blob/main/demo/frontend/nginx.conf).
13 changes: 6 additions & 7 deletions docs/src/using-with-mapbox.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
## Using with Mapbox

[Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) is a JavaScript library for interactive, customizable vector maps
on the web. Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so using Martin with Mapbox is similar to
MapLibre described [here](using-with-maplibre.md). Mapbox GL JS can
accept [MVT vector tiles](https://github.com/mapbox/vector-tile-spec) generated by Martin, and
applies [a style](https://maplibre.org/maplibre-style-spec/) to them to draw a map using Web GL.
[Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) is a JavaScript library for interactive, customizable vector maps on the web.
Mapbox GL JS v1.x was open source, and it was forked as MapLibre, so [using Martin with Mapbox is similar to MapLibre](using-with-maplibre.md).
Mapbox GL JS can accept [MVT vector tiles](https://github.com/mapbox/vector-tile-spec) generated by Martin, and applies [a style](https://maplibre.org/maplibre-style-spec/) to them to draw a map using Web GL.

You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL. You should also specify
a `source-layer` property. For [Table Sources](sources-pg-tables.md) it is `{table_name}` by default.
You can add a layer to the map and specify Martin TileJSON endpoint as a vector source URL.
You should also specify a `source-layer` property.
For [Table Sources](sources-pg-tables.md) it is `{table_name}` by default.

```js
map.addLayer({
Expand Down
Loading