Commit 192e3a653ade6c2802cb96db26902476ddaabdc9

Authored by Rafael Martins
1 parent c3956065

Use Google Static API v3

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/models/location_block.rb
... ... @@ -17,10 +17,10 @@ class LocationBlock < Block
17 17 if profile.lat
18 18 block_title(title) +
19 19 content_tag('div',
20   - '<img src="http://maps.google.com/staticmap?center=' + profile.lat.to_s() +
  20 + '<img src="http://maps.google.com/maps/api/staticmap?center=' + profile.lat.to_s() +
21 21 ',' + profile.lng.to_s() + '&zoom=' + zoom.to_s() +
22 22 '&size=190x250&maptype=' + map_type + '&markers=' + profile.lat.to_s() + ',' +
23   - profile.lng.to_s() + ',green&key=' + GoogleMaps::key(profile.default_hostname) + '&sensor=false"/>',
  23 + profile.lng.to_s() + ',green' + '&sensor=false"/>',
24 24 :class => 'the-localization-map' )
25 25 else
26 26 content_tag('i', _('This profile has no geographical position registered.'))
... ...