Skip to content
jimduncan4 edited this page Apr 15, 2012 · 4 revisions

Welcome to the extractives-map wiki. The pages that follow describe all the major functions at a higher, descriptive level, giving detailed notes where needed. This Wiki will also contain notes for new functions added after mid-April 2012.

First, an overview of the major groups of documents:

Index.html

The main page executing the interface code. Currently contains some non-essential code related to Mapping for Results that could be stripped out. For a full description, see the index.html page

JavaScript Libraries

The EI Map draws on a set of JavaScript libraries that provide the functionality of the interface. They are:

  • map.js – functions that control how the data is mapped, such as how to draw layers, what indicators are used, etc.
  • tipsy.js – provides menu and hover behaviors
  • wb_behaviors.js – controls interactions with extractives and projects buttons in map window
  • tmpl.js – Template library that explains how to create the table, and how to display data in the table
  • f1.api.js – Core Geocommons API providing map functions. There are two different APIs, one for the World Bank and one for Geocommons. When the map being accessed is under Geocommons, the API needs to come from Geocommons as well (while if the map is on World Bank servers, the API needs to be World Bank).
  • extractives.js – Defines the infowindow text formatting

CSS Stylesheets

There are stylesheets controlling the look and feel of the interface. They are:

  • tipsy.css –
  • mapping.css –
  • menu.css –

Image files

More coming soon...