Select to view content in your preferred language

Add WMS?

585
2
03-19-2011 10:16 AM
BartłomiejStaroń
Occasional Contributor
How to add WMS servis to arcgis api for flex?
Tags (2)
0 Kudos
2 Replies
Drew
by
Frequent Contributor
How to add WMS servis to arcgis api for flex?


see esri samples
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ExtendDynamicLayer_WMS
0 Kudos
SteveTest
Deactivated User
see esri samples
http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=ExtendDynamicLayer_WMS


I can get this sample to work fine with my WMS service but why can't we use <esri:WMSLayer> ??

The following snippet returns a blank map, but if I use the technique descriped by extending the dynamic layer then I see the map !!

I'm using agslib-2.2-2010-12-08.swc
Fail Code:
  <esri:Map >
  <esri:extent>
   <esri:Extent xmin="115" ymin="-41" xmax="151" ymax="-9">
    <esri:SpatialReference wkid="4326"/>
   </esri:Extent>
  </esri:extent>
  <esri:WMSLayer url="http://192.168.1.12:8080/geoserver/wms"  imageFormat="png">
    <esri:visibleLayers>                                  
     <s:ArrayList>                                          
      <fx:String>"topp:states"</fx:String>                                          
       </s:ArrayList>
     </esri:visibleLayers>  
  </esri:WMSLayer>
 </esri:Map>



EDIT:  This problem is now resolved by following the working example posted by Dara Paddock in WMS-Problem-with-Flex-2.2-and-WMSLayer-Class
0 Kudos