<?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: ArcGIS for Javascript on ASP.NET Core project in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1202660#M78280</link>
    <description>&lt;P&gt;where should i write the code for map load code.in site.js. write the code like below.&lt;/P&gt;&lt;P&gt;function showMap() {&lt;BR /&gt;require([&lt;BR /&gt;"esri/config",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/layers/FeatureLayer",&lt;BR /&gt;"jquery",&lt;BR /&gt;"bootstrap"&lt;BR /&gt;], function (esriConfig, Map, MapView, FeatureLayer) {&lt;BR /&gt;const map = new Map({ basemap: "arcgis-topographic" });&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;map: map,&lt;BR /&gt;center: [-118.80543, 34.02700],&lt;BR /&gt;zoom: 13&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//Trailheads feature layer (points)&lt;BR /&gt;const trailheadsLayer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0" target="_blank"&gt;https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(trailheadsLayer);&lt;/P&gt;&lt;P&gt;//Trails feature layer (lines)&lt;BR /&gt;const trailsLayer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0" target="_blank"&gt;https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(trailsLayer, 0);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;but i did not see any map on index page and there is no error in console.actually i&amp;nbsp; cant understand where should i call showMap function.Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 14 Aug 2022 07:34:02 GMT</pubDate>
    <dc:creator>NadirHussain1</dc:creator>
    <dc:date>2022-08-14T07:34:02Z</dc:date>
    <item>
      <title>ArcGIS for Javascript on ASP.NET Core project</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1131139#M75808</link>
      <description>&lt;P&gt;Is there a way to use ArcGIS Javascript on ASP.NET Core website. I've been trying to use it but it is causing an error like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MeloiMagpantay_0-1641469227163.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30906iCF6441CD38941FF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MeloiMagpantay_0-1641469227163.png" alt="MeloiMagpantay_0-1641469227163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to follow the get started documentation.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 11:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1131139#M75808</guid>
      <dc:creator>MeloiMagpantay</dc:creator>
      <dc:date>2022-01-06T11:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Javascript on ASP.NET Core project</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1131235#M75815</link>
      <description>&lt;P&gt;Well, I haven't used ASP in years, so I spun up a new project locally and it looks like the default app uses a local jquery and bootstrap. This is where the error comes from because jquery has a require method it uses. We can work around this in the "Pages/Shared/_Layout.cshtml" file with a dojoConfig to define where the local packages can be loaded from.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;script&amp;gt;
    var dojoConfig = {
    packages: [
        {
        name: "jquery",
        location: location.pathname.replace(/\/[^/]+$/, "") + "lib/jquery/dist",
        main: "jquery.min",
        },
        {
        name: "bootstrap",
        location:
            location.pathname.replace(/\/[^/]+$/, "") + "lib/bootstrap/dist/js",
        main: "bootstrap.bundle.min",
        },
    ],
    };
&amp;lt;/script&amp;gt;
&amp;lt;script src="https://js.arcgis.com/4.22/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your "wwwroot/js/site.js" file, when you load the JSAPI and require the modules, you can load the jquery and bootstrap stuff.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
  "esri/WebMap",
  "esri/views/MapView",
  "jquery",
  "bootstrap"
], function (...) {...})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This fixed the issue in my local app, should fix the issue for you too. Now I feel like I should do something with dotnet...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 16:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1131235#M75815</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-01-06T16:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Javascript on ASP.NET Core project</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1202660#M78280</link>
      <description>&lt;P&gt;where should i write the code for map load code.in site.js. write the code like below.&lt;/P&gt;&lt;P&gt;function showMap() {&lt;BR /&gt;require([&lt;BR /&gt;"esri/config",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/layers/FeatureLayer",&lt;BR /&gt;"jquery",&lt;BR /&gt;"bootstrap"&lt;BR /&gt;], function (esriConfig, Map, MapView, FeatureLayer) {&lt;BR /&gt;const map = new Map({ basemap: "arcgis-topographic" });&lt;BR /&gt;const view = new MapView({&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;map: map,&lt;BR /&gt;center: [-118.80543, 34.02700],&lt;BR /&gt;zoom: 13&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//Trailheads feature layer (points)&lt;BR /&gt;const trailheadsLayer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0" target="_blank"&gt;https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(trailheadsLayer);&lt;/P&gt;&lt;P&gt;//Trails feature layer (lines)&lt;BR /&gt;const trailsLayer = new FeatureLayer({&lt;BR /&gt;url: "&lt;A href="https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0" target="_blank"&gt;https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trails/FeatureServer/0&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;map.add(trailsLayer, 0);&lt;BR /&gt;});&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;but i did not see any map on index page and there is no error in console.actually i&amp;nbsp; cant understand where should i call showMap function.Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 07:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1202660#M78280</guid>
      <dc:creator>NadirHussain1</dc:creator>
      <dc:date>2022-08-14T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Javascript on ASP.NET Core project</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1293983#M81271</link>
      <description>&lt;P&gt;We are also getting the same issue. While we are using the version "&lt;A href="https://js.arcgis.com/4.26/&amp;quot;" target="_blank"&gt;https://js.arcgis.com/4.26/"&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Did you find any fix for this&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 09:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1293983#M81271</guid>
      <dc:creator>sajalpal</dc:creator>
      <dc:date>2023-05-30T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS for Javascript on ASP.NET Core project</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1302741#M81516</link>
      <description>&lt;P&gt;The way to get around this error is to comment out this section of your shared _layout.cshtml view&lt;/P&gt;&lt;P&gt;&amp;lt;script src="~/lib/jquery/dist/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/site.js" asp-append-version="true"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;@RenderSection("Scripts", required: false)&lt;/P&gt;&lt;P&gt;It appears to conflict with any arcgis sdk of higher than 4.15&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 00:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-for-javascript-on-asp-net-core-project/m-p/1302741#M81516</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-25T00:03:19Z</dc:date>
    </item>
  </channel>
</rss>

