Skip to content

Commit

Permalink
Companion Object added.
Browse files Browse the repository at this point in the history
  • Loading branch information
halilozel1903 committed Nov 28, 2022
1 parent a8035b4 commit f2c3959
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/src/google/java/com/veripark/buildvariantapp/MapHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ class MapHelper(activity: AppCompatActivity) {
mapFragment.getMapAsync {
map = it
map.addMarker(
MarkerOptions().position(LatLng(40.9808142, 28.7119718)).title("Google Map")
)?.snippet = "Welcome to Heaven"
MarkerOptions().position(LatLng(LATITUDE, LONGITUDE)).title(SNIPPET)
)?.snippet = TITLE
}
}

companion object {
private const val TITLE = "Welcome to Heaven"
private const val SNIPPET = "Google Map"
private const val LATITUDE = 40.9808142
private const val LONGITUDE = 28.7119718
}
}

0 comments on commit f2c3959

Please sign in to comment.