Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anvaka/mars
Map of Mars
https://github.com/anvaka/mars
Last synced: 3 months ago
JSON representation
Map of Mars
- Host: GitHub
- URL: https://github.com/anvaka/mars
- Owner: anvaka
- License: mit
- Created: 2019-12-25T08:53:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T06:45:36.000Z (9 months ago)
- Last Synced: 2024-05-02T01:00:59.584Z (6 months ago)
- Language: JavaScript
- Homepage: https://anvaka.github.io/mars/
- Size: 8.8 MB
- Stars: 28
- Watchers: 5
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Map of Mars
This is an interactive map of Mars: https://anvaka.github.io/mars/
[![map of mars](images/map_of_mars.png)](https://anvaka.github.io/mars/)
# Details
The map was made from a [publicly available digital elevation model](https://astrogeology.usgs.gov/search/map/Mars/Topography/HRSC_MOLA_Blend/Mars_HRSC_MOLA_BlendDEM_Global_200mp_v2).
Maximum resolution of the model is 200 meters per pixel.I converted the model into 8 bit, and uploaded it into MapBox studio. The uncorrected labels come from the
[Gazetteer of Planetary Nomenclature](https://planetarynames.wr.usgs.gov/Page/MARS/target).To add colors to the map, I had to patch [mapbox-gl-js](https://github.com/anvaka/mapbox-gl-js/tree/color-ramp)
library. The patch is not supposed to have high reusability quality, but might serve as an inspiration for a [long time
feature request](https://github.com/mapbox/mapbox-gl-js/issues/3889) solution on main `mapbox-gl` repository.# Patronage
If you like this work please consider sponsoring the project:
* [Via PayPal](http://paypal.me/anvakos/4)
* [Via GitHub Sponsors](https://github.com/sponsors/anvaka)Your support will be used to pay for MapBox hosting services and further development of this project ❤️.
# Local development
```
npm install
npm start
```Note: You'd have to use your own MapBox token in order to build the project. Simply create a file in `src/token.js`
with the following content:``` js
export const MAPBOX_TOKEN = '... your mapbox token ...';
```# License
The source code is licensed under MIT license.