X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgmap.html;h=69fdc5a09f8af737f7565f9dcb3740e070fe288c;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hp=8b070ebf932a2d3763c3ab6c224b7a9ef8bf1576;hpb=5befe347dfac36159ab2f68a1487111eb97996dc;p=freeside.git
diff --git a/httemplate/search/elements/gmap.html b/httemplate/search/elements/gmap.html
index 8b070ebf9..69fdc5a09 100644
--- a/httemplate/search/elements/gmap.html
+++ b/httemplate/search/elements/gmap.html
@@ -1,5 +1,6 @@
<%args>
@features
+@overlays
%args>
<%doc>
Generic Google Maps front end.
@@ -24,10 +25,21 @@ Generic Google Maps front end.
}
}, # end of feature
],
+ overlays => [
+ { url => 'https://localhost/freeside/view/sector_map-png.html?102',
+ west => -130.0,
+ east => -128.0,
+ south => 10.0,
+ north => 12.0,
+ }, # make a ground overlay
+ ],
&>
%doc>
<%init>
+
+my $apikey = FS::Conf->new->config('google_maps_api_key');
+
foreach (@features) {
$_->{type} = 'Feature';
# any other per-feature massaging can go here
@@ -48,12 +60,13 @@ body { height: 100%; margin: 0px; padding: 0px }
#map_canvas { height: 100%; }
-