'A class for generating sets of Google Maps that will be shown on the
same page together.
Example:
gmapset = GoogleMapSet( GoogleMap( ... ), GoogleMap( ... ) )
gmapset = GoogleMapSet( [ gmap1, gmap2] )'

def __init__(self, *args, **kwargs):

    template = kwargs.pop('template', 'gis/google/google-multi.js')
    self.map_template = kwargs.pop('map_template', 'gis/google/google-single.js')
    super(GoogleMapSet, self).__init__(**kwargs)
    self.template = template
    if isinstance(args[0], (tuple, list)):
        self.maps = args[0]
    else:
        self.maps = args
    self.dom_ids = [('map%d' % i) for i in xrange(len(self.maps))]
