Simon Hunt
Committed by Gerrit Code Review

ONOS-3353: WIP -- USA, Central America and SouthAmerica ... but need to remove A…

…laska and Hawaii from USA data, for cleaner visualization.

Change-Id: Ie080170438912854b151ca394942af82c2f835f4
...@@ -304,6 +304,22 @@ ...@@ -304,6 +304,22 @@
304 return c.properties.continent === 'South America'; 304 return c.properties.continent === 'South America';
305 }, 305 },
306 306
307 + america: function (c) {
308 + var cenAmer = {
309 + MEX: 1,
310 + GTM: 1,
311 + BLZ: 1,
312 + HND: 1,
313 + SLV: 1,
314 + NIC: 1,
315 + CRI: 1,
316 + PAN: 1
317 + };
318 + return cenAmer[c.properties.adm0_a3] ||
319 + c.properties.adm0_a3 === 'USA' ||
320 + c.properties.continent === 'South America';
321 + },
322 +
307 japan: function (c) { 323 japan: function (c) {
308 return c.properties.geounit === 'Japan'; 324 return c.properties.geounit === 'Japan';
309 }, 325 },
......