Commit d104a0ad authored by Paul Rougieux's avatar Paul Rougieux
Browse files

Warning about direct vieweing pages that need leaflet

parent b1eee096
Loading
Loading
Loading
Loading
Loading
+17 −0
Changes for docs/synchronization_from_server_to_laptop.md: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -30,3 +30,20 @@ outputs, but skips the venvs and data:
    rsync -avm --filter=':- .gitignore' --exclude='.git/' \
      uhoh:/home/paul/rp/uhoh/analyse_open_data/ \
      ~/rp/uhoh/analyse_open_data/

## Viewing the pages: serve them over HTTP

Do not open the HTML files directly (`file://...`). From a local file the
browser sends no `Referer` header, and the OpenStreetMap tile server then
returns its "access blocked / tile usage policy" image instead of the map.
Serve the folder with a local web server instead:

    python3 -m http.server 8000 -d ~/rp/uhoh/analyse_open_data/events/20261021

Then open:

- http://localhost:8000/impl_sonnet/output/index.html
- http://localhost:8000/impl_opus/output/index.html

Once the pages are on GitLab Pages, the maps work there too.
Switching to CARTO tiles is no alternative: they now require an API key.