<?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 dojoLoader multipleDefine Error when map initialize in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135405#M12597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used ArcGIS API for JavaScript to display a demo map on my webpage.Firstly, I used the single page without thirdpart libs and the result as expect.However, when embed the map init function to the framework of my project, the error of multipleDefine appears. Even if use the basemap 'streets-navigation-vector' instead of 'streets', the map disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried all the reference methods,regardless the api is local or online, the error still exists. I doubt there's relate between dojo and jquery/knockout or others unexpect, such as Asynchronous Module Definition(AMD) conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error: multipleDefine(...)&lt;/P&gt;&lt;P&gt;src: dojoLoader&lt;/P&gt;&lt;P&gt;vector-tile.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;ArcGIS API for JavaScript 3.16&lt;/P&gt;&lt;P&gt;jquery-1.11.1.min.js&lt;/P&gt;&lt;P&gt;knockout-3.3.0.debug.js&lt;/P&gt;&lt;P&gt;koExternalTemplateEngine_all.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;multipleDefine error in dojoLoader.&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2128" data-containertype="14" data-objectid="119518" data-objecttype="1" href="https://community.esri.com/thread/119518"&gt;https://community.esri.com/thread/119518&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdojotoolkit.org%2Freference-guide%2F1.9%2Floader%2Famd.html" rel="nofollow" target="_blank"&gt;http://dojotoolkit.org/reference-guide/1.9/loader/amd.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 09:37:33 GMT</pubDate>
    <dc:creator>LeoDeng</dc:creator>
    <dc:date>2016-04-14T09:37:33Z</dc:date>
    <item>
      <title>dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135405#M12597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used ArcGIS API for JavaScript to display a demo map on my webpage.Firstly, I used the single page without thirdpart libs and the result as expect.However, when embed the map init function to the framework of my project, the error of multipleDefine appears. Even if use the basemap 'streets-navigation-vector' instead of 'streets', the map disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried all the reference methods,regardless the api is local or online, the error still exists. I doubt there's relate between dojo and jquery/knockout or others unexpect, such as Asynchronous Module Definition(AMD) conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Error: multipleDefine(...)&lt;/P&gt;&lt;P&gt;src: dojoLoader&lt;/P&gt;&lt;P&gt;vector-tile.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;ArcGIS API for JavaScript 3.16&lt;/P&gt;&lt;P&gt;jquery-1.11.1.min.js&lt;/P&gt;&lt;P&gt;knockout-3.3.0.debug.js&lt;/P&gt;&lt;P&gt;koExternalTemplateEngine_all.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;multipleDefine error in dojoLoader.&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2128" data-containertype="14" data-objectid="119518" data-objecttype="1" href="https://community.esri.com/thread/119518"&gt;https://community.esri.com/thread/119518&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdojotoolkit.org%2Freference-guide%2F1.9%2Floader%2Famd.html" rel="nofollow" target="_blank"&gt;http://dojotoolkit.org/reference-guide/1.9/loader/amd.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135405#M12597</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-04-14T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135406#M12598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Have have you tried the script deffer as suggested in this comment:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/119518#comment-469973" title="https://community.esri.com/thread/119518#comment-469973"&gt;https://community.esri.com/thread/119518#comment-469973&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135406#M12598</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-14T12:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135407#M12599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have tried it, but it's not work in my case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:09:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135407#M12599</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-04-14T14:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135408#M12600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; and you are sure that you have all the other libraries load before you load esri?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 14:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135408#M12600</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-14T14:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135409#M12601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Robert:&lt;/P&gt;&lt;P&gt;I've used&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script defer src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%2Farcgis_js_api%2Flibrary%2F3.16%2F3.16%2Finit.js" rel="nofollow" target="_blank"&gt;http://localhost/arcgis_js_api/library/3.16/3.16/init.js&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt; just before &amp;lt;/head&amp;gt; in index.html. And while basemap choose 'streets', it's works. When replace 'streets' to 'streets-navigation-vector', console error multipleDefine(...).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 00:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135409#M12601</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-04-15T00:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135410#M12602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;I've tested all the basemap parameters, and the result showd that all the 'non-vector' basemap appear normal. On the contrary, the 'vector' types all get dojoLoader multipleDefine Error. The scripts for test are showd below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var map = null;
var directions = null;


require([
&amp;nbsp;&amp;nbsp;&amp;nbsp; //"esri/urlUtils", "esri/map", "esri/dijit/Directions",&amp;nbsp; // multipleDefine
&amp;nbsp; "esri/urlUtils", "esri/map",
&amp;nbsp; "dojo/parser", "dojo/domReady!"
], function(
&amp;nbsp;&amp;nbsp;&amp;nbsp; //urlUtils, Map, Directions,
&amp;nbsp; urlUtils, Map,
&amp;nbsp; parser
)
{
&amp;nbsp; parser.parse();


&amp;nbsp; map = new Map($el.find(".map")[0], {
&amp;nbsp; basemap: "gray",&amp;nbsp; // OK.["streets","gray","satellite","hybrid","terrain","topo","dark-gray","oceans","national-geographic","osm"]
&amp;nbsp; //basemap: "streets-navigation-vector",&amp;nbsp; // dojoLoader multipleDefine Error Set: ["streets-navigation-vector","dark-gray-vector","gray-vector","streets-vector","topo-vector","streets-night-vector","streets-relief-vector"]
&amp;nbsp; center: [-73.93, 42.814],
&amp;nbsp; zoom: 14
&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice, besides the basemap question, while require the "esri/dijit/Directions", will get the multipleDefine Error, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The environment of the browser is Google Chrome Version 49.0.2623.110.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135410#M12602</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2021-12-11T07:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: dojoLoader multipleDefine Error when map initialize</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135411#M12603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Robert,&lt;/P&gt;&lt;P&gt;We've solve the problem.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conclusion:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The ShortCutKeys.js(we defined early) expose an AMD model which contains code “define(ShortCutKeys)” conflicts with esri js api.&lt;/P&gt;&lt;P&gt;And we comment the lines of AMD, everything seems well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 07:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojoloader-multipledefine-error-when-map/m-p/135411#M12603</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2016-04-15T07:54:19Z</dc:date>
    </item>
  </channel>
</rss>

