[FIX] website: google_map_link zoom was forced to '10'

Use the parameter zoom as in `google_map_img`
Change the default value to 10 to avoid changing the behaviour for existing
links (zoom was not used anyway).

Closes #8318
This commit is contained in:
Antonio Espinosa 2015-09-01 13:54:17 +02:00 committed by Martin Trigaux
parent 57b993ffad
commit 91d54a0d7d
1 changed files with 2 additions and 2 deletions

View File

@ -783,11 +783,11 @@ class res_partner(osv.osv):
}
return urlplus('//maps.googleapis.com/maps/api/staticmap' , params)
def google_map_link(self, cr, uid, ids, zoom=8, context=None):
def google_map_link(self, cr, uid, ids, zoom=10, context=None):
partner = self.browse(cr, uid, ids[0], context=context)
params = {
'q': '%s, %s %s, %s' % (partner.street or '', partner.city or '', partner.zip or '', partner.country_id and partner.country_id.name_get()[0][1] or ''),
'z': 10
'z': zoom,
}
return urlplus('https://maps.google.com/maps' , params)