<esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" visibleLayers="{new ArrayList(['nexrad-n0r'])}" />
This works for me too:<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags"> <esri:Map id="map"> <esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi"> <esri:visibleLayers> <s:ArrayList> <fx:String>nexrad-n0r</fx:String> </s:ArrayList> </esri:visibleLayers> </esri:WMSLayer> </esri:Map> </s:Application>Can you show more of your Map code like what is the base layer and what is the Map's extent and spatial reference?
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags"> <esri:Map id="map"> <esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi"> <esri:visibleLayers> <s:ArrayList> <fx:String>nexrad-n0r</fx:String> </s:ArrayList> </esri:visibleLayers> </esri:WMSLayer> </esri:Map> </s:Application>
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ import mx.collections.ArrayList; ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <esri:Map id="map" top="76" bottom="10" left="9" right="10"> <esri:WMSLayer id="weatherMap" url="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi" visibleLayers="{new ArrayList(['nexrad-n0r'])}" /> </esri:Map> </s:Application>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.