<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hello.<br>
<br>
I want to display in LizMap a custom popup depending on the value of
an attribute of my clicked object...<br>
<br>
For example:<br>
if the attribute "type" is equal to "RF1", I want to display a popup
with the value of an attribute, for example {$name}, and 2 images
(always the same for all type RF1, so hard-coded): image1.jpg and
image2.jpg<br>
if the attribute "type" is "RF2", I want to display a popup with the
value of another attribute, for example {$address}, but with only 1
image (always the same one for all type RF2, so hard-coded too) :
image1.jpg<br>
if the attribute "type" is "RF3", I want to display a popup with the
value of another attribute, for example {$surname}, but with a
dynamic image read from the attribut {picture}<br>
<br>
Basically I need to insert a control structure in my popup template.<br>
Something like:<br>
<blockquote><font face="Courier New, Courier, monospace">if ({</font><font
face="Courier New, Courier, monospace">type}=="RF1") {</font><br>
<font face="Courier New, Courier, monospace"> <p>The name:
{$name}</p></font><br>
<font face="Courier New, Courier, monospace"> <p></font><br>
<font face="Courier New, Courier, monospace"> <img
src="image1.jpg"/></font><br>
<font face="Courier New, Courier, monospace"> <img
src="image2.jpg"/></font><br>
<font face="Courier New, Courier, monospace"> </p></font><br>
<font face="Courier New, Courier, monospace">} else if ({</font><font
face="Courier New, Courier, monospace">type}=="RF2") {</font><br>
<font face="Courier New, Courier, monospace"> <p>The
address: {$</font><font face="Courier New, Courier, monospace"><font
face="Courier New, Courier, monospace">address</font>}</p></font><br>
<font face="Courier New, Courier, monospace">
<p></font><br>
<font face="Courier New, Courier, monospace">
<img src="image1.jpg"/></font><br>
<font face="Courier New, Courier, monospace"> </p></font><br>
<font face="Courier New, Courier, monospace">} </font><font
face="Courier New, Courier, monospace">else if ({</font><font
face="Courier New, Courier, monospace">type}=="RF3") {</font><br>
<font face="Courier New, Courier, monospace"> <p>The
surname: {$surname</font><font face="Courier New, Courier,
monospace">}</p></font><br>
<font face="Courier New, Courier, monospace">
<p></font><br>
<font face="Courier New, Courier, monospace">
<img src="</font><font face="Courier New, Courier,
monospace">{picture}"/></font><br>
<font face="Courier New, Courier, monospace"> </p></font><br>
<font face="Courier New, Courier, monospace">}</font></blockquote>
But... is it possible in QGis ? Or in LizMap? <br>
<br>
Thank you for your expertise.<br>
<br>
Vincent.<br>
<br>
<br>
</body>
</html>