+ calculate resolution using map's current extent

(see ticket #502 for discussion, thanks springmeyer and
   mar_rud!)
This commit is contained in:
Artem Pavlenko 2010-03-01 00:04:05 +00:00
parent a2151c8e13
commit 4f4c3782d3

View File

@ -147,7 +147,7 @@ private:
prj_trans.forward(lx1,ly1,lz1);
box2d<double> 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<std::string> const& style_names = lay.styles();