Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

gis: Fixed #6289 (added `extra_context` keyword to `GoogleMap`). Than…

…ks omat & arien.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit feebe394298d0c2881e903690d0dbeac6b619278 1 parent 8da13e6
@jbronn jbronn authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/contrib/gis/maps/google/
4 django/contrib/gis/maps/google/
@@ -18,7 +18,8 @@ class GoogleMap(object):
def __init__(self, key=None, api_url=None, version=None,
center_lat=0.0, center_lon=0.0, zoom=1,
dom_id='map', load_func='gmap_load',
- kml_urls=[], template='gis/google/js/google-map.js'):
+ kml_urls=[], template='gis/google/js/google-map.js',
+ extra_context={}):
# The Google Maps API Key defined in the settings will be used
# if not passed in as a parameter. The use of an API key is
@@ -67,6 +68,7 @@ def __init__(self, key=None, api_url=None, version=None,
'load_func' : load_func,
'zoom' : zoom,
+ params.update(extra_context)
self.js = render_to_string(template, params)

0 comments on commit feebe39

Please sign in to comment.
Something went wrong with that request. Please try again.