kgebiconsulting

esri/map - invalid url request for map image

Discussion created by kgebiconsulting on Sep 27, 2013
Latest reply on Sep 30, 2013 by kgebiconsulting
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.  It works great for me, but my coworker does not see the base layer when he tries it.  In both cases we are using IE9 on Windows 7.  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:

http://raster.nationalmap.gov/ArcGIS/rest/services/DRG/TNM_Digital_Raster_Graphics/MapServer/export?dpi=96&transparent=true&format=png8&bbox=-951534.2122697033%2C-905076.2260331985%2C-949736.4146657748%2C-903152.2219268571&bboxSR=102008&imageSR=102008&size=641.02%2C686.02&f=image

Notice that the url specifies the size as: 641.02,686.02.  The national map requests from my machine always have whole numbers.  If I remove the fractional part of the size and manually request this url in the browser, it works. 

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.

In either case, any suggestions for a work-around would be appreciated!

Ken

Outcomes