| last_commit | e35c39f2d22517c63b16b59c666e03b82764ce66 |
|---|
A self-hosted MapLibre GL style: the OpenMapTiles "OSM" vector style (v3.16) repointed at OpenFreeMap's worldwide vector tiles, with all fonts, sprites and icons served from GitHub Pages.
Note
Canonical host is www.ogis.org — never use the org's legacy *.github.io Pages host. It 301-redirects to www.ogis.org, and the redirect hop breaks CORS in browsers, so every published URL points at www.ogis.org directly.
Basemap vendors the OpenMapTiles "OSM" vector style (v3.16 — the vector equivalent of the official openstreetmap-carto raster) and repoints it at OpenFreeMap's worldwide, free OpenMapTiles-schema vector tiles. All fonts, sprites and icons are self-hosted on GitHub Pages with open CORS, so anyone can use the style or its assets directly.
The style is built from vendored upstream sources with the same docker tooling OpenMapTiles uses (openmaptiles-tools:7.2), then rewritten to point at the published URLs. See docs/2.build.md for the pipeline.
const map = new maplibregl.Map({
container: 'map',
style: 'https://www.ogis.org/basemap/style.json'
});{
"version": 8,
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://tiles.openfreemap.org/planet"
}
},
"glyphs": "https://www.ogis.org/basemap/fonts/{fontstack}/{range}.pbf",
"sprite": "https://www.ogis.org/basemap/sprite"
}Edit the vendored layer styles under vendor/openmaptiles/layers/*/style.json, then rebuild:
./scripts/build.shSee docs/3.remixing.md for details.
Attribution is baked into the published style: OpenFreeMap · © OpenMapTiles · Data from OpenStreetMap. Keep it when remixing.
| Component | Licence |
|---|---|
| Style code | BSD-3-Clause |
| Design and cartography | CC-BY-4.0 (OpenMapTiles) |
| Fonts (Open Sans, Noto Sans) | Open licences |
| Tile data | ODbL (OpenStreetMap) |
| OpenFreeMap service | MIT |