Skip to content

Repository files navigation

last_commit e35c39f2d22517c63b16b59c666e03b82764ce66

Basemap

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.

Overview

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.

Live URLs

Asset URL
Demo https://www.ogis.org/basemap/
Style https://www.ogis.org/basemap/style.json
Glyphs https://www.ogis.org/basemap/fonts/{fontstack}/{range}.pbf
Sprite https://www.ogis.org/basemap/sprite
Icons https://www.ogis.org/basemap/icons/{name}.svg
Tiles https://tiles.openfreemap.org/planet

Usage

MapLibre GL JS

const map = new maplibregl.Map({
  container: 'map',
  style: 'https://www.ogis.org/basemap/style.json'
});

Assets in a custom style

{
  "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"
}

Remixing

Edit the vendored layer styles under vendor/openmaptiles/layers/*/style.json, then rebuild:

./scripts/build.sh

See docs/3.remixing.md for details.

Attribution and Licences

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

Further Reading

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages