X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_broadband-map.html;h=41f4b8dfd1debd97c448c3d5db9d804da6c5e6a9;hp=fe3c0950b5504564e6d036404ba3e68cc8b3f3b2;hb=49d9ea969069430ef3fe23e5b1ac3599e929bb04;hpb=53a8c81b4f3a414803a52fc8114b26a71055d012 diff --git a/httemplate/search/svc_broadband-map.html b/httemplate/search/svc_broadband-map.html index fe3c0950b..41f4b8dfd 100755 --- a/httemplate/search/svc_broadband-map.html +++ b/httemplate/search/svc_broadband-map.html @@ -49,15 +49,24 @@ foreach my $svc_broadband (@rows) { push @coord, $svc_broadband->altitude + 0 if length($svc_broadband->altitude); # it's optional + my $svcnum = $svc_broadband->svcnum; + my $color = $svc_broadband->addr_status_color; + push @features, { - id => 'svc_broadband/'.$svc_broadband->svcnum, + id => 'svc_broadband/'.$svcnum, geometry => { type => 'Point', coordinates => \@coord, }, properties => { - content => include('.svc_broadband', $svc_broadband), + #content => include('.svc_broadband', $svc_broadband), + url => $fsurl . 'view/svc_broadband-popup.html?' . $svcnum, + style => { + icon => { + fillColor => $color, + }, + }, }, }; # look up tower location and draw connecting line @@ -85,8 +94,8 @@ foreach my $svc_broadband (@rows) { }, properties => { style => { - strokeColor => ($tower->color || 'green'), - strokeWeight => 2, + strokeColor => $color, + strokeWeight => 1, }, }, }; @@ -135,7 +144,7 @@ foreach my $tower (values(%towers)) { style => { icon => { path => undef, - url => $fsurl.'images/jcartier-antenna-square-21x51.png', + url => $fsurl.'images/antenna-square-21x51.png', anchor => { x => 10, y => 4 } }, }, @@ -159,22 +168,6 @@ foreach my $sector (values %sectors) { }; -<%def .svc_broadband> -% my $svc = shift; -% my @label = $svc->cust_svc->label; -

- - <% $label[0] |h %> #<% $svc->svcnum %> | <% $label[1] %> - -

-% my $cust_main = $svc->cust_main; - -<& /elements/small_custview.html, { - cust_main => $svc->cust_main, - #url => $fsurl.'view/cust_main.cgi', -} &> - - <%def .tower> % my $tower = shift; % my $can_edit = $FS::CurrentUser::CurrentUser->access_right('Configuration');