diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-21 12:07:29 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-26 12:10:50 -0700 |
commit | 1d50ab91a52be49724771accae7cc82740e83956 (patch) | |
tree | d91ef3f72c7f268b48f734e190109388d932591d /httemplate/search/svc_broadband-map.html | |
parent | 9fe9b2f47608e1ea7387539a77a95023f9872bdf (diff) |
generate sector coverage maps with Splat, checkpoint, #37802
Diffstat (limited to 'httemplate/search/svc_broadband-map.html')
-rwxr-xr-x | httemplate/search/svc_broadband-map.html | 16 |
1 files changed, 14 insertions, 2 deletions
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, + }; + }; +}; + </%init> <%def .svc_broadband> % my $svc = shift; |