<?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: Map Service not loading using Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606439#M56706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can think of 3 possibilities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Your service is cached and you are using the ArcGISDynamicMapServiceLayer directive which is for dynamic map services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You are using a reverse proxy (I noticed that you are using a non-standard port) and it is not configured correctly. See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=32634" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=32634&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I see a small typo in your code (space in the variable name 'basemapUR L'):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; {
 map=new esri.Map("mapDiv")
 var basemapURL = "http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer";
 var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapUR L);
 map.addLayer(basemap);
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:59:16 GMT</pubDate>
    <dc:creator>JohnHaddad</dc:creator>
    <dc:date>2021-12-12T01:59:16Z</dc:date>
    <item>
      <title>Map Service not loading using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606437#M56704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a local ArcGIS server using which I published a service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The service works using the "Create a Web Application" Wizard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded a sample code and it ran smoothly, the difference is the URL is online and not local to my server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to run this code using my local ArcGIS server URL and all I see is a blank screen. The map is error free. Can anybody help resolve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1&lt;/A&gt;&lt;SPAN&gt;" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;link href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css&lt;/A&gt;&lt;SPAN&gt;" rel="stylesheet" type="text/css" &amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.require("esri.map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var map;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; function init()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; map=new esri.Map("mapDiv")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; var basemapURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer" rel="nofollow" target="_blank"&gt;http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapURL);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; map.addLayer(basemap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.addOnLoad(init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;body class="caro"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;div id="mapDiv" style="width:900px;height:600px;border:1px solid #000;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: URL no is censored for security&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 17:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606437#M56704</guid>
      <dc:creator>VinayVyas</dc:creator>
      <dc:date>2011-01-28T17:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service not loading using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606438#M56705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;I have a local ArcGIS server using which I published a service. &lt;BR /&gt;The service works using the "Create a Web Application" Wizard.&lt;BR /&gt;&lt;BR /&gt;I downloaded a sample code and it ran smoothly, the difference is the URL is online and not local to my server.&lt;BR /&gt;&lt;BR /&gt;I want to run this code using my local ArcGIS server URL and all I see is a blank screen. The map is error free. Can anybody help resolve this?&lt;BR /&gt;&lt;BR /&gt;My code&lt;BR /&gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;link href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.1/js/dojo/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" &amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;&amp;nbsp; dojo.require("esri.map");&lt;BR /&gt; var map;'&lt;BR /&gt; function init()&lt;BR /&gt; {&lt;BR /&gt; map=new esri.Map("mapDiv")&lt;BR /&gt; var basemapURL = "http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer";&lt;BR /&gt; var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapURL);&lt;BR /&gt; map.addLayer(basemap);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;dojo.addOnLoad(init);&lt;BR /&gt; &lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;body class="caro"&amp;gt;&lt;BR /&gt; &amp;lt;div id="mapDiv" style="width:900px;height:600px;border:1px solid #000;"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt; &lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;PS: URL no is censored for security&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you view your service in a browser using &lt;/SPAN&gt;&lt;A href="http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer?"&gt;http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer?&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 17:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606438#M56705</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-01-28T17:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service not loading using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606439#M56706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can think of 3 possibilities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Your service is cached and you are using the ArcGISDynamicMapServiceLayer directive which is for dynamic map services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. You are using a reverse proxy (I noticed that you are using a non-standard port) and it is not configured correctly. See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=32634" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=32634&lt;/A&gt;&lt;SPAN&gt; for more info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I see a small typo in your code (space in the variable name 'basemapUR L'):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; {
 map=new esri.Map("mapDiv")
 var basemapURL = "http://8hXXXX:8399/arcgis/rest/services/Map_City/MapServer";
 var basemap = new esri.layers.ArcGISDynamicMapServiceLayer(basemapUR L);
 map.addLayer(basemap);
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606439#M56706</guid>
      <dc:creator>JohnHaddad</dc:creator>
      <dc:date>2021-12-12T01:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service not loading using Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606440#M56707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, the class attribute on the body tag should be "claro", not "caro".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 17:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-service-not-loading-using-javascript-api/m-p/606440#M56707</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-02-04T17:15:27Z</dc:date>
    </item>
  </channel>
</rss>

