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:
parent
c74edcb8c0
commit
7957523c3c
21 changed files with 49 additions and 51 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue