+ calculate resolution using map's current extent

This commit is contained in:
Dane Springmeyer 2010-03-01 01:11:32 +00:00
parent 5c0beb0151
commit 231a273cba

View File

@ -152,7 +152,7 @@ namespace mapnik
prj_trans.forward(lx1,ly1,lz1);
Envelope<double> bbox(lx0,ly0,lx1,ly1);
double resolution = m_.getWidth()/bbox.width();
double resolution = m_.getWidth()/m_.getCurrentExtent().width();
query q(bbox,resolution,scale_denom); //BBOX query
std::vector<std::string> const& style_names = lay.styles();