Geo::OSM::Render::Viewport::Clipped - Use a clipped <viewport > to create a map.
SYNOPSIS
This class derives from <Geo::OSM::Render::Viewporrt>.
OVERVIEW
See "OVERVIEW" in Geo::OSM::Render::Viewport.
METHODS
new
my $proj = Geo::OSM::Render::Viewport::Clipped->new(
x_of_map_0 => $x_left ,
x_of_map_width => $x_right ,
y_of_map_0 => $y_bottom,
y_of_map_height => $y_top
);
x_y_to_map_x_y
my ($map_x, $map_y) = $projection->x_y_to_map_x_y($x, $y);
map_width
Returns the width of the map.
map_height
Returns the height of the map.
AUTHOR
René Nyffenegger <rene.nyffenegger at adp-gmbh.ch>
COPYRIGHT AND LICENSE Copyright © 2017 René Nyffenegger, Switzerland. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at: http://www.perlfoundation.org/artistic_license_2_0
Source Code
The source code is on github. Meaningful pull requests are welcome.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 6:
L<> starts or ends with whitespace