Select to view content in your preferred language

Add OGC-WMS Service to FlexApp

3911
1
03-23-2015 12:30 PM
mpboyle
Frequent Contributor

Is it possible to add a WMS service as a layer in a Flex Viewer app?  I'm a little confused that all the layers show as the same server, how do you specify a specific layer?

Tags (1)
0 Kudos
1 Reply
AnthonyGiles
Honored Contributor

Matthew,

you use the visiblelayers attribute to ​identify which layers you want, eg:

<layer label="Cartorisque WMS 67" type="wms" visible="false" alpha="1" skipgetcapabilities="true" version="1.1.0" visiblelayers="ALEA_SEISME_SYNTHESE,ALEA_SEISME_SYNTHESE" url="http://cartorisque.prim.net/wms/67?" />

To find out your layer name look at the capabilities of your wms:

http://cartorisque.prim.net/wms/67?request=getcapabilities

Regards

Anthony

0 Kudos