mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 21:01:00 +02:00
ONOS-3353: WIP -- USA, Central America and SouthAmerica ... but need to remove Alaska and Hawaii from USA data, for cleaner visualization.
Change-Id: Ie080170438912854b151ca394942af82c2f835f4
This commit is contained in:
parent
ecfdfb7461
commit
d471262d24
@ -304,6 +304,22 @@
|
|||||||
return c.properties.continent === 'South America';
|
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) {
|
japan: function (c) {
|
||||||
return c.properties.geounit === 'Japan';
|
return c.properties.geounit === 'Japan';
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user