terrastories icon indicating copy to clipboard operation
terrastories copied to clipboard

[WIP] Use pmtiles with maplibre / streamlined dev & install setup

Open rudokemper opened this issue 1 year ago • 1 comments

Submitting this as a PR so I can leave comments.

rudokemper avatar Dec 27 '23 16:12 rudokemper

When running bin/setup on this branch for the first time (without any pre-existing Docker services or changes to the files), I get some CSP and fetch errors relating to the map in React and the CMS pages that have a map embed:

Refused to connect to 'http://rudodev:3000/map/terrastories-map/style.json' because it violates the following Content Security Policy directive: "connect-src 'self' https: mapbox: http://localhost:8080 http://localhost:3000 http://localhost:3035 ws://localhost:3035".
Map.jsx:124 Refused to connect to 'http://rudodev:3000/map/terrastories-map/style.json' because it violates the document's Content Security Policy.
Map.jsx:124 Error: Failed to fetch
    at maplibre-gl.js:31:1

rudokemper avatar Dec 27 '23 16:12 rudokemper