Creates a new MapView object that uses a specific data frame in the ArcIMS ArcMap service.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As MapService
Dim dataFrameName As String
Dim value As MapView
value = instance.CreateMapView(dataFrameName) |
Parameters
- dataFrameName
- Name of the data frame in the ArcMap image service.
Return Value
A new MapView tied to the ArcMap data frame specified.
Example
The following example creates a new server connection and MapService, and then creates a new MapView by specifying the data frame. It then prints the name of the data frame to a label.
C# | Copy Code |
---|
// Create a connection to the server
ESRI.ArcGIS.ADF.Connection.IMS.TCPConnection conn =
new ESRI.ArcGIS.ADF.Connection.IMS.TCPConnection("localhost", 5300);
conn.ServiceName = "World";
// Create a MapService object that retrieves data frame information
InitializationParameters connParams = new InitializationParameters(96, false, false, true, false, "#ALL#");
MapService mapService = new MapService(conn, connParams, true);
// Create the MapView and print its data frame name
MapView mapView = mapService.CreateMapView("World");
Label1.Text = "This MapView uses data frame " + mapView.DataFrameName; |
Visual Basic | Copy Code |
---|
' Create a connection To the server
Dim conn As New ESRI.ArcGIS.ADF.Connection.IMS.TCPConnection("localhost", 5300)
conn.ServiceName = "World"
' Create a MapService Object that retrieves Data frame information
Dim connParams As New InitializationParameters(96, False, False, True, False, "#ALL#")
Dim mapService As New MapService(conn, connParams, True)
' Create the MapView And Print its Data frame name
Dim mapView As MapView = mapService.CreateMapView("World")
Label1.Text = "This MapView uses data frame " + mapView.DataFrameName |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also