keep context when rendering air quality map
This commit is contained in:
parent
5db2ed8ea9
commit
a33e0b17c8
|
@ -665,11 +665,12 @@ def gnm_place_map(lat, lng):
|
|||
context['init_lng'] = lng
|
||||
return context
|
||||
|
||||
@register.inclusion_tag('combo/gnm/airquality_map.html')
|
||||
def gnm_airquality_map():
|
||||
@register.inclusion_tag('combo/gnm/airquality_map.html', takes_context=True)
|
||||
def gnm_airquality_map(context):
|
||||
map_cell = Map()
|
||||
map_cell.initial_state = 'device-location'
|
||||
map_cell.initial_zoom = '15'
|
||||
map_cell.min_zoom = '10'
|
||||
map_cell.max_zoom = '19'
|
||||
context = map_cell.get_cell_extra_context({})
|
||||
context.push(map_cell.get_cell_extra_context({}))
|
||||
return context
|
||||
|
|
Loading…
Reference in New Issue