Permalink
Browse files

Fix zooming

  • Loading branch information...
1 parent f05871f commit 903c6a281811e6fd53b6e7630559da5300b89fc2 @rundel rundel committed Sep 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 tools/render.cpp
View
@@ -76,6 +76,9 @@ int main(int argc, char **argv) {
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::agg_renderer<mapnik::image_32> ren(m,buf);
ren.apply();

0 comments on commit 903c6a2

Please sign in to comment.