Skip to content

Commit

Permalink
Fix zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
rundel committed Sep 8, 2012
1 parent f05871f commit 903c6a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/render.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ int main(int argc, char **argv) {


mapnik::load_map(m, input_file, TRUE); mapnik::load_map(m, input_file, TRUE);


m.zoom_all();
//m.zoom_to_box(mapnik::box2d<double>(-8584936.07589,4691869.09667,-8561639.82286,4720949.89071));

mapnik::image_32 buf(m.width(),m.height()); mapnik::image_32 buf(m.width(),m.height());
mapnik::agg_renderer<mapnik::image_32> ren(m,buf); mapnik::agg_renderer<mapnik::image_32> ren(m,buf);
ren.apply(); ren.apply();
Expand Down

0 comments on commit 903c6a2

Please sign in to comment.