// (C)opyright N-Gine Innovation 2008 - Tous droits réservés // http://www.ngine-innovation.com var DebugPoly = new Array(); var baseIconSingles = new Array(); // une icone pour chaque catégorie de lieu (musée, monument, etc.) var baseIconMultiple = null; // une seule icone pour les regroupements // variables à surcharger var ImgMarkerMultiple = 'Images/GMarker/bleu.png'; var ImgMarkerMultipleHighlight = 'Images/GMarker/bleub.png'; var MWCloseBtnAction = null; var MWZoomBtnAction = null; // ---------------------------------------------------------------------------------------------------------------------- function getImgSize(imgSrc) { Size = imgSrc.split( '_'); return new Array( Size[1], Size[2]); } // ********************************************************************************************************************** // ********************************************************************************************************************** // Classe GeoMap // ********************************************************************************************************************** // ********************************************************************************************************************** // ---------------------------------------------------------------------------------------------------------------------- // Constructeur : // DivID : id du div conteneur de la carte // Tableau des évènements // MapType : optionnel. Spécifie le type de carte. Valeurs possibles : G_NORMAL_MAP (par défaut), G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP function GeoMap( DivID, Tab, MapType) { this.IDGMap = DivID; this.GMap = null; this.ZoomControlMoteur=null; this.MTControlMoteur=null; this.geocoder = null; // Tableau des marqueurs this.MarkerList = null; this.ImgMarkerSingles = new Array(); //ImgMarkerSingles; this.IconSingle = null; this.ImgMarkerSingleHighlights = new Array(); //ImgMarkerSingleHighlights; this.IconSingleH = null; this.ImgMarkerMultiple = ImgMarkerMultiple; this.IconMultiple = null; this.ImgMarkerMultipleHighlight = ImgMarkerMultipleHighlight; this.IconMultipleH = null; // 04/02/2008 // this.TabEvent = Tab; this.TabEvent = new Array; this.MouseOverMark = null; this.MouseOutMark = null; this.MouseClickMark = null; // Creation de la carte Google this.GMap = new GMap2(document.getElementById( this.IDGMap)); // Cache par défaut : la carte est doublée this.CacheX = 1; this.CacheY = 1; this.CacheBound = new GBounds; // Création de la zone d'affichage du tooltip this.GMap.TooltipDiv = document.createElement("div"); this.GMap.TooltipDiv.className = "ToolTip"; this.GMap.TooltipDiv.style.zIndex = 2; document.getElementById(this.IDGMap).appendChild(this.GMap.TooltipDiv); this.GMap.TooltipDiv.style.visibility="hidden"; // Création de la zone d'affichage de la bulle d'aide // MegaWindow appartient à GMAp pour pouvoir y accéder depuis les évènements this.GMap.MegaMarker = null; this.GMap.MegaWindowDiv = document.createElement("div"); //this.GMap.MegaWindowDiv.className = "MegaWindow"; this.GMap.MegaWindowDiv.style.zIndex = 2; this.GMap.MegaWindowDiv.innerHTML = '
| '+FluxJSON.Marqueurs[i].Nom+' '; if (FluxJSON.Marqueurs[i].Cat1>= 0) { Tooltip += GlobTabCategoriesSites[FluxJSON.Marqueurs[i].Cat1][1]; if (FluxJSON.Marqueurs[i].Cat2 >= 0) Tooltip += ' / '+GlobTabCategoriesSites[FluxJSON.Marqueurs[i].Cat2][1]; } else { Tooltip += ' '; } Tooltip += ' '; Tooltip += ''+FluxJSON.Marqueurs[i].Ville + ' ' + FluxJSON.Marqueurs[i].Departement+''; Tooltip += ' | |
| Cliquez sur le symbole | ';
Tooltip += '|
| '+FluxJSON.Sites[i].LOCNOM + ' ' + FluxJSON.Sites[i].DEPARTEMENT+''; CodeHTML += ' | ';
CodeHTML += ' | ';
CodeHTML += '