Skip to content

Commit

Permalink
Companion Object added for MapHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
halilozel1903 committed Nov 28, 2022
1 parent 5277d57 commit b53ac06
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/src/huawei/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("Huawei Map Kit")
).snippet = "Welcome to Hell"
MarkerOptions().position(LatLng(LATITUDE, LONGITUDE)).title(TITLE)
).snippet = SNIPPET
}
}

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

0 comments on commit b53ac06

Please sign in to comment.