From 8f0a5aeaab0280fb2853e3c2c716df171349616d Mon Sep 17 00:00:00 2001 From: Olivier Corradi Date: Wed, 9 Nov 2016 18:23:08 +0100 Subject: [PATCH] Add more exchanges --- app/countrymap.js | 2 +- app/exchangeconfig.js | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/countrymap.js b/app/countrymap.js index dca983632f..77e13c6de1 100644 --- a/app/countrymap.js +++ b/app/countrymap.js @@ -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() diff --git a/app/exchangeconfig.js b/app/exchangeconfig.js index 022ce88cc3..96278c0f70 100644 --- a/app/exchangeconfig.js +++ b/app/exchangeconfig.js @@ -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'], @@ -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 @@ -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'],