Différences entre les versions de « Atlas 380/iPad/notreavion.net »

Ligne 735 : Ligne 735 :
var myfile="/convert/"+ getURLParameter('file');
var myfile="/convert/"+ getURLParameter('file');


function getURLParameter(name) {                        <!--Le nom du fichier est dans l'URL d'appel, fonction de recherche de ce nom de fichier
function getURLParameter(name) {                        <!--Le nom du fichier est dans l'URL d'appel, fonction de recherche de ce nom de fichier-->
   return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
   return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
}
Ligne 795 : Ligne 795 :
MQA.EventManager.addListener(route, 'loaded', function() {
MQA.EventManager.addListener(route, 'loaded', function() {
  map.bestFit();
  map.bestFit();
  for (i=2;i<route.getSize();i++) {  <!--Boucle les points pour ne jamais afficher l'info uniquement le titre (nom du point).-->
  for (i=2;i<route.getSize();i++) {  <!--Boucle les points pour ne jamais afficher info uniquement le titre (nom du point).-->


var poi = route.getAt(i);
var poi = route.getAt(i);
Ligne 803 : Ligne 803 :
poi.setInfoContentHTML(str);
poi.setInfoContentHTML(str);


MQA.EventManager.addListener(poi, 'mouseover', function(){              <!--Affiche l'info au survol du point-->
MQA.EventManager.addListener(poi, 'mouseover', function(){              <!--Affiche info au survol du point-->
this.toggleInfoWindowRollover();
this.toggleInfoWindowRollover();
});
});


MQA.EventManager.addListener(poi, 'click', function(){                  <!--Affiche l'info au clic-->
MQA.EventManager.addListener(poi, 'click', function(){                  <!--Affiche info au clic-->
this.toggleInfoWindowRollover();
this.toggleInfoWindowRollover();
});
});
Ligne 968 : Ligne 968 :




affichout = function(){                  <!--Affiche l'info au clic hors carte-->
affichout = function(){                  <!--Affiche info au clic hors carte-->
this.setInfoContentHTML("");
this.setInfoContentHTML("");
document.getElementById('info').innerHTML= this.getExtraField('texte');
document.getElementById('info').innerHTML= this.getExtraField('texte');
Ligne 975 : Ligne 975 :
affichin =function(){
affichin =function(){
if (navigator.userAgent.match(/iPad/i)){
if (navigator.userAgent.match(/iPad/i)){
document.getElementById('info').innerHTML= ""; <!--Affiche l'info au clic sur la carte-->
document.getElementById('info').innerHTML= ""; <!--Affiche info au clic sur la carte-->


this.setInfoTitleHTML(this.getExtraField('texte'));
this.setInfoTitleHTML(this.getExtraField('texte'));
Ligne 1 101 : Ligne 1 101 :
   </body>
   </body>
</html>
</html>
           
              
              
</syntaxhighlight>
</syntaxhighlight>
110

modifications