<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">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">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">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">
<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"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></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">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>