Closed thefallingduck closed 3 years ago
Some documentation started on Gitbook including locations for the pieces to customize.
Outstanding question for @Idzikowski-Casey or @davenquinn, is can we customize the Geological map (https://github.com/EarthCubeGeochron/Sparrow/blob/main/frontend/src/map/MapStyle.tsx)? I assume yes, but it is less straightforward than the Mapbox edits.
Also, ties in with making it easier to customize maps in the Sample/project view. Likely want to do this either by setting in the sparrow-config.sh
file or some sort of .yaml
that is the local config. That way both static maps for samples and projects can be uniform and it makes them easier to change. I don't know if we want to change the current flow for the other maps, but if doing a map.yaml
rather than something in the sparrow-config.sh
this might make sense?
Looks like that the geological map is rendered as vector layers from the Macrostrat api (../api/v2/columns?all&format=geojson_bare), which is a bit different from Mapbox tile maps that can be easily customized with a new token. Not sure if Macrostrat has other api routes for geological map columns.
We need a short page of documentation to instruct users on how to customize maps and insert a mapbox token to render the maps from mapbox. Will start this on Gitbook.