This project is read-only.

ActiveX VBA - MapState Saving and Loading

Oct 25, 2011 at 8:17 PM

Hello All,

I have written a simple function to save the current map state (i.e. layers, extents, symbolization, etc). The save function is working fine and produces an XML file with all of the details of the current map state. Click here to see the output file.

You'll notice in this file that there is a value for "LayerName". If I try to read this map state configuration file back in tot he map, everything comes in correctly except for the layer name. The layer name ends up being blank(""). To iilustrate this, I've reloaded the map from the configuration file listed above, and saved the results to a new map state configuration file. You can see the resulting configuration file by clicking here. You'll notice that the "LayerName" attribute in this file is blank ("").

Has anyone else encountered this or have n explanation of why this may be happening?

Thanks in advance!