mirror of
https://github.com/mapnik/mapnik.git
synced 2026-02-01 17:36:36 +00:00
+ calculate resolution using map's current extent
This commit is contained in:
parent
5c0beb0151
commit
231a273cba
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user