Name: map.esaude.org
Owner: eSaude
Description: Facility Map
Created: 2015-08-24 13:51:03.0
Updated: 2016-03-16 22:56:18.0
Pushed: 2015-09-09 13:12:58.0
Homepage: null
Size: 637
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
eSaude EMR is an OpenMRS distribution for Mozambique. This repository contains the source code for the map of implementations, which can be viewed at map.esaude.org.
The page makes use of the Leaflet library for the map interactivity and rendering, Mapbox for the map data, Google Sheets for storing the facility data and Tabletop.js for accessing the facility data.
If you're interested in running your own implementation map, you can download the latest release of this repository and do the following.
Create your own spreadsheet at http://sheets.google.com. You then need to publish it and take note of the URL as described in the Tabletop.js documentation here.
Note that you must have columns titled exaclty Name, Longitude and Latitude. Any other columns will automatically be added to the popup on the map. See here for an example.
Sign up at http://www.mapbox.com and generate an API access token here. Then create a new project and take note of the project ID displayed on this page.
Once you have published your Google Sheet and generated your Mapbox project ID and API access token, you will need to update the first three lines of the main JavaScript file with references to your newly created resources.
You will most likely want to update the page description, author and title as well as the favicon to match those of your organisation. The language of the search placeholder text can be changed here and the popover text here.
Once you've completed steps 1-4 above, you can deploy the application to your web server of choice. The index.html file is the entry point to the application.