<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"Preformattato HTML Carattere";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.PreformattatoHTMLCarattere
{mso-style-name:"Preformattato HTML Carattere";
mso-style-priority:99;
mso-style-link:"Preformattato HTML";
font-family:Consolas;}
span.StileMessaggioDiPostaElettronica22
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT-CH" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">Hi Philippe,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US">have you try the embedded feature of Lizmap ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="https://docs.lizmap.com/current/it/publish/configuration/popup.html">Popup (lizmap.com)</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Fabio<span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif">Da:</span></b><span lang="IT" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Lizmap <lizmap-bounces@lists.osgeo.org>
<b>Per conto di </b>Philippe CIANFARANI via Lizmap<br>
<b>Inviato:</b> venerdì, 28 giugno 2024 12:10<br>
<b>A:</b> lizmap@lists.osgeo.org<br>
<b>Oggetto:</b> [Lizmap] Issue with Displaying Popup on Selection in Lizmap<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello everyone,<o:p></o:p></p>
<p>I would like to display a popup when I select a point in Lizmap. I have added a script named
<code><span style="font-size:10.0pt">displayPopupUnderSelected.js</span></code> to my directory
<code><span style="font-size:10.0pt">/............/media/js/monprojet</span></code>.<o:p></o:p></p>
<p>/<i><span style="font-size:7.5pt">/ Définir la source de la légende pour le popup<br>
var popup_layer_source = 'points_mesures_suivi_quantitatif_cce';<br>
<br>
// Écouter l'événement de sélection de couche dans Lizmap<br>
lizMap.events.on({<br>
layerClick: function(evt) {<br>
// Vérifier si la couche sélectionnée correspond à la source de légende<br>
if (evt.layerName === popup_layer_source && evt.feature) {<br>
// Construire le contenu HTML du popup avec l'image<br>
var html = '<div>';<br>
html += '<img src=<a href="http://sig-hautegironde.fr/lizmap/index.php/view/media/getMedia?repository=etiagecce&project=suivi_etiage_cce&path=media/images/legend.png">"adresse/images/legend.png"</a> style="max-width: 100%; height: auto;">';<br>
html += '</div>';<br>
<br>
// Afficher le popup avec l'image<br>
LizMap.Popup.show({<br>
content: html,<br>
title: 'Légende',<br>
maxWidth: 400 // Largeur maximale du popup en pixels (ajustez selon vos besoins)<br>
});<br>
}<br>
}<br>
});</span></i><o:p></o:p></p>
<p>However, nothing happens when I make a selection. I have enabled scripts in the admin panel. Additionally, there is a script named
<code><span style="font-size:10.0pt">popup.js</span></code> in the same directory. Could there be a conflict? Any ideas would be appreciated.<o:p></o:p></p>
<p>Thank you in advance.<o:p></o:p></p>
<p>Best regards,<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Philippe CIANFARANI<o:p></o:p></pre>
<pre>Chef de projet SIG<o:p></o:p></pre>
<pre>Syndicat Mixte du SCoT de la Haute Gironde Blaye - Estuaire<o:p></o:p></pre>
<pre>Maison des Services au Public<o:p></o:p></pre>
<pre>32 rue des Maçons - BP 134<o:p></o:p></pre>
<pre>33391 Blaye Cedex<o:p></o:p></pre>
<pre>05.57.94.11.87/06.51.10.97.86<o:p></o:p></pre>
</div>
</body>
</html>