From 0de304ca3e6fb475ad658cc9d49fc9dc78734c91 Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Mon, 24 Jun 2024 07:09:25 +0200 Subject: [PATCH] Add Versatiles Colorful as example style (#908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are great looking permissively licensed styles maintained by a passionate open source communities. I think they should be included in the example styles. 🙂 The thumbnails were uploaded to GitHub and should be available pretty much forever, I chose to triple the pixel density because the other thumbnails look bad on my high res monitor. Screenshot 2024-06-22 at 12 25 56 --- package.json | 3 +- src/config/styles.json | 70 +++++++++++++++++++++++------------------- 2 files changed, 40 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index 35ef87d9..412e0850 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "lint": "eslint ./src ./cypress --ext ts,tsx,js,jsx --report-unused-disable-directives --max-warnings 0", "test": "cypress run", "cy:open": "cypress open", - "lint-css": "stylelint \"src/styles/*.scss\"" + "lint-css": "stylelint \"src/styles/*.scss\"", + "sort-styles": "jq 'sort_by(.id)' src/config/styles.json > tmp.json && mv tmp.json src/config/styles.json" }, "repository": { "type": "git", diff --git a/src/config/styles.json b/src/config/styles.json index 230eacf7..99515e2e 100644 --- a/src/config/styles.json +++ b/src/config/styles.json @@ -1,16 +1,4 @@ [ - { - "id": "osm-liberty", - "title": "OSM Liberty", - "url": "https://maputnik.github.io/osm-liberty/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/osm-liberty.png" - }, - { - "id": "maptiler-basic-gl-style", - "title": "Maptiler Basic", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/klokantech-basic-gl-style@v1.10/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/klokantech-basic.png" - }, { "id": "dark-matter", "title": "Dark Matter", @@ -18,16 +6,16 @@ "thumbnail": "https://maputnik.github.io/thumbnails/dark-matter.png" }, { - "id": "positron", - "title": "Positron", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/positron-gl-style@v1.9/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/positron.png" + "id": "empty-style", + "title": "Empty Style", + "url": "https://cdn.jsdelivr.net/gh/maputnik/editor@9cf74ca405d2be0608b57db8109cf3a6af5b9f49/src/config/empty-style.json", + "thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAQAAAAHDYbIAAAAEUlEQVR42mP8/58BDhiJ4wAA974H/U5Xe1oAAAAASUVORK5CYII=" }, { - "id": "osm-bright", - "title": "OSM Bright", - "url": "https://cdn.jsdelivr.net/gh/openmaptiles/osm-bright-gl-style@v1.11/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/osm-bright.png" + "id": "maptiler-basic-gl-style", + "title": "Maptiler Basic", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/klokantech-basic-gl-style@v1.10/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/klokantech-basic.png" }, { "id": "maptiler-toner-gl-style", @@ -35,6 +23,18 @@ "url": "https://cdn.jsdelivr.net/gh/openmaptiles/toner-gl-style@v1.0/style.json", "thumbnail": "https://maputnik.github.io/thumbnails/toner.png" }, + { + "id": "os-zoomstack-light", + "title": "Zoomstack Light", + "url": "https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/styles/open-zoomstack-light/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/os-zoomstack-light.png" + }, + { + "id": "os-zoomstack-night", + "title": "Zoomstack Night", + "url": "https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/styles/open-zoomstack-night/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/os-zoomstack-night.png" + }, { "id": "os-zoomstack-outdoor", "title": "Zoomstack Outdoor", @@ -48,21 +48,27 @@ "thumbnail": "https://maputnik.github.io/thumbnails/os-zoomstack-road.png" }, { - "id": "os-zoomstack-light", - "title": "Zoomstack Light", - "url": "https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/styles/open-zoomstack-light/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/os-zoomstack-light.png" + "id": "osm-bright", + "title": "OSM Bright", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/osm-bright-gl-style@v1.11/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/osm-bright.png" }, { - "id": "os-zoomstack-night", - "title": "Zoomstack Night", - "url": "https://s3-eu-west-1.amazonaws.com/tiles.os.uk/v2/styles/open-zoomstack-night/style.json", - "thumbnail": "https://maputnik.github.io/thumbnails/os-zoomstack-night.png" + "id": "osm-liberty", + "title": "OSM Liberty", + "url": "https://maputnik.github.io/osm-liberty/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/osm-liberty.png" }, { - "id": "empty-style", - "title": "Empty Style", - "url": "https://cdn.jsdelivr.net/gh/maputnik/editor@9cf74ca405d2be0608b57db8109cf3a6af5b9f49/src/config/empty-style.json", - "thumbnail": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAQAAAAHDYbIAAAAEUlEQVR42mP8/58BDhiJ4wAA974H/U5Xe1oAAAAASUVORK5CYII=" + "id": "positron", + "title": "Positron", + "url": "https://cdn.jsdelivr.net/gh/openmaptiles/positron-gl-style@v1.9/style.json", + "thumbnail": "https://maputnik.github.io/thumbnails/positron.png" + }, + { + "id": "versatiles-colorful", + "title": "Versatiles Colorful", + "url": "https://tiles.versatiles.org/assets/styles/colorful.json", + "thumbnail": "https://github.com/maplibre/maputnik/assets/649392/6cd69818-c541-46e4-a920-65fb4f654931" } ]