aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/public/maps/styles
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-06-24 13:29:50 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-06-24 13:29:50 +0200
commit894e67863dbb89a4819e825fcdf7117021082b2a (patch)
treefb544ef7fa99ff86489717e793595f503783bb72 /src/frontend/public/maps/styles
parent7dd9ea97a2f34a35e80c28d59d046f839eb6c60b (diff)
Replace leaflet for maplibre, use react-router in framework mode
Diffstat (limited to 'src/frontend/public/maps/styles')
-rw-r--r--src/frontend/public/maps/styles/carto-dark.json33
-rw-r--r--src/frontend/public/maps/styles/carto-light.json33
2 files changed, 66 insertions, 0 deletions
diff --git a/src/frontend/public/maps/styles/carto-dark.json b/src/frontend/public/maps/styles/carto-dark.json
new file mode 100644
index 0000000..b3af6e7
--- /dev/null
+++ b/src/frontend/public/maps/styles/carto-dark.json
@@ -0,0 +1,33 @@
+{
+ "version": 8,
+ "name": "Light",
+ "sources": {
+ "carto": {
+ "type": "raster",
+ "tiles": ["https://d.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png"],
+ "attribution": "&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors, &copy; <a href=\"https://carto.com/attributions\">CARTO</a>",
+ "tileSize": 256,
+ "maxzoom": 22,
+ "minzoom": 0
+ }
+ },
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "#f0f0f0"
+ }
+ },
+ {
+ "id": "raster",
+ "type": "raster",
+ "source": "carto",
+ "minzoom": 0,
+ "maxzoom": 22
+ }
+
+ ],
+ "sprite": "/maps/spritesheet/sprite",
+ "glyphs": "/maps/fonts/{fontstack}/{range}.pbf"
+}
diff --git a/src/frontend/public/maps/styles/carto-light.json b/src/frontend/public/maps/styles/carto-light.json
new file mode 100644
index 0000000..957386e
--- /dev/null
+++ b/src/frontend/public/maps/styles/carto-light.json
@@ -0,0 +1,33 @@
+{
+ "version": 8,
+ "name": "Light",
+ "sources": {
+ "carto": {
+ "type": "raster",
+ "tiles": ["https://d.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png"],
+ "attribution": "&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors, &copy; <a href=\"https://carto.com/attributions\">CARTO</a>",
+ "tileSize": 256,
+ "maxzoom": 22,
+ "minzoom": 0
+ }
+ },
+ "layers": [
+ {
+ "id": "background",
+ "type": "background",
+ "paint": {
+ "background-color": "#f0f0f0"
+ }
+ },
+ {
+ "id": "raster",
+ "type": "raster",
+ "source": "carto",
+ "minzoom": 0,
+ "maxzoom": 22
+ }
+
+ ],
+ "sprite": "/maps/spritesheet/sprite",
+ "glyphs": "/maps/fonts/{fontstack}/{range}.pbf"
+}