diff --git a/build.gradle.kts b/build.gradle.kts index 643d0b8..9de57d8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ val kmathVersion: String by extra("0.3.1-dev-10") allprojects { group = "center.sciprog" - version = "0.2.2-dev-8" + version = "0.2.2-dev-9" repositories { mavenLocal() diff --git a/maps-kt-compose/src/commonMain/kotlin/center/sciprog/maps/compose/MapViewScope.kt b/maps-kt-compose/src/commonMain/kotlin/center/sciprog/maps/compose/MapViewScope.kt index 5db4e7e..92c92eb 100644 --- a/maps-kt-compose/src/commonMain/kotlin/center/sciprog/maps/compose/MapViewScope.kt +++ b/maps-kt-compose/src/commonMain/kotlin/center/sciprog/maps/compose/MapViewScope.kt @@ -62,7 +62,7 @@ public class MapViewScope internal constructor( min( canvasSize.width.value / rectangle.longitudeDelta.radians, canvasSize.height.value / rectangle.latitudeDelta.radians - ) * PI / mapTileProvider.tileSize + ) * 2 * PI / mapTileProvider.tileSize ) return space.ViewPoint(rectangle.center, zoom.toFloat()) }