Leaflet/Polyline.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 88.2% 15 / 17 CC 1 SCAR 2.2
CC
1
Cov
92%
_method_name
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Leaflet/Objects.pm ↑ Summary
1 package Geo::Leaflet::Polyline;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base qw{Geo::Leaflet::Polygon};
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '0.04';
7 2 our $PACKAGE = __PACKAGE__;
8  
9 =head1 NAME
10  
11 Geo::Leaflet::Polyline - Leaflet polyline object
12  
13 =head1 SYNOPSIS
14  
15 use Geo::Leaflet;
16 my $map = Geo::Leaflet->new;
17 my $polyline = $map->polyline(
18 coordinates => [[$lat, $lon], ...]
19 options => {},
20 );
21  
22 =head1 DESCRIPTION
23  
24 This package constructs a Leaflet polyline object for use on a L<Geo::Leaflet> map.
25  
26 =head1 PROPERTIES
27  
28 =head2 coordinates
29  
30 =head2 options
31  
32 =head2 popup
33  
34 =head1 METHODS
35  
36 =head2 stringify
37  
38 =cut
39  
40 0 ▶sub _method_name {'polyline'};
Subroutine _method_name: not called CC=1 SCAR=6.9
41  
42 =head1 SEE ALSO
43  
44 =head1 AUTHOR
45  
46 Michael R. Davis
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 Copyright (C) 2024 by Michael R. Davis
51  
52 MIT LICENSE
53  
54 =cut
55  
56 2 1;
« Leaflet/Objects.pm ↑ Summary