UNVERIFIED SOLUTION i
X

Improving the load time of a MapXtreme Workspace that contains many layers in MapXtreme .NET

UPDATED: September 12, 2018


To improve the load time on a MapXtreme® Workspace that has many layers please use the following code when loading the Workspace:

C#
public static void MapInfo_Persistence_WorkSpaceLoaderLoadMap() {
  // Create an empty map.
  Map map = Session.Current.MapFactory.CreateEmptyMap("MyMap", "MyMapAlias", new Size(400,400));

  // Create a workspace loader.
  WorkSpaceLoader wsLoader = new WorkSpaceLoader(@"c:\workspace\mySeamless.mws");

  // Load the workspace into the empty map.
  wsLoader.Load(map);
}

Visual Basic
Public Shared Sub MapInfo_Persistence_WorkSpaceLoaderLoadMap()
    ' Create an empty map.
    Dim map As Map = Session.Current.MapFactory.CreateEmptyMap("MyMap", "MyMapAlias", New Size(400, 400))

    ' Create a workspace loader.
    Dim wsLoader As WorkSpaceLoader = New WorkSpaceLoader("c:\workspace\mySeamless.mws")

    ' Load the workspace into the empty map.
    wsLoader.Load(map)
End Sub

Environment Details

Products Affected: MapXtreme®
 

Downloads

  • No Downloads