Select to view content in your preferred language

Add a WMS Service in FlexViewer 3.2.1

858
3
07-01-2011 02:54 AM
francescodi_vito
Deactivated User
Hi guys
I'm trying to add in my FlexViewer a WMS Service but when a run the application i don't see the wms
this is the code that i write in config.xml
<layer label="geologia"
    type="wms"
    skipgetcapabilities="true"
    url="http://sgi1.isprambiente.it/ArcGIS/services/servizi/geologia1M/mapserver/WMSServer?"
    version="1.3.0"
    visible="true"
    wkid="4326"
/>
It's wrong?
Where is the error?....
If my code is wrong what is the method to add a wms in FlexViewer?
Thanks
Tags (2)
0 Kudos
3 Replies
MLowry
by
Frequent Contributor
Hi guys
I'm trying to add in my FlexViewer a WMS Service but when a run the application i don't see the wms
this is the code that i write in config.xml
<layer label="geologia"
    type="wms"
    skipgetcapabilities="true"
    url="http://sgi1.isprambiente.it/ArcGIS/services/servizi/geologia1M/mapserver/WMSServer?"
    version="1.3.0"
    visible="true"
    wkid="4326"
/>
It's wrong?
Where is the error?....
If my code is wrong what is the method to add a wms in FlexViewer?
Thanks

You have to specify the visible layers.

Example (that I can't get to work by the way, but the syntax is correct):
  
<layer label="Active Fires"
                   type="wms"
                   visible="true"
                   visiblelayers="Last 24 hour fire detections"
                   url="http://activefiremaps.fs.fed.us/cgi-bin/mapserv.exe?map=conus.map&"
                   skipgetcapabilities="true"
     wkid="4269"
                   version="1.1.1"/>
0 Kudos
francescodi_vito
Deactivated User
Thanks GISProgrammer9,
i try in this way
thanks
0 Kudos
NathanEnge
Esri Contributor
0 Kudos