From 4f4c3782d38c2bf1044f00a0ffdb74c2e345896d Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 1 Mar 2010 00:04:05 +0000 Subject: [PATCH] + calculate resolution using map's current extent (see ticket #502 for discussion, thanks springmeyer and mar_rud!) --- include/mapnik/feature_style_processor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/feature_style_processor.hpp b/include/mapnik/feature_style_processor.hpp index 8b5bdadb9..bcb89a63f 100644 --- a/include/mapnik/feature_style_processor.hpp +++ b/include/mapnik/feature_style_processor.hpp @@ -147,7 +147,7 @@ private: prj_trans.forward(lx1,ly1,lz1); box2d bbox(lx0,ly0,lx1,ly1); - query::resolution_type res(m_.getWidth()/bbox.width(),m_.getHeight()/bbox.height()); + query::resolution_type res(m_.getWidth()/m_.getCurrentExtent().width(),m_.getHeight()/m_.getCurrentExtent().height()); query q(bbox,res,scale_denom); //BBOX query std::vector const& style_names = lay.styles();