fix: text size calculation in cluster icon renderer
This commit is contained in:
parent
65ae079e62
commit
b22fd239e9
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue