Bonsoir,
étant nul en javascript j'implore votre clémence...
J'aimerai inclure ma google map dans une fenêtre pop-up sans trop savoir comment m'y prendre

j'ai une déclaration qui affiche gmap dans ma page:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
<?php 
if($eaconf->ea_googlemap_enable==1){ ?>
<tr><th colspan="2" class='sectiontableheader'>Map</th></tr>  		
 <tr><td> 
 
<?php 
GMapFunctions::showMap("gmap",$obj->mapcoords, htmlentities($obj->title,ENT_QUOTES,"UTF-8")); 
                                
?>
<div id="gmap" style ="border-bottom-color:#000000; border-bottom-style:dotted; border-width:1px;text-align:center; width:auto; height:300px;"></div>				
</td></tr>
<?php 
}
?>
et voici la fonction:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function showMap($divName="gmap",$point=null,$text=null){
		global $eaconf;
		if($eaconf->ea_googlemap_enable==0) return ;
		//Redirect to site mark, if full location is hidden
		$point=$eaconf->ea_fulllocation==1?$point:$eaconf->ea_googlemap_sitemark;
		$point=$point==""?$eaconf->ea_googlemap_sitemark:$point;
		GMapFunctions::loadGMap($divName,$point);	
		ob_start();
		?>
		<script type="text/javascript">
 
		function eaGMapBeforeLoad(){;}
		function eaGMapAfterLoad(){
		<?php 	
		if($text&&$text!=""){?>
			addPoint("<?php echo $point?>","<?php echo $text?>");
		<?php }
                else {?>
			addPoint("<?php echo $point?>");
 
		<?php
                }?>
		}
		</script>
		<?php
		$script= ob_get_contents();
		ob_end_clean();
		GMapFunctions::loadAPI($script);
	}
Il me semble que je dois faire un appel du type
<a href="#" onclick="window.open etc
pour ouvrir une fenêtre pop-up mais pour le reste je n'arrive pas à suivre.

Pourriez vous éclairer ma simple lanterne ou n'est ce pas possible dans ce cas là?