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

1927
14
Jump to solution
10-02-2012 07:20 AM
JeffPace
MVP Alum
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&TRANSPAREN...

WORKS
http://www.mymanatee.org/lizardtech/iserv/ows?SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&TRANSPAREN...

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?
0 Kudos
14 Replies
__Rich_
Occasional Contributor III
How did you get on, Jeff?
0 Kudos
JeffPace
MVP Alum
it seems like unsetting those manual settings has helped alot, i have not seen the error since.
0 Kudos
__Rich_
Occasional Contributor III
Good stuff! 🙂
0 Kudos
JohnnyPenet
New Contributor
Hi Jef,

Did you already test the use of WMS in API version 3.3. I have an application that loads WMS layers and until the API version 3.2 it works fine. Moving to API version 3.3 suddenly I had SRS/CRS missing in the getmap request as you stated earlier.
I dynamically load layers. Until now I did not had a response from ESRI.

Johnny
0 Kudos
JeffPace
MVP Alum
No we have not migrated yet, but I have not noticed anything in our dev environment.  I will keep an eye out for it.

Jeff
0 Kudos