Fix autoscale for maps
This commit is contained in:
parent
94a91e9ff9
commit
1bcae1f362
@ -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()
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user