VERIFIED SOLUTION i
X

Resolve error "Map Exception" while Map cloning in MapXtreme

Issue

MapXtreme .NET v7.2.0 : error while Map cloning:

Map Exception

Cause

Custom Layer is derived from FeatureLayer and, internally, this is derived from ISerializable. In both cases LayerControlDialog::OnLoad() is called and this Onload() method calls Map.Clone(). 

The Clone() method carries out Serialization/DeSerialization of the map. Therefore, for the CustomLayer to work correctly, you have to mark this as Serialization as well.

The reason that you see different behavior between the two operations is because the Exceptions are handled in different ways internally.

 

Resolution

UPDATED: July 19, 2017


Child class of FeatureLayer should be marked as Serialization.

Environment Details

Product Feature: Installation / Upgrade

Operating System: Windows 7 64bit


 

Downloads

  • No Downloads