Ticket #6289: 6289.diff

File 6289.diff, 977 bytes (added by arien, 17 years ago)

patch proposed by reporter

  • django/contrib/gis/maps/google/gmap.py

     
    1818    def __init__(self, key=None, api_url=None, version=None,
    1919                 center_lat=0.0, center_lon=0.0, zoom=1,
    2020                 dom_id='map', load_func='gmap_load',
    21                  kml_urls=[], template='gis/google/js/google-map.js'):
     21                 kml_urls=[], template='gis/google/js/google-map.js',
     22                 extra_context={}):
    2223
    2324        # The Google Maps API Key defined in the settings will be used
    2425        #  if not passed in as a parameter.  The use of an API key is
     
    6768                  'load_func' : load_func,
    6869                  'zoom' : zoom,
    6970                  }
     71        params.update(extra_context)
    7072        self.js = render_to_string(template, params)
    7173
    7274    @property
Back to Top