<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello everyone,<br>
<br>
I want to remove the information related to the extent, the
projection, and the WMS service from the Lizmap popup when a map
is launched.</p>
<img moz-do-not-send="false"
src="cid:part1.jppz1y3d.dcb3CEU9@scot-hautegironde.fr" alt=""
width="454" height="375">
<p>I therefore have the following JavaScript :<br>
</p>
<p><i><font size="1">"lizMap.events.on({<br>
'uicreated': function(evt) {<br>
var html = '';<br>
html += '<div class="modal-header"><a
class="close"
data-dismiss="modal">×</a><p
style="text-align: center; font-weight: bold;">Pour
afficher les valeurs, cliquez sur les différents points de
mesures.</p></div>';<br>
html += '<div>'; // Ouverture du conteneur des logos<br>
html += '<img
src="http*********************************************************************=media/images/CCE.jpg"
style="float: left; margin-right: 10px;">'; // Logo à
gauche<br>
html += '</div>'; // Fermeture du conteneur des
logos<br>
html += '<div class="modal-body">';<br>
html += $('#metadata').html();<br>
html += '</div>';<br>
html += '<div class="modal-footer"><button
id="button_OK" type="button" class="btn btn-default"
data-dismiss="modal">Ok
(⏎)</button></div>';<br>
$('#lizmap-modal').html(html).modal('show');<br>
<br>
// Fonction pour enlever les éléments spécifiques<br>
function removeMetadataElements() {<br>
$('#lizmap-modal .modal-body .projection, #lizmap-modal
.modal-body .emprise, #lizmap-modal .modal-body
.wms-service').remove();<br>
}<br>
<br>
// Vérifier et enlever les éléments après un délai<br>
setTimeout(removeMetadataElements, 500);<br>
<br>
$('#lizmap-modal').keypress(function(e) {<br>
if (e.which == 13) { // Touche Entrée<br>
$('#button_OK').click();<br>
}<br>
});<br>
}<br>
});</font></i>"<br>
</p>
<p>But this script does not work. Does anyone have an idea?<br>
</p>
<p>Thanks in advance, <br>
</p>
<p>-- </p>
<pre class="moz-signature" cols="72">Philippe CIANFARANI
Chef de projet SIG
Syndicat Mixte du SCoT de la Haute Gironde Blaye - Estuaire
Maison des Services au Public
32 rue des Maçons - BP 134
33391 Blaye Cedex
05.57.94.11.87/06.51.10.97.86</pre>
</body>
</html>