Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaailashsharma committed Sep 15, 2023
1 parent 8ffd41b commit a463df1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.rotate
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.layout.layoutId
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.text.font.FontWeight
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/java/app/waste2wealth/com/maps/MapBoxMap.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@ fun MapBoxMap(
.build()
MapView(context).also { mapView ->
mapView.getMapboxMap().loadStyle(
style("mapbox://styles/thekaailashsharma/clm8xkddo014m01pe5mfjfj8p") {
style("mapbox://styles/thekaailashsharma/clmk6u38j01tn01r74ejhgk4p") {
val zoom = zoom()
Log.i("Zoommmmmmmm", "${zoom.literalValue}")
+terrain("terrain-enable")
+projection(ProjectionName.GLOBE)
+atmosphere {
color(rgb(220.0, 159.0, 159.0)) // Pink fog / lower atmosphere
highColor(rgb(220.0, 159.0, 159.0)) // Blue sky / upper atmosphere
horizonBlend(0.4) // Exaggerate atmosphere (default is .1)
}
// +atmosphere {
// color(rgb(220.0, 159.0, 159.0)) // Pink fog / lower atmosphere
// highColor(rgb(220.0, 159.0, 159.0)) // Blue sky / upper atmosphere
// horizonBlend(0.4) // Exaggerate atmosphere (default is .1)
// }
+rasterDemSource("raster-dem") {
url("mapbox://mapbox.terrain-rgb")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fun ProfileImage(
modifier: Modifier = Modifier,
imageUrl: Any? = null,
initial: Char? = null,
contentScale: ContentScale = ContentScale.Crop,
onClick: (() -> Unit)? = null,
) {
if (imageUrl != null) {
Expand All @@ -41,7 +42,7 @@ fun ProfileImage(
Modifier
}
),
contentScale = ContentScale.Crop
contentScale = contentScale
)
} else {
BoxWithConstraints(
Expand Down

0 comments on commit a463df1

Please sign in to comment.