Simplify constructor by setting projection.

This commit is contained in:
Tim Schaub
2012-02-26 19:23:22 -07:00
parent faeb691f3a
commit fc03f57591
2 changed files with 14 additions and 29 deletions

View File

@@ -78,8 +78,10 @@
for (var idx in dataLookup) {
// idx can be used to retrieve layer from map.layers[idx]
data = dataLookup[idx];
msg += "<strong>In 2005, " + data.NAME + " had a population of " +
data.POP2005 + " people.</strong> ";
if (data) {
msg += "<strong>In 2005, " + data.NAME + " had a population of " +
data.POP2005 + " people.</strong> ";
}
}
}
document.getElementById("attrsdiv").innerHTML = msg;