google.charts.load('42', {'packages':['geochart']}); google.charts.setOnLoadCallback(drawVisualization); function drawVisualization() {var data = new google.visualization.DataTable(); data.addColumn('string', 'Country'); data.addColumn('number', 'Value'); data.addColumn({type:'string', role:'tooltip'});var ivalue = new Array(); data.addRows([[{v:'FR',f:'France'},1,'']]); ivalue['FR'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/france'; data.addRows([[{v:'AL',f:'Albanie'},1,'']]); ivalue['AL'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/albanie'; data.addRows([[{v:'DE',f:'Allemagne'},1,'']]); ivalue['DE'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/allemagne'; data.addRows([[{v:'AT',f:'Autriche'},1,'']]); ivalue['AT'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/autriche'; data.addRows([[{v:'BE',f:'Belgique'},1,'']]); ivalue['BE'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/belgique'; data.addRows([[{v:'BG',f:'Bulgarie'},1,'']]); ivalue['BG'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/bulgarie'; data.addRows([[{v:'HR',f:'Croatie'},1,'']]); ivalue['HR'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/croatie'; data.addRows([[{v:'DK',f:'Danemark'},1,'']]); ivalue['DK'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/danemark'; data.addRows([[{v:'EE',f:'Estonie'},1,'']]); ivalue['EE'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/estonie'; data.addRows([[{v:'FI',f:'Finlande'},1,'']]); ivalue['FI'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/finlande'; data.addRows([[{v:'GR',f:'Grèce'},1,'']]); ivalue['GR'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/grece'; data.addRows([[{v:'HU',f:'Hongrie'},1,'']]); ivalue['HU'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/hongrie'; data.addRows([[{v:'IT',f:'Italie'},1,'']]); ivalue['IT'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/italie'; data.addRows([[{v:'LV',f:'Lettonie'},1,'']]); ivalue['LV'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/lettonie'; data.addRows([[{v:'LT',f:'Lituanie'},1,'']]); ivalue['LT'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/lituanie'; data.addRows([[{v:'NO',f:'Norvège'},1,'']]); ivalue['NO'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/norvege'; data.addRows([[{v:'NL',f:'Pays-Bas'},1,'']]); ivalue['NL'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/pays-bas'; data.addRows([[{v:'PL',f:'Pologne'},1,'']]); ivalue['PL'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/pologne'; data.addRows([[{v:'CZ',f:'République tchèque'},1,'']]); ivalue['CZ'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/republique-tcheque'; data.addRows([[{v:'RO',f:'Roumanie'},1,'']]); ivalue['RO'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/roumanie'; data.addRows([[{v:'SK',f:'Slovaquie'},1,'']]); ivalue['SK'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/slovaquie'; data.addRows([[{v:'SI',f:'Slovénie'},1,'']]); ivalue['SI'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/slovenie'; data.addRows([[{v:'CH',f:'Suisse'},1,'']]); ivalue['CH'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/suisse'; data.addRows([[{v:'ME',f:'Monténégro'},1,'']]); ivalue['ME'] = 'https://www.growupontheroad.com/fr/nos-destinations/europe/montenegro'; var options = { backgroundColor: {fill:'#FFFFFF',stroke:'#FFFFFF' ,strokeWidth:0 }, colorAxis: {minValue: 0, maxValue: 2, colors: ['#87CEFA', '#87CEFA']}, legend: 'none', backgroundColor: {fill:'#FFFFFF',stroke:'#FFFFFF' ,strokeWidth:0 }, datalessRegionColor: '#EDEDED', displayMode: 'regions', enableRegionInteractivity: 'true', resolution: 'countries', sizeAxis: {minValue: 1, maxValue:1,minSize:10, maxSize: 10}, region:'150', keepAspectRatio: true, width:null, height:null, tooltip: {textStyle: {color: '#444444'}, trigger:'focus', isHtml: false} }; var chart = new google.visualization.GeoChart(document.getElementById('map_1638739781796')); google.visualization.events.addListener(chart, 'select', function() { var selection = chart.getSelection(); if (selection.length == 1) { var selectedRow = selection[0].row; var selectedRegion = data.getValue(selectedRow, 0); if(ivalue[selectedRegion] != '') { document.location = ivalue[selectedRegion]; } } }); chart.draw(data, options); }