Hi ,
My project requires to WMS service for loading MAP in AUD Modal space by using FDO.I am able to connect to WMS service but don't able to show it in modal space.
I am using below for connect with WMS service.Please help how to show the map in AUD modal space.
publicvoidOpenWMSConnection()
{
IConnectionManager manager = FeatureAccessManager.GetConnectionManager();
using (IConnection connection = manager.CreateConnection("OSGeo.WMS.3.3"))
{
// Get the property dictionary for the connection
IConnectionPropertyDictionaryprops =connection.ConnectionInfo.ConnectionProperties;
props.SetProperty("FeatureServer", "*******");
props.SetProperty("Username", "*****");
props.SetProperty("Password", "*****");
props.SetProperty("DefaultImageHeight", "******");
try
{
OSGeo.FDO.Connections.
ConnectionStateconnState = connection.Open();
if (connState != OSGeo.FDO.Connections.ConnectionState.ConnectionState_Open)
{
MessageBox.Show("Connect to the feature source");
//// need to write some code to laod map in AUD modal space ( please help )
}
}
catch (OSGeo.FDO.Common.Exceptionex)
{
MessageBox.Show(ex.StackTrace);
}
}
}