mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ calculate resolution using map's current extent
(see ticket #502 for discussion, thanks springmeyer and mar_rud!)
This commit is contained in:
parent
a2151c8e13
commit
4f4c3782d3
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user