jQuery(document).ready(function($){
var style = [ { "featureType": "administrative.province", "stylers": [ { "visibility": "off" } ] },{ "featureType": "road", "stylers": [ { "visibility": "off" } ] },{ "featureType": "landscape", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi", "stylers": [ { "visibility": "off" } ] },{ "featureType": "landscape", "stylers": [ { "visibility": "on" }, { "color": "#f1efec" } ] } ];
var mapOptions = {
center: new google.maps.LatLng(47.08, 3.0),
zoom: 6,
styles: style
};
var map = new google.maps.Map(document.getElementById("carteInteractive"), mapOptions);
if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
map.setCenter(pos);
}, function(){
//pas de g�olocation
});
}
var openedBox = null;
var markerImg = {
url: '/images/map_point_2x.png',
size: new google.maps.Size(35, 41),
scaledSize: new google.maps.Size(35,41),
anchor: new google.maps.Point(19,41)
}
google.maps.event.addListener(map, 'zoom_changed', function() {
if(openedBox != null)
openedBox.close();
});
google.maps.event.addListener(map, 'click', function() {
if(openedBox != null)
openedBox.close();
});
var markers = new Array();
var villes_marker = new Array();
var latlng40 = new google.maps.LatLng(48.715707803785676, 2.3936469841308963);
var marker40 = new google.maps.Marker({
position: latlng40,
map: map,
icon: markerImg
});
var infowindow40 = new InfoBox({
content: "
ATHIS-MONS
Votre correspondant :
Bruno MERTEN
SSIM,
1 rue Georges Pelletier d'Oisy,
91200 Athis Mons
06.19.38.48.86
",
position: latlng40,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker40, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow40;
infowindow40.open(map,marker40);
});
markers.push(marker40);
villes_marker['ATHIS-MONS'] = infowindow40;
var latlng64 = new google.maps.LatLng(48.3974141, -4.324955400000022);
var marker64 = new google.maps.Marker({
position: latlng64,
map: map,
icon: markerImg
});
var infowindow64 = new InfoBox({
content: "BREST
Votre correspondant :
Yann LE CHEVALIER
CRNA Ouest
37 Route du Radar de Bretagne,
29470 Loperhet
06 84 82 71 75
",
position: latlng64,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker64, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow64;
infowindow64.open(map,marker64);
});
markers.push(marker64);
villes_marker['BREST'] = infowindow64;
var latlng65 = new google.maps.LatLng(-20.891394, 55.51780009999993);
var marker65 = new google.maps.Marker({
position: latlng65,
map: map,
icon: markerImg
});
var infowindow65 = new InfoBox({
content: "Votre correspondant :
Marc MOREUX
SNA OI
Aéroport Saint Denis Gillot
Saint Denis Messag Cedex 9
02 62 72 88 78
",
position: latlng65,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker65, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow65;
infowindow65.open(map,marker65);
});
markers.push(marker65);
villes_marker['ST-DENIS-REUNION'] = infowindow65;
var latlng67 = new google.maps.LatLng(45.72639195177787, 5.081280752917451);
var marker67 = new google.maps.Marker({
position: latlng67,
map: map,
icon: markerImg
});
var infowindow67 = new InfoBox({
content: "LYON
Votre correspondant :
Sandrine RICHARD-OUSSELIN
Aéroport de Lyon Saint Exupéry
630 rue d'Allemagne,
69125 Colombier-Saugnieu
04 82 90 90 33
",
position: latlng67,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker67, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow67;
infowindow67.open(map,marker67);
});
markers.push(marker67);
villes_marker['LYON'] = infowindow67;
var latlng70 = new google.maps.LatLng(47.16033690496019, -1.6045149862304697);
var marker70 = new google.maps.Marker({
position: latlng70,
map: map,
icon: markerImg
});
var infowindow70 = new InfoBox({
content: "NANTES
Votre correspondant :
Dominique ROBICHON
SNA Ouest
Aeroport de Nantes
44340 BOUGUENAIS
06 71 28 77 76
",
position: latlng70,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker70, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow70;
infowindow70.open(map,marker70);
});
markers.push(marker70);
villes_marker['NANTES'] = infowindow70;
var latlng72 = new google.maps.LatLng(44.8404483, -0.6934827999999698);
var marker72 = new google.maps.Marker({
position: latlng72,
map: map,
icon: markerImg
});
var infowindow72 = new InfoBox({
content: "BORDEAUX
Votre correspondant :
Anne-Catherine VINA
SNA SO
Avenue de Beaudesert,
33700 MERIGNAC Cedex
06 61 56 86 47
",
position: latlng72,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker72, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow72;
infowindow72.open(map,marker72);
});
markers.push(marker72);
villes_marker['BORDEAUX'] = infowindow72;
var latlng84 = new google.maps.LatLng(46.1764387, -1.1949783999999681);
var marker84 = new google.maps.Marker({
position: latlng84,
map: map,
icon: markerImg
});
var infowindow84 = new InfoBox({
content: "LA ROCHELLE
Votre correspondant :
Nicolas BAILLY
Aérodrome de La Rochelle
Rue du Jura,
17000 La Rochelle
06 84 53 29 84
",
position: latlng84,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker84, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow84;
infowindow84.open(map,marker84);
});
markers.push(marker84);
villes_marker['ROCHELLE'] = infowindow84;
var latlng85 = new google.maps.LatLng(45.72588265357165, 5.080991074343842);
var marker85 = new google.maps.Marker({
position: latlng85,
map: map,
icon: markerImg
});
var infowindow85 = new InfoBox({
content: "LYON
Votre correspondant :
Manu BENOIS
SNA CE - Lyon St Exupery
630 rue d'Allemagne,
69125 Colombier-Saugnieu
06 11 97 34 09
",
position: latlng85,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker85, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow85;
infowindow85.open(map,marker85);
});
markers.push(marker85);
villes_marker['LYON'] = infowindow85;
var latlng86 = new google.maps.LatLng(48.86611214736376, 2.3974266052246094);
var marker86 = new google.maps.Marker({
position: latlng86,
map: map,
icon: markerImg
});
var infowindow86 = new InfoBox({
content: "PARIS
Votre correspondant :
Brigitte GUILLEMIN
SNIA
82 rue des Pyrénées
75020 PARIS
06 09 50 26 40
",
position: latlng86,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker86, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow86;
infowindow86.open(map,marker86);
});
markers.push(marker86);
villes_marker['PARIS'] = infowindow86;
var latlng90 = new google.maps.LatLng(4.808738056258583, -52.3397216796875);
var marker90 = new google.maps.Marker({
position: latlng90,
map: map,
icon: markerImg
});
var infowindow90 = new InfoBox({
content: "Votre correspondant :
Rosie HORATIUS
Aérodrome de Cayenne Félix Eboué
MATOURY, France
0594 35 93 54
",
position: latlng90,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker90, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow90;
infowindow90.open(map,marker90);
});
markers.push(marker90);
villes_marker['MATOURY'] = infowindow90;
var latlng91 = new google.maps.LatLng(-17.5637341, -149.5988089);
var marker91 = new google.maps.Marker({
position: latlng91,
map: map,
icon: markerImg
});
var infowindow91 = new InfoBox({
content: "Votre correspondant :
Chantal RILOS
Faa'a Aéroport,
BP 6005,
98702 FAA'A
",
position: latlng91,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker91, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow91;
infowindow91.open(map,marker91);
});
markers.push(marker91);
villes_marker['FAA'] = infowindow91;
var latlng63 = new google.maps.LatLng(47.15864442360352, -1.6002234518066416);
var marker63 = new google.maps.Marker({
position: latlng63,
map: map,
icon: markerImg
});
var infowindow63 = new InfoBox({
content: "NANTES
Votre correspondant :
Pascal LE DROGO
SNA O
Aérodrome NANTES,
BOUGUENAIS CEDEX
02 28 00 24 85
",
position: latlng63,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker63, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow63;
infowindow63.open(map,marker63);
});
markers.push(marker63);
villes_marker['NANTES'] = infowindow63;
var latlng62 = new google.maps.LatLng(45.78676429999999, 3.160263699999973);
var marker62 = new google.maps.Marker({
position: latlng62,
map: map,
icon: markerImg
});
var infowindow62 = new InfoBox({
content: "CLERMONT FERRAND
Votre correspondant :
Hugues VANDERMOERE
DSAC CE,
Antenne Clermont-Ferrand,
63100 AULNAT
04 73 87 52 20
",
position: latlng62,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker62, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow62;
infowindow62.open(map,marker62);
});
markers.push(marker62);
villes_marker['CLERMONT-FERRAND'] = infowindow62;
var latlng61 = new google.maps.LatLng(43.1796783, -0.004604299999982686);
var marker61 = new google.maps.Marker({
position: latlng61,
map: map,
icon: markerImg
});
var infowindow61 = new InfoBox({
content: "PYRENEES
Votre correspondant :
Gilles FORT
SNA SO
Organisme Pyrénées,
JUILLAN
05 62 32 62 50
",
position: latlng61,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker61, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow61;
infowindow61.open(map,marker61);
});
markers.push(marker61);
villes_marker['PYRENEES'] = infowindow61;
var latlng39 = new google.maps.LatLng(43.5789297, 1.3776683999999477);
var marker39 = new google.maps.Marker({
position: latlng39,
map: map,
icon: markerImg
});
var infowindow39 = new InfoBox({
content: "TOULOUSE
Votre correspondant :
Marie CARIOU
DTI
1 Avenue du Dr Maurice Grynfogel,
31100 Toulouse
06.64.36.75.22
",
position: latlng39,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker39, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow39;
infowindow39.open(map,marker39);
});
markers.push(marker39);
villes_marker['TOULOUSE'] = infowindow39;
var latlng42 = new google.maps.LatLng(43.5374174, 5.451415499999939);
var marker42 = new google.maps.Marker({
position: latlng42,
map: map,
icon: markerImg
});
var infowindow42 = new InfoBox({
content: "AIX EN PROVENCE
Votre correspondant :
Thierry AUXIRE
CRNA SE
1 rue Vincent Auriol
13100 AIX EN PROVENCE
06.25.87.37.24
",
position: latlng42,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker42, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow42;
infowindow42.open(map,marker42);
});
markers.push(marker42);
villes_marker['AIX-EN-PROVENCE'] = infowindow42;
var latlng44 = new google.maps.LatLng(43.9054455, 4.897891500000014);
var marker44 = new google.maps.Marker({
position: latlng44,
map: map,
icon: markerImg
});
var infowindow44 = new InfoBox({
content: "AVIGNON
Votre correspondant :
Jean-Philippe HECKLY
SNA SSE
Aéroport Avignon Provence
100 rue Marise Bastié,
84140 Avignon-Montfavet
06.61.32.65.97
",
position: latlng44,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker44, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow44;
infowindow44.open(map,marker44);
});
markers.push(marker44);
villes_marker['AVIGNON'] = infowindow44;
var latlng45 = new google.maps.LatLng(48.715698200000006, 2.393392777246163);
var marker45 = new google.maps.Marker({
position: latlng45,
map: map,
icon: markerImg
});
var infowindow45 = new InfoBox({
content: "ATHIS-MONS
Votre correspondant :
Isabelle PERRIN
SSIM
1 rue Georges Pelletier d'oisy,
91200 Athis Mons.
06.19.82.15.25
",
position: latlng45,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker45, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow45;
infowindow45.open(map,marker45);
});
markers.push(marker45);
villes_marker['ATHIS-MONS'] = infowindow45;
var latlng48 = new google.maps.LatLng(48.834456955674064, 2.2713657539673022);
var marker48 = new google.maps.Marker({
position: latlng48,
map: map,
icon: markerImg
});
var infowindow48 = new InfoBox({
content: "PARIS
Votre correspondant :
Marie HIBON
DGAC
50 rue Henry Farman
75720 PARIS Cedex 15
01.58.09.45.55
",
position: latlng48,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker48, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow48;
infowindow48.open(map,marker48);
});
markers.push(marker48);
villes_marker['PARIS'] = infowindow48;
var latlng52 = new google.maps.LatLng(14.6079914, -61.08056049999999);
var marker52 = new google.maps.Marker({
position: latlng52,
map: map,
icon: markerImg
});
var infowindow52 = new InfoBox({
content: "Votre correspondant :
Chantal BOBI
DSAC AG
11 rue des Hibiscus
FORT DE FRANCE
05 96 55 60 36
",
position: latlng52,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker52, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow52;
infowindow52.open(map,marker52);
});
markers.push(marker52);
villes_marker['FORT-FRANCE'] = infowindow52;
var latlng53 = new google.maps.LatLng(47.2726955, 5.086113399999931);
var marker53 = new google.maps.Marker({
position: latlng53,
map: map,
icon: markerImg
});
var infowindow53 = new InfoBox({
content: "DIJON
Votre correspondant :
Jean-Denis ARMAND
SNA NE,
Aérodrome de Dijon-Longvic,
LONGVIC Cedex
03 80 65 07 47
",
position: latlng53,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker53, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow53;
infowindow53.open(map,marker53);
});
markers.push(marker53);
villes_marker['DIJON'] = infowindow53;
var latlng58 = new google.maps.LatLng(49.2379622, 4.071805700000027);
var marker58 = new google.maps.Marker({
position: latlng58,
map: map,
icon: markerImg
});
var infowindow58 = new InfoBox({
content: "REIMS
Votre correspondant :
Philippe CAPLAT
CRNA Est,
2, rue Alberto Santos-Dumont,
Reims Cedex 2
03 26 84 63 61
",
position: latlng58,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker58, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow58;
infowindow58.open(map,marker58);
});
markers.push(marker58);
villes_marker['REIMS'] = infowindow58;
var latlng59 = new google.maps.LatLng(43.57562468459667, 1.374843100000021);
var marker59 = new google.maps.Marker({
position: latlng59,
map: map,
icon: markerImg
});
var infowindow59 = new InfoBox({
content: "TOULOUSE
Votre correspondant :
Laure GARES
METEO FRANCE
42 avenue Gaspard Coriolis
31000 TOULOUSE
05 61 07 97 24
",
position: latlng59,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker59, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow59;
infowindow59.open(map,marker59);
});
markers.push(marker59);
villes_marker['TOULOUSE'] = infowindow59;
var latlng60 = new google.maps.LatLng(16.2676129, -61.52724899999998);
var marker60 = new google.maps.Marker({
position: latlng60,
map: map,
icon: markerImg
});
var infowindow60 = new InfoBox({
content: "Votre correspondant :
Franck GUIMESE
SNA AG
Aérogare Raizet Sud
rue Ernest Pallas
Les Abymes
05 90 48 20 88
",
position: latlng60,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker60, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow60;
infowindow60.open(map,marker60);
});
markers.push(marker60);
villes_marker['POINTE-PITRE'] = infowindow60;
var latlng93 = new google.maps.LatLng(-13.2959105, -176.20568430000003);
var marker93 = new google.maps.Marker({
position: latlng93,
map: map,
icon: markerImg
});
var infowindow93 = new InfoBox({
content: "Votre correspondant :
CFDT Wallis et Futuna
BP1 Mata'Utu - 98600 UVEA - WALLIS
",
position: latlng93,
closeBoxURL: '',
pixelOffset: new google.maps.Size(25,-170),
enableEventPropagation: true
});
google.maps.event.addListener(marker93, 'click', function() {
if(openedBox != null)
openedBox.close();
openedBox = infowindow93;
infowindow93.open(map,marker93);
});
markers.push(marker93);
villes_marker['UVEA'] = infowindow93;
var clusterStyles = [
{
textColor: 'white',
url: '/images/puce_carte.png',
height: 35,
width: 35
},
{
textColor: 'white',
url: '/images/puce_carte.png',
height: 35,
width: 35
},
{
textColor: 'white',
url: '/images/puce_carte.png',
height: 35,
width: 35
}
];
var markerCluster = new MarkerClusterer(map, markers,{
gridSize: 32,
styles: clusterStyles
});
$('select[name^=ville]').on('change', function(){
var ville = $(this).val();
if(openedBox != null)
openedBox.close();
console.log(villes_marker[ville]);
villes_marker[ville].open(map);
openedBox = villes_marker[ville];
$('.toggle-acces-map-xs').removeClass('active');
});
$('.acces-map-xs a').on('click', function(e){
e.preventDefault();
$('.toggle-acces-map-xs').toggleClass('active');
});
});