def __init__(self, url_formatter, mapsources):
        """
        Create a KML master document.

        Args:
            mapsources (list of MapSource):
        """
        super().__init__(url_formatter)
        self.map_folders = {
            root: {
                "folders": folders,
                "maps": maps
            } for root, folders, maps in walk_mapsources(mapsources)
        }
        self.add_maps(parent=self.kml_doc)
def __init__ ( self , url_formatter , mapsources ) : super ( ) . __init__ ( url_formatter ) self . map_folders = { root : { "folders" : folders , "maps" : maps } for root , folders , maps in walk_mapsources ( mapsources ) } self . add_maps ( parent = self . kml_doc )
Create a KML master document.

        Args:
            mapsources (list of MapSource):