From ba601eba510e5f3ea6f9a63acb1fe933090fbb1f Mon Sep 17 00:00:00 2001 From: Mark Baggett Date: Thu, 11 Apr 2024 08:25:40 -0400 Subject: [PATCH] Add Map. --- config/canopy.json | 18 +++++++++++++++++- content/_meta.json | 4 ++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/config/canopy.json b/config/canopy.json index f286d3c22..ef7562245 100644 --- a/config/canopy.json +++ b/config/canopy.json @@ -9,5 +9,21 @@ "summary": { "none": ["Images for Study and Struggle"] }, - "label": { "none": ["Abolition Now"] } + "label": { "none": ["Abolition Now"] }, + "map": { + "defaultBounds": [[51.505, -0.09]], + "enabled": true, + "icon": { + "iconUrl": "images/marker-icon.png", + "iconSize": [24, 36], + "iconAnchor": [12, 36] + }, + "tileLayers": [ + { + "name": "OpenStreetMap", + "url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", + "attribution": "© OpenStreetMap contributors" + } + ] + } } diff --git a/content/_meta.json b/content/_meta.json index f5b120e73..74836b1bc 100644 --- a/content/_meta.json +++ b/content/_meta.json @@ -7,6 +7,10 @@ "path": "/metadata", "text": "Metadata" }, + { + "path": "/map", + "text": "Map" + }, { "path": "/guides", "text": "Study Guides"