Geo::OSM::Render::Renderer::SVG - Specialization of base class Geo::OSM::Render for rendering SVG.
…
my $proj = Geo::OSM::Render::Projection::CH_LV03->new(); my $vp = Geo::OSM::Render::Viewport::Clipped->new(…); my $osm_renderer_svg = Geo::OSM::Render::Renderer->new( $svg_filename, $proj, $vp ); … $osm_renderer_svg->end();
When finished rendering, this method writes the SVG.
$osm_renderer_svg -> render_node( $node, r => $radius, styles=> { … } );
Renders a node.
See also "render_node" in Geo::OSM::Render::Renderer.
$osm_renderer_svg -> render_way( styles=> { … } );
Renders a way.
See also "render_way" in Geo::OSM::Render::Renderer.
$osm_renderer_svg -> line( $lat_start, $lon_start, $lat_end , $lon_end, styles=> { … } );
Draws a line on the SVG map.
René Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
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
The source code is on github. Meaningful pull requests are welcome.
To install Geo::OSM::Render, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::OSM::Render
CPAN shell
perl -MCPAN -e shell install Geo::OSM::Render
For more information on module installation, please visit the detailed CPAN module installation guide.