Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…ks omat & arien.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit feebe394298d0c2881e903690d0dbeac6b619278 1 parent 8da13e6
Justin Bronn authored January 18, 2008

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/contrib/gis/maps/google/gmap.py
4  django/contrib/gis/maps/google/gmap.py
@@ -18,7 +18,8 @@ class GoogleMap(object):
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,6 +68,7 @@ def __init__(self, key=None, api_url=None, version=None,
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

0 notes on commit feebe39

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