WMS Sample for SDK 2.2

448
1
04-19-2012 11:08 AM
SteveLettau
New Contributor
One of the new features of SDK 2.2 is support of WMS services.  Are there any examples for accessing these services?  Or even documentation?
0 Kudos
1 Reply
by Anonymous User
Not applicable
One of the new features of SDK 2.2 is support of WMS services.  Are there any examples for accessing these services?  Or even documentation?


The documentation is posted here at the resource page for the 2.2 SDK http://help.arcgis.com/en/arcgismobile/10.0/apis/iOS/2.2/concepts/index.html#/WMS_Layer/00pw0000005z...

Pretty much like any other layer:
//Instantiate the layer and add it to the mapView.
NSURL* url = [NSURL URLWithString: @"http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StateCityHighway_USA/MapServer/..."]; 
AGSWMSLayer* wmsLayer = [[AGSWMSLayer alloc] initWithURL:url] autorelease];
[mapview addMapLayer:wmsLayer withName:@�?�Highways�?�];

Hope this helps

Cheers
Al
0 Kudos