diff options
author | Edmund von der Burg <evdb@ecclestoad.co.uk> | 2011-02-08 15:44:13 -0300 |
---|---|---|
committer | Edmund von der Burg <evdb@ecclestoad.co.uk> | 2011-02-08 15:44:13 -0300 |
commit | 2a7d74041f66d7375d4d02044d1647a3841a519b (patch) | |
tree | e7f5e80fb3d7403c32949f6bf93a5165d5250697 | |
parent | 0734487b37270511bb55c4a45a75aed1a0ff569a (diff) |
Fixed google map link
-rwxr-xr-x | web/index.cgi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/index.cgi b/web/index.cgi index 213b2fc53..8fcbc36d1 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -977,9 +977,12 @@ sub display_problem { my $extra_data = Cobrand::extra_data($cobrand, $q); my $google_link = Cobrand::base_url_for_emails($cobrand, $extra_data) . '/report/' . $problem->{id}; - my ($lat, $lon) = mySociety::GeoUtil::national_grid_to_wgs84($problem->{easting}, $problem->{northing}, 'G'); - my $map_links = "<p id='sub_map_links'><a href=\"http://maps.google.co.uk/maps?output=embed&z=16&q=" - . URI::Escape::uri_escape_utf8($problem->{title} . ' - ' . $google_link) . "\@$lat,$lon\">View on Google Maps</a></p>"; + + my $map_links = + "<p id='sub_map_links'>" + . "<a href=\"http://maps.google.co.uk/maps?output=embed&z=16&q=" + . URI::Escape::uri_escape_utf8( $problem->{title} . ' - ' . $google_link ) + . "\@$problem->{latitude},$problem->{longitude}\">View on Google Maps</a></p>"; my $banner; if ($q->{site} ne 'emptyhomes' && $problem->{state} eq 'confirmed' && $problem->{duration} > 8*7*24*60*60) { |