fix scaling of markers when render time resolution != 1
This commit is contained in:
parent
0c37819989
commit
fad8eff676
1 changed files with 2 additions and 2 deletions
|
@ -92,14 +92,14 @@ void grid_renderer<T>::process(markers_symbolizer const& sym,
|
||||||
|
|
||||||
agg::trans_affine tr;
|
agg::trans_affine tr;
|
||||||
setup_label_transform(tr, bbox, feature, sym);
|
setup_label_transform(tr, bbox, feature, sym);
|
||||||
tr = agg::trans_affine_scaling(scale_factor_*(1.0/pixmap_.get_resolution())) * tr;
|
// - clamp sizes to > 4 pixels of interactivity
|
||||||
// - clamp sizes to > 4 pixels of interativity
|
|
||||||
if (tr.scale() < 0.5)
|
if (tr.scale() < 0.5)
|
||||||
{
|
{
|
||||||
agg::trans_affine tr2;
|
agg::trans_affine tr2;
|
||||||
tr2 *= agg::trans_affine_scaling(0.5);
|
tr2 *= agg::trans_affine_scaling(0.5);
|
||||||
tr = tr2;
|
tr = tr2;
|
||||||
}
|
}
|
||||||
|
tr *= agg::trans_affine_scaling(scale_factor_*(1.0/pixmap_.get_resolution()));
|
||||||
|
|
||||||
coord2d center = bbox.center();
|
coord2d center = bbox.center();
|
||||||
agg::trans_affine_translation recenter(-center.x, -center.y);
|
agg::trans_affine_translation recenter(-center.x, -center.y);
|
||||||
|
|
Loading…
Reference in a new issue