Select to view content in your preferred language

Problem viewing wms layer

754
3
Jump to solution
06-10-2014 07:35 AM
AndreaV
Regular Contributor
Hi, I'm trying to add a wms "operational layer" or  "basemap layer" in ArcGIS Viewer for Flex - Application builder v3.6.

But it seems that "viewer" sends requests to wms server with a epsg:102100 that is not recognized from wms server and generate an error.

If I manually substitute epsg:102100 with epsg:3857, for example in a browser dialog, it is all ok. Where can i change that default behaviour in viewer?

Example
Request generated from viewer:

http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?VERSION=1%2E3%2E0&TRANSPARENT=TRUE&S...

Correct request:

http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?VERSION=1%2E3%2E0&TRANSPARENT=TRUE&S...

thanks in advance
Andrea
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
3 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
AnthonyGiles
Honored Contributor
Andrea,

Try this:

<operationallayers>
   <layer label="Polygon" type="wms" visible="true" alpha="1"
       url="http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms"
       visiblelayers="rt_ambamm.idcomuni.rt.poly"
       wkid="3857"
       version="1.3.0" />
</operationallayers>


Regards

Anthony
0 Kudos
AndreaV
Regular Contributor
great, it works!
thank you all
0 Kudos