diff --git a/TIMapUtils/Sources/IconProviders/DefaultClusterIconRenderer.swift b/TIMapUtils/Sources/IconProviders/DefaultClusterIconRenderer.swift index ca538679..4c355a8f 100644 --- a/TIMapUtils/Sources/IconProviders/DefaultClusterIconRenderer.swift +++ b/TIMapUtils/Sources/IconProviders/DefaultClusterIconRenderer.swift @@ -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