Django

Code

Ticket #6289: 6289.diff

File 6289.diff, 1.0 kB (added by arien, 1 year ago)

patch proposed by reporter

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

    old new  
    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