Distribute data with layers instead of data/ dir

This was originally done to make the gitignoring easier, but ended up
being somewhat more complex when trying to include files, so they're
moving out closer to the point of use.
This commit is contained in:
Chandler Swift 2023-07-25 19:12:30 -05:00
parent c74edcb8c0
commit 7957523c3c
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
21 changed files with 49 additions and 51 deletions

View file

@ -2,4 +2,4 @@
# from https://ridewithgps.com/embeds?type=region&id=37
# also https://ridewithgps.com/route_set_overviews/37.json?include_details=1
curl --silent --output bikepacking-data.geojson https://ridewithgps.com/cos/route_set_overviews/simplified_route/37.json
curl --silent --output data.geojson https://ridewithgps.com/cos/route_set_overviews/simplified_route/37.json

View file

@ -4,7 +4,7 @@ import GeoJSON from 'ol/format/GeoJSON.js';
import {Style, Stroke} from 'ol/style.js';
import url from '/data/bikepacking-data.geojson?url'; // TODO: remove `?url`?
import url from './data.geojson?url'; // TODO: remove `?url`?
const colors = '0,0,0'; // from their website's cookie banner, and other places