<?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: esri/map - invalid url request for map image in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94174#M8588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works great, both for me and other clients that tested it - except for one problem.&amp;nbsp; One of my requirements is that the map be in spatial reference 102008 and since the tiled map services cannot be re-projected, that did not work out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 19:44:30 GMT</pubDate>
    <dc:creator>KenGreen</dc:creator>
    <dc:date>2013-09-30T19:44:30Z</dc:date>
    <item>
      <title>esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94168#M8582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have put together a website around the esri/map component which displays a nationalmap.gov base layer and then our own map service as a second layer.&amp;nbsp; It works great for me, but my coworker does not see the base layer when he tries it.&amp;nbsp; In both cases we are using IE9 on Windows 7.&amp;nbsp; When I capture the network traffic, I see that his browser does a request for a nationalmap image which results in a "HTTP/1.1 404 Invalid size specified" error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;bbox=-951534.2122697033%2C-905076.2260331985%2C-949736.4146657748%2C-903152.2219268571&amp;amp;bboxSR=102008&amp;amp;imageSR=102008&amp;amp;size=641.02%2C686.02&amp;amp;f=image"&gt;http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;bbox=-951534.2122697033%2C-905076.2260331985%2C-949736.4146657748%2C-903152.2219268571&amp;amp;bboxSR=102008&amp;amp;imageSR=102008&amp;amp;size=641.02%2C686.02&amp;amp;f=image&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that the url specifies the size as: 641.02,686.02.&amp;nbsp; The national map requests from my machine always have whole numbers.&amp;nbsp; If I remove the fractional part of the size and manually request this url in the browser, it works.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a problem with the national map service for not supporting fractional sizes, or is it a problem with the esri/map component for generating requests with a fractional size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In either case, any suggestions for a work-around would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94168#M8582</guid>
      <dc:creator>KenGreen</dc:creator>
      <dc:date>2013-09-27T18:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94169#M8583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i was able to load the DRG on top of a tiled map service without any trouble.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var map;
require(["esri/map", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/layers/ArcGISDynamicMapServiceLayer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/domReady!"], function(Map, ArcGISDynamicMapServiceLayer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 map = new Map("mapDiv", { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-117, 38],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 5,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets"
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myLayer = new ArcGISDynamicMapServiceLayer("http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(myLayer);
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how exactly are you loading the DRG service?&amp;nbsp; as an ArcGISDynamicMapServiceLayer?&amp;nbsp; what about your own 'base' service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94169#M8583</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-10T23:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94170#M8584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it works fine for me too.&amp;nbsp; The problem is that it doesn't work for all clients.&amp;nbsp; Some clients produce a request to the map service which result in the invalid size error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is how I am loading the map:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var baseLayer = new EsriArcGISDynamicMapServiceLayer("http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer"),
 myLayer = new EsriArcGISDynamicMapServiceLayer(myLayerUrl),
 layersLoaded = 0;

 baseLayer.setScaleRange(54000, 0);

 //...after both layers have loaded:

 map = new EsriMap("map", {
&amp;nbsp; fadeOnZoom: true,
&amp;nbsp; navigationMode: "css-transforms",
&amp;nbsp; logo: false,
&amp;nbsp; showAttribution: false,
&amp;nbsp; extent: myLayer.fullExtent
 });

 map.addLayers([baseLayer,myLayer]);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using v3.5 of the JSAPI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94170#M8584</guid>
      <dc:creator>KenGreen</dc:creator>
      <dc:date>2021-12-10T23:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94171#M8585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have a hunch that this problem is being caused by the fact that the coordinate system defined for own map service is different than the wkid:102113 which is defined for the DRG map service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when working with a tiled basemap, you can add it to the map immediately, trust that it will set the spatial reference for the application and then see dynamic map service layers and feature layers reproject on the fly.&amp;nbsp; since you are working only with dynamic map service layers, i would recommend loading the base layer first and then waiting to load your own layer after the first layer has been loaded successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;also, within the map constructor you can't get a reference to the full extent of a layer you haven't loaded yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can do something like this, but i'd actually recommend hardcoding an extent object based on your own service and passing it to the map constructor instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var baseLayer = new ArcGISDynamicMapServiceLayer("http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
map = new Map("mapDiv", {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //even if myLayer has already been instantiated, fullExtent will return null until its actually been loaded in the map
&amp;nbsp;&amp;nbsp;&amp;nbsp; //extent: myLayer.fullExtent
});
&amp;nbsp;&amp;nbsp; 
map.on("layers-add-result", addDynLayer);&amp;nbsp;&amp;nbsp; 
map.addLayers([baseLayer]);
&amp;nbsp;&amp;nbsp; 
function addDynLayer() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("layer-add-result", function(target) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(target.layer.fullExtent);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&amp;nbsp; 
&amp;nbsp; 
var myLayer = new ArcGISDynamicMapServiceLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer");
map.addLayer(myLayer);
}&amp;nbsp;&amp;nbsp; 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94171#M8585</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-10T23:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94172#M8586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My map service is based on spatial reference 102008.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also see this problem when using this base map with spatial reference 4326:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://services.nationalmap.gov/ArcGIS/rest/services/transportation/MapServer"&gt;http://services.nationalmap.gov/ArcGIS/rest/services/transportation/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the myLayer.fullExtent and found that it is indeed defined at the point in time when I call the map constructor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed my code to serial the layer loading.&amp;nbsp; I now load myLayer in the layer-add-result handler for the load of the base map.&amp;nbsp; It still works for me and and I still find that some other clients have the issue with the invalid size parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 18:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94172#M8586</guid>
      <dc:creator>KenGreen</dc:creator>
      <dc:date>2013-09-30T18:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94173#M8587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what happens when you load an ArcGISTiledMapServiceLayer basemap using a service like &lt;/SPAN&gt;&lt;A href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"&gt;this one&lt;/A&gt;&lt;SPAN&gt; instead of working with multiple ArcGISDynamicMapServiceLayers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 19:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94173#M8587</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-09-30T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94174#M8588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works great, both for me and other clients that tested it - except for one problem.&amp;nbsp; One of my requirements is that the map be in spatial reference 102008 and since the tiled map services cannot be re-projected, that did not work out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 19:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94174#M8588</guid>
      <dc:creator>KenGreen</dc:creator>
      <dc:date>2013-09-30T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94175#M8589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the first layer you load is going to determine the coordinate system displayed in the application itself, so please try loading your own layer first and confirming whether or not map.spatialReference returns the appropriate 'wkid' in the console.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is your own service available on the public internet? if so, id be happy to take a deeper look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 19:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94175#M8589</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-09-30T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: esri/map - invalid url request for map image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94176#M8590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried reversing the order the layers are loaded, and again it works fine for me and not for the other clients that are having issues with this.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The site is only available on my companies intranet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps I should address this with ESRI support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 23:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-map-invalid-url-request-for-map-image/m-p/94176#M8590</guid>
      <dc:creator>KenGreen</dc:creator>
      <dc:date>2013-09-30T23:27:21Z</dc:date>
    </item>
  </channel>
</rss>

