From d471262d24d1940921e1805d06ef302a8ed11c4d Mon Sep 17 00:00:00 2001 From: Simon Hunt Date: Wed, 2 Dec 2015 11:19:50 -0800 Subject: [PATCH] ONOS-3353: WIP -- USA, Central America and SouthAmerica ... but need to remove Alaska and Hawaii from USA data, for cleaner visualization. Change-Id: Ie080170438912854b151ca394942af82c2f835f4 --- web/gui/src/main/webapp/app/view/topo/topo.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/gui/src/main/webapp/app/view/topo/topo.js b/web/gui/src/main/webapp/app/view/topo/topo.js index 702584af3b..b46abf4f93 100644 --- a/web/gui/src/main/webapp/app/view/topo/topo.js +++ b/web/gui/src/main/webapp/app/view/topo/topo.js @@ -304,6 +304,22 @@ return c.properties.continent === 'South America'; }, + america: function (c) { + var cenAmer = { + MEX: 1, + GTM: 1, + BLZ: 1, + HND: 1, + SLV: 1, + NIC: 1, + CRI: 1, + PAN: 1 + }; + return cenAmer[c.properties.adm0_a3] || + c.properties.adm0_a3 === 'USA' || + c.properties.continent === 'South America'; + }, + japan: function (c) { return c.properties.geounit === 'Japan'; },