X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_broadband-map.html;h=64a7f98de904556f0f6c586e513762ec535a3e1e;hb=1d2db1a7412b886a6120ebd527d6632bff27551d;hp=4c660b016d586bd42b898b666b5c2cc5dabb1b72;hpb=391be944b451419e2683dcd0471e3532d728d8d5;p=freeside.git diff --git a/httemplate/search/svc_broadband-map.html b/httemplate/search/svc_broadband-map.html index 4c660b016..64a7f98de 100755 --- a/httemplate/search/svc_broadband-map.html +++ b/httemplate/search/svc_broadband-map.html @@ -1,6 +1,6 @@ <& /elements/header.html, 'Broadband Search Results' &> -<& elements/gmap.html, features => \@features &> +<& elements/gmap.html, features => \@features, overlays => \@overlays &> <& /elements/footer.html &> <%init> @@ -76,7 +76,6 @@ foreach my $svc_broadband (@rows) { } - my $tower = $towers{$towernum}; if ( $tower->latitude and $tower->longitude ) { push @features, { @@ -146,6 +145,19 @@ foreach my $tower (values(%towers)) { }; } +my @overlays; +foreach my $sector (values %sectors) { + if ( length($sector->image) > 0 ) { + push @overlays, + { url => $fsurl.'view/sector_map-png.cgi?' . $sector->sectornum, + west => $sector->west, + east => $sector->east, + south => $sector->south, + north => $sector->north, + }; + }; +}; + <%def .svc_broadband> % my $svc = shift;