AnsweredAssumed Answered

WMS layers occassionally failing, not including SRS/CRS in request

Question asked by jeff.pace on Oct 2, 2012
Latest reply on Jan 16, 2013 by jeff.pace
using api 3.2

layer = new esri.layers.WMSLayer(lay.url);         layer.setVisibleLayers([lay.catalog]);         layer.setImageFormat("png");         layer.spatialReference = new esri.SpatialReference({wkid:102100});         layer.layerInfos= new esri.layers.WMSLayerInfo({name:lay.label,title:lay.label});         layer.version= "1.1.1";         layer.id= lay.id;


For some reason the request is failing occassionally (inconsistently) because the URL does not include the SRS/CRS (i tried 1.3.0 as well).

FAILS
http://www.mymanatee.org/lizardtech/iserv/ows?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&STYLES=&VERSION=1.1.1&LAYERS=1978&WIDTH=1600&HEIGHT=791&BBOX=-9233714.17262806,3140877.1703132535,-9111414.927371942,3201338.8596867467

WORKS
http://www.mymanatee.org/lizardtech/iserv/ows?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=TRUE&STYLES=&VERSION=1.1.1&LAYERS=1978&WIDTH=1600&HEIGHT=791&BBOX=-9233714.17262806,3140877.1703132535,-9111414.927371942,3201338.8596867467&SRS=EPSG:102100

all i did was manually add the SRS at the end.  But i cannot do this in my code, since its just a navigation event requesting a new tile?

Outcomes