The document is a Visual Basic script that defines a graphical user interface for interacting with map layers and data using Crystal Reports. It includes functions for connecting to a database, displaying layers, handling user interactions, and generating reports. The script also manages map properties, tracking layers, and tool functions for area and distance calculations.