From b429a422185206c645c84ec1c3540494d336b943 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 13 Dec 2011 05:10:23 +0000 Subject: add latitude/longitude to prospects, customers and package locations, RT#15539 --- httemplate/view/kml.cgi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httemplate/view/kml.cgi (limited to 'httemplate/view/kml.cgi') diff --git a/httemplate/view/kml.cgi b/httemplate/view/kml.cgi new file mode 100644 index 000000000..47435c74a --- /dev/null +++ b/httemplate/view/kml.cgi @@ -0,0 +1,13 @@ +<% $kml->archive %>\ +<%init> + +my ($latitude, $longitude, $name) = @_; +#would be nice to pass in customer or prospect name too... + +my $kml = Geo::GoogleEarth::Pluggable->new; +$kml->Point( map { $_=>scalar($cgi->param($_)) } qw( name lat lon ) ); + +#http_header('Content-Type' => 'application/vnd.google-earth.kml+xml' ); #kml +http_header('Content-Type' => 'application/vnd.google-earth.kmz' ); #kmz + + -- cgit v1.2.1