opnsense-ports/www/p5-HTML-GoogleMaps/files/patch-lib__HTML__GoogleMaps.pm
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
508 B
Perl

--- lib/HTML/GoogleMaps.pm.orig 2006-12-05 20:53:34.000000000 -0800
+++ lib/HTML/GoogleMaps.pm 2008-11-08 01:38:54.000000000 -0800
@@ -41,6 +41,8 @@
=item width => width in pixels
+=item ua => UserAgent object used internally
+
=back
=back
@@ -155,7 +157,7 @@
%opts,
points => [],
poly_lines => [],
- geocoder => Geo::Coder::Google->new(apikey => $opts{key}),
+ geocoder => Geo::Coder::Google->new(apikey => $opts{key}, ($opts{ua} ? (ua => $opts{ua}) : ())),
}, $class;
}