Hi,
I just downloaded the latest version of the Basic Viewer app. I set the search tool to search in 2 features. In the "default.js" file, I set locati to "false" (I don't want to search with ESRI geocoder), and I added my search layers like this:
<SPAN class="string token">"searchLayers"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"id"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Adresses_1330"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"fields"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"Adr_Inc"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"placeholder"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Adresse"</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="string token">"id"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Limites_de_lot_sans_remplissage_5853"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"fields"</SPAN><SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"NO_LOT"</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>The search itself works fine, but there's 3 annoying things I need to fix:
- The placeholder won't appear, the search field is just blank on loading;

- The search tool is set by default on the first layer, but I would like to have it set on "ALL" when the app load (I would also get rid of the layer selector and have it on "ALL" only);

- If I can't get rid of the search layer selector, I'd like to be at least able to change the name of the layers in the menu to something more meaningfull to general public.

Anyone can help?
Thanks