Ticket #6289: 6289.diff
File 6289.diff, 977 bytes (added by , 17 years ago) |
---|
-
django/contrib/gis/maps/google/gmap.py
18 18 def __init__(self, key=None, api_url=None, version=None, 19 19 center_lat=0.0, center_lon=0.0, zoom=1, 20 20 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={}): 22 23 23 24 # The Google Maps API Key defined in the settings will be used 24 25 # if not passed in as a parameter. The use of an API key is … … 67 68 'load_func' : load_func, 68 69 'zoom' : zoom, 69 70 } 71 params.update(extra_context) 70 72 self.js = render_to_string(template, params) 71 73 72 74 @property