var nom = "plan";
var titre = "Plan d'accès";
var titre_icone = "Plan";
var icone = "locate";
var secondes = 0;
//#######################################################################################
//### Horaires d'ouverture
//#######################################################################################
mesHoraires = Ext.extend(Ext.Panel, {
title: 'Horaires',
scroll: 'vertical',
html: '',
style: {
height: '30px',
fontSize: '12px',
},
listeners: {
activate: function(tab) {
Ext.Ajax.request({
url: 'pages/horaires.php?delai='+secondes,
success: function (response, opts) {
tab.update(response.responseText, true);
},
});
}
},
});
Ext.reg('horaires', mesHoraires);
var latitude = '44.5218334';
var longitude = '0.1129267';
//#######################################################################################
//### Carte + itinéraire Google Map
//#######################################################################################
if (Ext.is.Android || Ext.is.Desktop)
{
/*var infowindowA = new google.maps.InfoWindow({
content: 'Vous êtes ici'
});*/
var infowindowB = new google.maps.InfoWindow({
content: 'BACHELOT AUTOMOBILES
Fizalie, route de Bordeaux
47180 Sainte-Bazeille'
});
maCarte = Ext.extend(Ext.Map, {
title: 'Plan',
mapOptions : {
zoom: 12,
center: new google.maps.LatLng('44.5218334', '0.1129267'),
useCurrentLocation: true,
navigationControl: true,
navigationControlOptions: {
style: google.maps.NavigationControlStyle.DEFAULT
}
},
useCurrentLocation: true,
listeners: {
maprender : function(comp, map){
/*var markerA = new google.maps.Marker({
position: map.center,
map: map
});
infowindowA.open(map, markerA);
google.maps.event.addListener(markerA, 'click', function() {
infowindowA.open(map, markerA);
});*/
var markerB = new google.maps.Marker({
position: new google.maps.LatLng(44.5218334, 0.1129267),
map: map
});
infowindowB.open(map, markerB);
google.maps.event.addListener(markerB, 'click', function() {
infowindowB.open(map, markerB);
});
}
}
});
}
else // Iphone
{
maCarte = Ext.extend(Ext.Panel, {
title: 'Itinéraire',
id: 'id_carte',
//scroll: 'vertical',
html: '