Hi. I tested my solution on 3 devices with different API (23, 25, 30) and different resolution. I've had no
any problem.
I've made coefficient in org.oscim.utils.Parameters fot editable it:
/**
* Distance coefficient for drawing labels
*/
public static float DISTANCES_LABELS_COEFFICIENT = 3;
In org.oscim.layers.tile.vector.labeling.LabelPlacement edit function that get mSquareRadius:
float mw = mMap.getWidth();
float mh = mMap.getHeight();
float k = Parameters.DISTANCES_LABELS_COEFFICIENT * pos.tilt / Viewport.MAX_TILT;
if (k < 0.5) k = 0.5F;
mSquareRadius = (mw * mw + mh * mh) * k;
It let minimise load according tilt's degree
среда, 12 мая 2021 г. в 11:49:14 UTC+3, Александр Тищенко: