Easy-to-use humanitarian map for work before, during and after events.
$ git clone https://github.com/emi420/hmap.git
$ cd hmap
$ npm install
- Rename
src/config/config.sample.js
toconfig.js
and edit this file adding aMAPBOX_ACCESS_TOKEN
. - Change map center
MAP_DEFAULT_CENTER
- Change
data/*.geojson
and/orconfig/layers
with your own data and styles. - Also, you can change the map's style, changing
MAPBOX_DEFAULT_STYLE
, for example I'm using my own custom stylemapbox://styles/emi420/ck2divmvv1gip1cpjxumqy761
. - If you want to change the CSV sources for FIRMS data, change
MODIS_24_URL
andVIIRS_24_URL
and use your own, for example you can loadhttps://firms.modaps.eosdis.nasa.gov/data/active_fire/c6/csv/MODIS_C6_South_America_24h.csv
through a proxy.
$ npm run start
Then load http://localhost:3000 in your browser.
$ npm run build
- Rename
deploy-sample.sh
todeploy.sh
and edit<user>
,<ip>
and<project-folder>
with your server username, host and project folder. - Run deploy script
$ sh ./deploy.sh
You may use this project under the terms of either the MIT License or the GNU General Public License (GPL) Version 3.
(c) 2019 Emilio Mariscal