EarthCubeGeochron / Sparrow

A software tool and schema+API spec for connecting laboratory measurements to data consumers
https://sparrow-data.org
Mozilla Public License 2.0
14 stars 4 forks source link

How to customize maps #128

Closed thefallingduck closed 3 years ago

thefallingduck commented 3 years ago

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.

thefallingduck commented 3 years ago

Some documentation started on Gitbook including locations for the pieces to customize.

https://app.gitbook.com/@earthcube-geochronology-sparrow/s/sparrow-wiki/front-end-customization/map-views

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.

thefallingduck commented 3 years ago

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?

yeshancqcq commented 3 years ago

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.