fix: text size calculation in cluster icon renderer

This commit is contained in:
Ivan Smolin 2023-07-10 18:38:41 +03:00
parent 65ae079e62
commit b22fd239e9
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ open class DefaultClusterIconRenderer {
var textDrawingOperation = textDrawingOperation(for: text)
let textSize = textDrawingOperation.affectedArea().size
let textSize = textDrawingOperation.desiredContextSize
let textRadius = sqrt(textSize.height * textSize.height + textSize.width * textSize.width) / 2
let internalRadius = textRadius + marginToText