Skip to content

Commit

Permalink
Add more exchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Nov 9, 2016
1 parent 8bf6dab commit 8f0a5ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/countrymap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CountryMap.prototype.render = function() {

this._projection = d3.geo.mercator()
.center([3, 48])
.translate([0.6 * computedMapWidth, 0.6 * computedMapHeight])
.translate([0.55 * computedMapWidth, 0.6 * computedMapHeight])
.scale(700);

this.path = d3.geo.path()
Expand Down
17 changes: 14 additions & 3 deletions app/exchangeconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ var EXCHANGES_CONFIG = [
lonlat: [8.806354, 47.667048],
rotation: 0
},
{
countryCodes: ['CH', 'IT'],
lonlat: [9.047334, 46.113596],
rotation: 180
},
// CZ
{
countryCodes: ['CZ', 'SK'],
Expand Down Expand Up @@ -67,12 +72,12 @@ var EXCHANGES_CONFIG = [
},
{
countryCodes: ['SE', 'DK'],
lonlat: [13, 55.7],
rotation: -100
lonlat: [11.556268, 56.857802],
rotation: -110
},
{
countryCodes: ['DK', 'NO'],
lonlat: [8.8, 58],
lonlat: [8.8, 57.7],
rotation: -25
},
// GB
Expand Down Expand Up @@ -118,6 +123,12 @@ var EXCHANGES_CONFIG = [
lonlat: [6.5, 44.5],
rotation: 70
},
// GR
{
countryCodes: ['GR', 'IT'],
lonlat: [18.759248, 38.902132],
rotation: 90
},
// HU
{
countryCodes: ['HU', 'SK'],
Expand Down

0 comments on commit 8f0a5ae

Please sign in to comment.