Django

Code

Changeset 7027

Show
Ignore:
Timestamp:
01/18/08 10:49:51 (6 months ago)
Author:
jbronn
Message:

gis: Fixed #6289 (added extra_context keyword to GoogleMap). Thanks omat & arien.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/gis/django/contrib/gis/maps/google/gmap.py

    r6108 r7027  
    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 
     
    6869                  'zoom' : zoom, 
    6970                  } 
     71        params.update(extra_context) 
    7072        self.js = render_to_string(template, params) 
    7173