<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: seeking samples or documentation on using multiple geocoders and geocoderMenu in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762421#M70640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for fiddle, I was using api version 3.5. Upgrade is in order.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Aug 2013 14:54:48 GMT</pubDate>
    <dc:creator>PatKeegan</dc:creator>
    <dc:date>2013-08-16T14:54:48Z</dc:date>
    <item>
      <title>seeking samples or documentation on using multiple geocoders and geocoderMenu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762418#M70637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking for a sample or documentation on how to configure the geocoder digit to use multiple custom locators.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to construct my geocoder with multiple geocoding service and allow users to change between them via the geocoderMenu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this very cool working example but it was a bit more complex than i was looking for: &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/geocoder-search-widget-js" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/Esri/geocoder-search-widget-js&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my code (which does not show the geocoderMenu) is something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp; var geocoder [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var custom1 = {
&amp;nbsp;&amp;nbsp; url : "some url for a locator",
&amp;nbsp;&amp;nbsp; name : "Address",
&amp;nbsp;&amp;nbsp; outFields : "*",
&amp;nbsp;&amp;nbsp; singleLineFieldName : "Address"
&amp;nbsp; };
&amp;nbsp; geocoder.push(custom1)

&amp;nbsp; var custom2 = {
&amp;nbsp;&amp;nbsp; url: "some url for a locator",
&amp;nbsp;&amp;nbsp; name: "Name",
&amp;nbsp;&amp;nbsp; outFields : "*",&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; singleLineFieldName: "PlaceName"
&amp;nbsp; };&amp;nbsp; 
&amp;nbsp; geocoder.push(custom2)


 var geocoder = new esri.dijit.Geocoder({
&amp;nbsp; map : map,
&amp;nbsp; geocoders : geocoder,
&amp;nbsp; autoComplete: true,
&amp;nbsp; theme : "simpleGeocoder",
&amp;nbsp; geocoderMenu: true,
&amp;nbsp; arcgisGeocoder : false
 }, "webmap-toolbar-right");
 geocoder.startup();

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762418#M70637</guid>
      <dc:creator>PatKeegan</dc:creator>
      <dc:date>2021-12-12T08:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: seeking samples or documentation on using multiple geocoders and geocoderMenu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762419#M70638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a fiddle showing an example of the geocoder using multiple locators: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/DC2g2/"&gt;http://jsfiddle.net/DC2g2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 22:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762419#M70638</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-08-14T22:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: seeking samples or documentation on using multiple geocoders and geocoderMenu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762420#M70639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;its probably causing problems that you use the same variable name for your array of locators and the widget itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you also need to use an equal sign when instantiating an empty array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so...&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//was
var geocoder []

//should be
var geocoderz = [];
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:24:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762420#M70639</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-12T08:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: seeking samples or documentation on using multiple geocoders and geocoderMenu</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762421#M70640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for fiddle, I was using api version 3.5. Upgrade is in order.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 14:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/seeking-samples-or-documentation-on-using-multiple/m-p/762421#M70640</guid>
      <dc:creator>PatKeegan</dc:creator>
      <dc:date>2013-08-16T14:54:48Z</dc:date>
    </item>
  </channel>
</rss>

