<?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 Another multipleDefine error with dojoLoader and mapkitJs in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/another-multipledefine-error-with-dojoloader-and/m-p/523453#M48790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a website where I allow the users to change their map they are looking at. It starts off showing mapkitjs, they click a button and it shows Esri. I'm writing this in React. I do not have JQuery in my project or Knockout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think mapkitjs and dojo loader are conflicting, I'm just not sure how. I'm getting the multipleDefine error when the Esri ArcGis map is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I load the mapkitjs script and initialize it. Then, via esri-loader I load the arcgis scripts. Then I create the apple Map. Then, after the user clicks, I destroy that map and create the ArcGis map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first noticed there could be an issue because mapkitjs loses the ability to rotate if I call loadModules from esri-loader, even if it is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I load the ArcGis map first, then load the mapkit, it's fine (except the ability to rotate mapkit). I can switch back and forth between them. But if I create an apple map first, then an Esri map, it breaks. Of note, I don't get this error until I create the map. It does not happen when esri-loader finishes loading the modules. I can load the modules, wait a minute, then create&amp;nbsp;the arcgis map (after the mapkit map) and it'll break there. I don't know where to start debugging this and searching the forums shows most things are jQuery related. I've made sure mapkit isn't loading jQuery onto my window, it's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;instrument.js:110 Error: multipleDefine&lt;BR /&gt; at r (dojo.js:5)&lt;BR /&gt; at Ia (dojo.js:21)&lt;BR /&gt; at dojo.js:22&lt;BR /&gt; at g (dojo.js:4)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and the next line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;src: dojoLoader&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Followed by that:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt;info:&lt;/SPAN&gt;&lt;SPAN style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt;&lt;DIV class=""&gt;&lt;OL class="" style="color: #d5d5d5 !important; font-size: 11px !important;"&gt;&lt;LI class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;pid&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"esri"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;mid&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"esri/portal/support/layersCreator"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;pack&lt;/SPAN&gt;: &lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;url&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;executed&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #9980ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;…&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;cjs&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;id&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"esri/portal/support/layersCreator"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;uri&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;exports&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;setExports&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ƒ&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;config&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ƒ&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;def&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;W()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;defOrder&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;661&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;deps&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;(3)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;executed&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;injected&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;mid&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;esri/portal/support/layersCreator&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;pack&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;main&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"main"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;location&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"../esri"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;name&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"esri"&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;pid&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;esri&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;require&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;(f,g,q)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;result&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;k()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;url&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map loads, it just has no images (it's a white background). Can anyone help me with where to start looking? Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I uploaded a demo page to my site. If you go to &lt;A href="https://dieselplanning.com/"&gt;https://dieselplanning.com/&lt;/A&gt;&amp;nbsp;it'll start with an Esri map loaded first. It works, you can switch maps (bottom left button in the sidebar). You'll also see the compass rose at the bottom right flash for a second anytime the apple maps is created as it accepts rotation&amp;nbsp;then&amp;nbsp;decides not to shortly after creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you go to &lt;A href="https://dieselplanning.com/test"&gt;https://dieselplanning.com/test&lt;/A&gt;&amp;nbsp;it's the same exact page as the `ao` page, but it creates a mapkit map&amp;nbsp;first. That will create issues when you swap maps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2020 18:42:01 GMT</pubDate>
    <dc:creator>Diesel</dc:creator>
    <dc:date>2020-07-07T18:42:01Z</dc:date>
    <item>
      <title>Another multipleDefine error with dojoLoader and mapkitJs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/another-multipledefine-error-with-dojoloader-and/m-p/523453#M48790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a website where I allow the users to change their map they are looking at. It starts off showing mapkitjs, they click a button and it shows Esri. I'm writing this in React. I do not have JQuery in my project or Knockout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think mapkitjs and dojo loader are conflicting, I'm just not sure how. I'm getting the multipleDefine error when the Esri ArcGis map is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I load the mapkitjs script and initialize it. Then, via esri-loader I load the arcgis scripts. Then I create the apple Map. Then, after the user clicks, I destroy that map and create the ArcGis map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first noticed there could be an issue because mapkitjs loses the ability to rotate if I call loadModules from esri-loader, even if it is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I load the ArcGis map first, then load the mapkit, it's fine (except the ability to rotate mapkit). I can switch back and forth between them. But if I create an apple map first, then an Esri map, it breaks. Of note, I don't get this error until I create the map. It does not happen when esri-loader finishes loading the modules. I can load the modules, wait a minute, then create&amp;nbsp;the arcgis map (after the mapkit map) and it'll break there. I don't know where to start debugging this and searching the forums shows most things are jQuery related. I've made sure mapkit isn't loading jQuery onto my window, it's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;instrument.js:110 Error: multipleDefine&lt;BR /&gt; at r (dojo.js:5)&lt;BR /&gt; at Ia (dojo.js:21)&lt;BR /&gt; at dojo.js:22&lt;BR /&gt; at g (dojo.js:4)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and the next line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;src: dojoLoader&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Followed by that:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt;info:&lt;/SPAN&gt;&lt;SPAN style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="color: #bdc6cf; background-color: #242424; font-weight: 400; font-size: 11px;"&gt;&lt;DIV class=""&gt;&lt;OL class="" style="color: #d5d5d5 !important; font-size: 11px !important;"&gt;&lt;LI class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;pid&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"esri"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;mid&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"esri/portal/support/layersCreator"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;pack&lt;/SPAN&gt;: &lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;url&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #e93f3b;"&gt;"https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #a9a9a9;"&gt;executed&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #9980ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;…&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;cjs&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;id&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"esri/portal/support/layersCreator"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;uri&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;exports&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;setExports&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ƒ&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;config&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ƒ&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;def&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;W()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;defOrder&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;661&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;deps&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;(3)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;executed&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;injected&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;mid&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;esri/portal/support/layersCreator&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;pack&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;main&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"main"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;location&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"../esri"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;name&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"esri"&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;pid&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;esri&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;require&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;(f,g,q)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;result&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #556af2;"&gt;ƒ&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;k()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;url&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;https://js.arcgis.com/4.15/esri/portal/support/layersCreator.js&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map loads, it just has no images (it's a white background). Can anyone help me with where to start looking? Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I uploaded a demo page to my site. If you go to &lt;A href="https://dieselplanning.com/"&gt;https://dieselplanning.com/&lt;/A&gt;&amp;nbsp;it'll start with an Esri map loaded first. It works, you can switch maps (bottom left button in the sidebar). You'll also see the compass rose at the bottom right flash for a second anytime the apple maps is created as it accepts rotation&amp;nbsp;then&amp;nbsp;decides not to shortly after creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you go to &lt;A href="https://dieselplanning.com/test"&gt;https://dieselplanning.com/test&lt;/A&gt;&amp;nbsp;it's the same exact page as the `ao` page, but it creates a mapkit map&amp;nbsp;first. That will create issues when you swap maps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 18:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/another-multipledefine-error-with-dojoloader-and/m-p/523453#M48790</guid>
      <dc:creator>Diesel</dc:creator>
      <dc:date>2020-07-07T18:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Another multipleDefine error with dojoLoader and mapkitJs</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/another-multipledefine-error-with-dojoloader-and/m-p/523454#M48791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: rgba(0, 0, 0, 0.85); margin: 0.0px 0.0px 0.0px 0.0px;"&gt;If you research these multiple defines there is normally another library creating the issue and the common answers are to load the ArcGis script after those libraries or load the libraries with dojo.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.85); margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.85); margin: 0.0px 0.0px 0.0px 0.0px;"&gt;The problem here, I realized, is when you make a Mapkit map, it loads more scripts. So loading the mapkit API loads scripts, then creating a mapkit map loads more scripts. So what I have to do is load the mapkit API. Create a map, then destroy the map, then load the ArcGis API. It works after that.&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.85); margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: rgba(0, 0, 0, 0.85); margin: 0.0px 0.0px 0.0px 0.0px;"&gt;The current problem now is figuring out when the create Map is done making all its calls, it has no method or listener to tell you when that is done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2020 20:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/another-multipledefine-error-with-dojoloader-and/m-p/523454#M48791</guid>
      <dc:creator>Diesel</dc:creator>
      <dc:date>2020-07-19T20:37:59Z</dc:date>
    </item>
  </channel>
</rss>

