esaude/map.esaude.org

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

eSaude Implementation Map

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.

Overview

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.

Install Guide

If you're interested in running your own implementation map, you can download the latest release of this repository and do the following.

1. Create Sheet

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.

2. Create Mapbox Project

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.

3. Update JavaScript

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.

4. Update Branding

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.

5. Deploy

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.