From 5a1831a1e7f0b3c51d6e23e4c1237474aeccdc0b Mon Sep 17 00:00:00 2001 From: tomasz t Date: Sun, 27 Mar 2022 03:00:36 +0200 Subject: [PATCH] changed data urls to be absolute --- .github/workflows/deploy_to_dev.yaml | 1 + src/map_style.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_dev.yaml b/.github/workflows/deploy_to_dev.yaml index 987360f..f5544de 100644 --- a/.github/workflows/deploy_to_dev.yaml +++ b/.github/workflows/deploy_to_dev.yaml @@ -42,6 +42,7 @@ jobs: --exclude 'requirements.txt' --exclude 'LICENSE' --exclude 'README.md' --exclude '*.ods' --exclude '*.csv' \ --quiet /home/${{ secrets.SSH_USER }}/aed-mapa-dev/ /home/${{ secrets.SSH_USER }}/temp_deploy_dev/ sed -i "s/<< oauth_consumer_key >>/$OAUTH_CONSUMER_KEY/;s/<< oauth_secret >>/$OAUTH_SECRET/;s|<< url >>|$OSM_API_URL|" /home/${{ secrets.SSH_USER }}/temp_deploy_dev/src/osm-integration.js + sed -i "s|https://aed.openstreetmap.org.pl/|https://aed.openstreetmap.org.pl/dev/|g" /home/${{ secrets.SSH_USER }}/temp_deploy_dev/src/map_style.json rsync --update --recursive --delete \ --exclude '*.py' --exclude '*.geojson' --exclude '.git*' --exclude 'aed_poland_metadata.json' \ --exclude 'requirements.txt' --exclude 'LICENSE' --exclude 'README.md' --exclude '*.ods' --exclude '*.csv' \ diff --git a/src/map_style.json b/src/map_style.json index b9d05e3..7a7fc9d 100644 --- a/src/map_style.json +++ b/src/map_style.json @@ -21,14 +21,14 @@ }, "aed-locations": { "type": "geojson", - "data": "../aed_poland.geojson", + "data": "https://aed.openstreetmap.org.pl/aed_poland.geojson", "cluster": true, "clusterRadius": 32, "maxzoom": 12 } }, "glyphs": "https://fonts.openmaptiles.org/{fontstack}/{range}.pbf", - "sprite": "https://aed.openstreetmap.org.pl/dev/src/sprites/aed-style", + "sprite": "https://aed.openstreetmap.org.pl/src/sprites/aed-style", "layers": [{ "id": "background", "type": "raster",