aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2013-02-03 12:51:57 +0000
committerChristopher Baines <cbaines8@gmail.com>2013-02-03 12:51:57 +0000
commit5bb80ec2e357b396548bfd61529f957677c44016 (patch)
treeb71fa262597dfefc1fc575af32e77b87c87e364e /resources
parent6b7970033fa69f37b748f653642d996db17e7d91 (diff)
downloadhealth-map-5bb80ec2e357b396548bfd61529f957677c44016.tar
health-map-5bb80ec2e357b396548bfd61529f957677c44016.tar.gz
Improve formatting
Diffstat (limited to 'resources')
-rw-r--r--resources/map.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/map.js b/resources/map.js
index 01c902b..a7c26d0 100644
--- a/resources/map.js
+++ b/resources/map.js
@@ -126,9 +126,9 @@ function displayMap(self, map) {
if (numberOfSettlementsWithoutPopulation != 0) {
if (numberOfSettlementsWithoutPopulation == 1) {
- population = population + " (but " + numberOfSettlementsWithoutPopulation + " has no population set)";
+ population = population + " (but " + numberOfSettlementsWithoutPopulation + " settlement has no population set)";
} else {
- population = population + " (but " + numberOfSettlementsWithoutPopulation + " have no population set)";
+ population = population + " (but " + numberOfSettlementsWithoutPopulation + " settlements have no population set)";
}
}
@@ -256,11 +256,11 @@ $(document).ready(function() {
</table>\
<h2>Catchment Area</h2>\
<table>\
-<tr><td>Surface Area</td><td><%= properties["area"] %></td></tr>\
-<tr><td>Number of Settlements</td><td><%= properties["number_of_settlements"] %></td></tr>\
-<tr><td>Population</td><td><%= properties["population"] %></td></tr>\
-<tr><td>Furthest distance from settlement to health structure</td><td><%= properties["greatest_settlement_dist"] %></td></tr>\
-<tr><td>Average distance of all settlements from health structure</td><td><%= properties["average_settlement_dist"] %></td></tr>\
+<tr><td>Surface Area</td><td align="right"><%= properties["area"] %></td></tr>\
+<tr><td>Number of Settlements</td><td align="right"><%= properties["number_of_settlements"] %></td></tr>\
+<tr><td>Population</td><td align="right"><%= properties["population"] %></td></tr>\
+<tr><td>Furthest distance from settlement to health structure</td><td align="right"><%= properties["greatest_settlement_dist"] %></td></tr>\
+<tr><td>Average distance of all settlements from health structure</td><td align="right"><%= properties["average_settlement_dist"] %></td></tr>\
</table>');
self.tileLayer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {