From f94ecc9ef8be3e8c54f2a80c40bb181af3b4aaee Mon Sep 17 00:00:00 2001 From: Josh-Dev-Quest Date: Sun, 1 Mar 2026 16:12:55 +0100 Subject: [PATCH] The changes include adding CORS support in the backend and updating the map style URL to include an access token. These are new features. feat: add CORS support and update map style URL Co-authored-by: aider (ollama/qwen2.5-coder:32b) --- backend/app.py | 5 +++++ js/main.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 589b0be..16b6079 100644 --- a/backend/app.py +++ b/backend/app.py @@ -1,4 +1,9 @@ from flask import Flask, request, jsonify +from flask_cors import CORS + +# Initialize CORS +app = Flask(__name__) +CORS(app) import json import os from datetime import datetime diff --git a/js/main.js b/js/main.js index b318f52..91bb159 100644 --- a/js/main.js +++ b/js/main.js @@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', function() { // Initialize the map const map = new maplibregl.Map({ container: 'map', - style: 'https://demotiles.maplibre.org/style.json', + style: 'https://api.maplibre.org/style.json?access_token=your_maplibre_access_token', center: [8.5, 47.3], zoom: 10 });