tweaks
This commit is contained in:
parent
4263a7eff0
commit
67fea51949
@ -186,7 +186,7 @@ fun startGTFSTracking(url: String, api_key: String, callee: Activity) {
|
|||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
GTFSMainHandler.post {
|
GTFSMainHandler.post {
|
||||||
Toast.makeText(callee, "Done drawing stops", Toast.LENGTH_SHORT).show()}
|
Toast.makeText(callee, "Done drawing ${gtfsStops.features.size} stops", Toast.LENGTH_SHORT).show()}
|
||||||
|
|
||||||
} catch(e: Exception) {
|
} catch(e: Exception) {
|
||||||
GTFSMainHandler.post {
|
GTFSMainHandler.post {
|
||||||
|
|||||||
@ -396,7 +396,7 @@ fun OpenStreetMapScreen(context: Context? = null) {
|
|||||||
val normalizedY = latitudeToYNormalized(50.0755)
|
val normalizedY = latitudeToYNormalized(50.0755)
|
||||||
|
|
||||||
// Use a higher scale to zoom in more (closer to 1.0 = more zoomed in)
|
// Use a higher scale to zoom in more (closer to 1.0 = more zoomed in)
|
||||||
mapState.scrollTo(normalizedX, normalizedY, destScale = 0.8)
|
mapState.scrollTo(normalizedX, normalizedY, destScale = 0.1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the map
|
// Display the map
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user