Skip to content

Commit cc6ac56

Browse files
committed
fix(android): another cluster fix
1 parent ad2ffcc commit cc6ac56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/platforms/android/java/com/akylas/carto/additions/AKClusterElementBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
public class AKClusterElementBuilder extends ClusterElementBuilder {
3939
static final Rect tempRect = new Rect();
40+
static final Rect tempRect2 = new Rect();
4041
static final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
4142
public interface Interface {
4243
VectorElement buildClusterElement(MapPos pos, VectorElementVector nElements);
@@ -146,7 +147,7 @@ public VectorElement nativeBuildClusterElement(MapPos pos, VectorElementVector e
146147
StyleBuilder styleBuilder = null;
147148
Bitmap cBitmap = null;
148149
if (markerBitmap != null || textColor != null) {
149-
int size = int)(markerSize * screenScale);
150+
int size = (int)(markerSize * screenScale);
150151
android.graphics.Bitmap canvasBitmap = android.graphics.Bitmap.createBitmap(size, size, android.graphics.Bitmap.Config.ARGB_8888);
151152
android.graphics.Canvas canvas = new android.graphics.Canvas(canvasBitmap);
152153
canvas.scale(screenScale, screenScale);

0 commit comments

Comments
 (0)