2022-12-11 13:48:10 -07:00
|
|
|
# SatNOGS DB Map
|
|
|
|
The map used in SatNOGS DB is from Mapbox, which was libre,
|
|
|
|
but is no longer.
|
|
|
|
|
|
|
|
MapLibre is a good libre replacement.
|
|
|
|
|
|
|
|
# MapLibre
|
|
|
|
MapLibre links.
|
|
|
|
|
|
|
|
* https://maplibre.org/
|
|
|
|
* https://github.com/maplibre/maplibre-gl-js
|
|
|
|
|
|
|
|
# Port
|
|
|
|
To port from old Mapbox to new MapLibre.
|
|
|
|
|
2022-12-11 14:04:07 -07:00
|
|
|
```
|
|
|
|
s/Mapbox/MapLibre/
|
|
|
|
s/mapbox/maplibre/
|
|
|
|
s/MAPBOX/MAPLIBRE/
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
satnogs-db/db/static/js/map.js
|
|
|
|
170:1 error Expected indentation of 8 spaces but found 0 indent
|
|
|
|
```
|
|
|
|
|
2022-12-11 14:11:31 -07:00
|
|
|
# Re-run
|
|
|
|
After changes:
|
|
|
|
|
|
|
|
```
|
2022-12-11 14:37:24 -07:00
|
|
|
# Copy over .env file that's working
|
2022-12-11 14:11:31 -07:00
|
|
|
npm install
|
|
|
|
./node_modules/.bin/gulp
|
|
|
|
workon satnogs-db # if you aren't already in the environment
|
|
|
|
./bin/djangoctl.sh develop .
|
|
|
|
```
|
2022-12-11 14:35:14 -07:00
|
|
|
|
|
|
|
In another terminal:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd satnogs-db
|
|
|
|
workon satnogs-db
|
|
|
|
./bin/djangoctl.sh initialize
|
|
|
|
```
|