Render/Viewport/UnClipped.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Render/Projection/Ident.pm ↑ Summary
1 # Encoding and name #_{
2  
3 =encoding utf8
4 =head1 NAME
5  
6 Geo::OSM::Render::Viewport::UnClipped - Use an ounbounded L<<viewport | Geo::OSM::Render::Viewport >> to create a map.
7  
8 =cut
9 package Geo::OSM::Render::Viewport::UnClipped;
10 #_}
11 #_{ use …
12 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Geo::OSM::Render::Viewport;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 our @ISA = qw(Geo::OSM::Render::Viewport);
19  
20 #_}
21 1 our $VERSION = 0.01;
22 #_{ Synopsis
23  
24 =head1 SYNOPSIS
25  
26 This class derives from L<<Geo::OSM::Render::Viewporrt>>.
27  
28 =cut
29 #_}
30 #_{ Overview
31  
32 =head1 OVERVIEW
33  
34 See L<Geo::OSM::Render::Viewport/OVERVIEW>.
35  
36 =cut
37  
38 #_}
39 #_{ Methods
40 #_{ POD
41 =head1 METHODS
42 =cut
43 #_}
44 1 ▶sub new { #_{
Subroutine new: called CC=1 SCAR=0.0
Pod documented
45 #_{ POD
46  
47 =head2 new
48  
49 my $vp = Geo::OSM::Render::Viewport::UnClipped->new();
50  
51  
52 =cut
53  
54 #_}
55  
56 1 my $class = shift;
57 1 my $self = $class->SUPER::new();
58 1 return $self;
59  
60 } #_}
61 1 ▶sub x_y_to_map_x_y { #_{
Subroutine x_y_to_map_x_y: called CC=1 SCAR=0.0
Pod documented
62 #_{ POD
63  
64 =head2 x_y_to_map_x_y
65  
66 my ($map_x, $map_y) = $projection->x_y_to_map_x_y($x, $y);
67  
68 =cut
69  
70 #_}
71  
72 1 my $self = shift;
73  
74 # The viewport is unbounded so the passed coordinates need not
75 # be 'viewported':
76 1 return @_;
77  
78 } #_}
79 #_}
80 #_{ POD: Author
81  
82 =head1 AUTHOR
83  
84 René Nyffenegger <rene.nyffenegger at adp-gmbh.ch>
85  
86 =cut
87  
88 #_}
89 #_{ POD: Copyright and License
90  
91 =head1 COPYRIGHT AND LICENSE
92 Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
93  
94 This program is free software; you can redistribute it and/or modify it
95 under the terms of the the Artistic License (2.0). You may obtain a
96 copy of the full license at: L<http://www.perlfoundation.org/artistic_license_2_0>
97 =cut
98  
99 #_}
100 #_{ POD: Source Code
101  
102 =head1 Source Code
103  
104 The source code is on L<< github|https://github.com/ReneNyffenegger/perl-Geo-OSM-Render >>. Meaningful pull requests are welcome.
105  
106 =cut
107  
108 #_}
109  
110 1 'tq84';
« Render/Projection/Ident.pm ↑ Summary