#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        A class for generating sets of Google Maps that will be shown on the\n        same page together.\n\n        Example:\n         gmapset = GoogleMapSet( GoogleMap( ... ), GoogleMap( ... ) )\n         gmapset = GoogleMapSet( [ gmap1, gmap2] )\n        ' #NEWLINE# template = kwargs . pop ( 'template' , 'gis/google/google-multi.js' ) #NEWLINE# self . map_template = kwargs . pop ( 'map_template' , 'gis/google/google-single.js' ) #NEWLINE# super ( GoogleMapSet , self ) . __init__ ( ** kwargs ) #NEWLINE# self . template = template #NEWLINE# if isinstance ( args [ 0 ] , ( tuple , list ) ) : #NEWLINE# #INDENT# self . maps = args [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . maps = args #NEWLINE# #UNINDENT# self . dom_ids = [ ( 'map%d' % i ) for i in xrange ( len ( self . maps ) ) ]