The Map object represents a map of GDB. To access map features, the Map::OpenFeatureset method should be used. This method creates the Featureset object that is a set of map features.
In order to create a new map, the following steps should be performed:
To create the Map object by the GeoDatabase::CreateMap method.
To create a layer by the Map::CreateLayer method.
To set properties of the created layer.
To add the layer to the Map::Layers collection by the Append method.
To repeat steps 2–4 to every layer of the map.
To add the Map object to the GeoDatabase::Maps collection by the Append method.
If the map has been added to the GeoDatabase::Maps collection successfully, an internal number is assigned to it. Besides, the internal numbers are assigned to map layers. Continuity of map numbers is not guaranteed. Assigned internal numbers do not change between GDB sessions. Internal numbers may change at GDB reorganization performed by the GDBEngine::CompactGDB method with the gdbCompactNoKeepISN mode.
To access maps of the GeoDatabase::Maps collection, use the Item method. The argument of this method can be a string (the map name) or an integer (the map internal number).
To access layers of the Map::Layers collection, use the Item method. The argument of this method can be a string (the layer name) or an integer (the layer internal number). Access to layers can be by name only until the Map object has not been added to the GeoDatabase::Maps collection.