File Coverage

blib/lib/Geo/Leaflet/Polyline.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod n/a
total 12 14 85.7


line stmt bran cond sub pod time code
1             package Geo::Leaflet::Polyline;
2 2     2   9 use strict;
  2         4  
  2         51  
3 2     2   1776 use warnings;
  2         7  
  2         107  
4 2     2   17 use base qw{Geo::Leaflet::Polygon};
  2         3  
  2         286  
5              
6             our $VERSION = '0.04';
7             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 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     0     sub _method_name {'polyline'};
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             1;