<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I think that means that MapServer isn't returning any results.
There are many potential causes for that. It could be the query
is running properly but not returning any features because nothing
matched, it could be there is a problem in the mapfile or mapbook,
maybe an encoding problem, ...</p>
<p>Can you see what GeoMoose is sending to mapserver and how
mapserver is responding using the browser developer tools?<br>
</p>
<div class="moz-cite-prefix">On 1/12/19 5:08 PM, Stathis G.
Arapostathis wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAH+BHXnFALHN=OCCTf5VmcLqtQB2cfjt1Hp1UKqMKz599VaE1w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I followed the example of the parcels dataset of the
gm3 demo and I created two map-sources in mapbook for the
same dataset. </div>
<div><br>
</div>
<div>The first one uses type = mapserver while the second
one uses type = mapserver-wfs. </div>
<div><br>
</div>
<div>I did this because the search service does not work
with the mapserver type.</div>
<div><br>
</div>
<div>I can see both of my layers in my geomoose app (the
names of the layers are cemeteries/cemeteries and
vector-cemeteries/cemeteries).</div>
<div><br>
</div>
<div>But:</div>
<div><br>
</div>
<div>When i use search with the the
vector-cemeteries/cemeteries layer (type=mapserver-wfs)
the layer is recognized (I see layer:1 in the results) but
the features are not (I see features:0 in the results). As
a result search is not working properly.<br>
</div>
<div><br>
</div>
<div>I use the same .map file for both of them layers of
mapbook. </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Below you can find the search template and the addition
in app.js</div>
<div>===================================</div>
<div><br>
</div>
<div>My search template is pretty simple:</div>
<div>
<div><![CDATA[</div>
<div> <div class="search-result"></div>
<div> <div class="search-label"></div>
<div> {{ <a
href="http://properties.name" moz-do-not-send="true">properties.name</a>
}}</div>
<div> </div></div>
<div> <div class="search-action"></div>
<div> <div style="padding:
2px"></div>
<div> <a
onClick="app.zoomToExtent([{{ properties.boundedBy |
join }}])" class="zoomto-link"></div>
<div> <i class="fa
fa-search"></i></div>
<div> {{ <a
href="http://properties.id" moz-do-not-send="true">properties.id</a>
}}</div>
<div> </a></div>
<div> </div></div>
<div> </div></div>
<div> <div
class="search-address"></div>
<div> {{ <a
href="http://properties.name" moz-do-not-send="true">properties.name</a>
}}<br/></div>
<div> {{ properties.city
}}<br/></div>
<div> </div></div>
<div> </div></div>
<div> ]]></div>
</div>
<div><br>
</div>
<div>The javascript code of the app.js is:</div>
<div><br>
</div>
<div>
<div>app.registerService('search-cemeteries',
SearchService, {</div>
<div> searchLayers:
['vector-cemeteries/cemeteries'],</div>
<div><span style="white-space:pre"> </span>fields: [</div>
<div> {type: 'select', label: 'City', name:
"id",</div>
<div> options: [</div>
<div> { label: "Ακρωτήριο Πούντα", value:
"17" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Αλεξανδρούπολη", value: "6" },</div>
<div> { label: "Θεσσαλονίκη (Ζέιτενλινκ)",
value: "2" },</div>
<div><span style="white-space:pre"> </span> { label:
"Καλαμαριά (κοιμητήριο)", value: "18" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Καλαμαριά (επιτύμβιες στήλες)", value: "3" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Καλοσκοπή", value: "10" },</div>
<div> { label: "Καρούτες", value: "12" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Κάτω Κορυφή", value: "11" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Μεσόβουνο (Κοζάνη)", value: "9" },</div>
<div> { label: "Μούδρος", value: "7" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Μπράλος", value: "8" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Παλαιό Φάληρο", value: "13" },</div>
<div> { label: "Πειραιάς", value: "1" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Πεντάλοφος (Κοζάνη)", value: "16" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Ρέθυμνο", value: "4" },</div>
<div> { label: "Στυλίδα", value: "14" },</div>
<div><span style="white-space:pre"> </span>{ label:
"Σφακτηρία (Μεσσηνία)", value: "15" },</div>
<div> { label: "Χανιά", value: "5" }</div>
<div> ]</div>
<div><span style="white-space:pre"> </span> }</div>
<div> ]</div>
<div> </div>
<div> });</div>
</div>
<div><br>
</div>
</div>
</div>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tbody>
<tr>
<td style="width:55px;padding-top:13px"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon"
target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
alt="" style="width: 46px; height: 29px;"
moz-do-not-send="true" width="46" height="29"></a></td>
<td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
<a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link"
target="_blank" style="color:#4453ea"
moz-do-not-send="true">www.avast.com</a> </td>
</tr>
</tbody>
</table>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/geomoose-users">https://lists.osgeo.org/mailman/listinfo/geomoose-users</a></pre>
</blockquote>
</body>
</html>