Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Added - Metro Station Map #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ kotlin {
implementation(compose.preview)
implementation(libs.androidx.activity.compose)
implementation(libs.koin.android)
implementation(libs.ktor.client.android)
}
commonMain.dependencies {
implementation(compose.runtime)
Expand All @@ -64,6 +65,12 @@ kotlin {

api(libs.compose.webview.multiplatform)
implementation(libs.multiplatform.markdown.renderer)

implementation(libs.mapcompose.mp)
implementation(libs.ktor.client.core)
}
iosMain.dependencies {
implementation(libs.ktor.client.darwin)
}
commonTest.dependencies {
implementation(kotlin("test"))
Expand Down
4 changes: 3 additions & 1 deletion composeApp/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />

Expand All @@ -10,7 +11,8 @@
android:label="@string/app_name"
android:name=".MRTApp"
android:supportsRtl="true"
android:theme="@android:style/Theme.Material.Light.NoActionBar">
android:theme="@android:style/Theme.Material.Light.NoActionBar"
android:usesCleartextTraffic="true">
<activity
android:exported="true"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
Expand Down
26 changes: 26 additions & 0 deletions composeApp/src/androidMain/kotlin/net/adhikary/mrtbuddy/Osm.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package net.adhikary.mrtbuddy

import kotlinx.io.asSource
import ovh.plrapps.mapcompose.core.TileStreamProvider
import java.net.HttpURLConnection
import java.net.URL

/**
* A [TileStreamProvider] which queries OSM server.
*/
actual fun makeOsmTileStreamProvider() : TileStreamProvider {
return TileStreamProvider { row, col, zoomLvl ->
try {
val url = URL("https://tile.openstreetmap.org/$zoomLvl/$col/$row.png")
val connection = url.openConnection() as HttpURLConnection
// OSM requires a user-agent
connection.setRequestProperty("User-Agent", "Chrome/120.0.0.0 Safari/537.36")
connection.doInput = true
connection.connect()
connection.inputStream.asSource()
} catch (e: Exception) {
e.printStackTrace()
null
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package net.adhikary.mrtbuddy.utils

import io.ktor.client.HttpClient
import io.ktor.client.engine.android.Android

actual fun getKtorClient(): HttpClient {
return HttpClient(Android)
}
23 changes: 23 additions & 0 deletions composeApp/src/commonMain/composeResources/drawable/marker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="25"
android:viewportHeight="25">

<path
android:fillColor="#ffffff"
android:pathData="M9.967,1.452C13.4,0.68 17.159,1.671 19.764,4.036C22.657,6.582 24.024,10.688 23.27,14.459C22.503,18.835 18.83,22.503 14.459,23.275C10.169,24.188 5.467,22.216 3.072,18.552C0.993,15.518 0.629,11.429 2.052,8.048C3.406,4.735 6.457,2.185 9.967,1.452ZM9.933,2.335C6.894,3.046 4.25,5.232 2.973,8.078C1.58,11.099 1.786,14.798 3.526,17.635C5.176,20.408 8.197,22.319 11.42,22.568C14.819,22.91 18.316,21.393 20.403,18.698C22.55,16.032 23.184,12.265 22.074,9.038C20.519,4.122 14.93,1.015 9.933,2.335Z" />

<path
android:fillColor="#ffffff"
android:pathData="M7.726,6.488C10.383,6.141 13.101,6.415 15.779,6.338C17.031,6.171 18.346,7.148 18.308,8.459C18.355,11.039 18.351,13.623 18.312,16.204C18.338,17.313 17.343,18.325 16.233,18.308C13.636,18.355 11.039,18.355 8.446,18.308C7.345,18.329 6.346,17.339 6.359,16.238C6.295,13.791 6.346,11.339 6.333,8.888C6.243,7.893 6.753,6.835 7.726,6.488ZM7.975,7.971C7.966,10.876 7.971,13.786 7.971,16.692C8.382,16.696 9.196,16.696 9.603,16.696C9.612,14.369 9.608,12.042 9.608,9.715C10.259,11.866 10.953,14.005 11.609,16.152C12.093,16.152 12.573,16.152 13.053,16.152C13.713,14.005 14.408,11.866 15.059,9.715C15.059,12.042 15.055,14.369 15.063,16.696C15.471,16.696 16.285,16.696 16.696,16.692C16.696,13.786 16.701,10.876 16.692,7.971C15.783,7.971 14.875,7.971 13.966,7.971C13.448,9.753 12.951,11.541 12.411,13.315C11.545,11.656 11.313,9.736 10.701,7.971C9.792,7.971 8.883,7.971 7.975,7.971Z" />

<path
android:fillColor="#0F9D58"
android:pathData="M9.933,2.335C14.93,1.015 20.519,4.122 22.075,9.038C23.185,12.265 22.55,16.032 20.403,18.698C18.316,21.393 14.819,22.91 11.42,22.568C8.198,22.319 5.176,20.408 3.526,17.635C1.786,14.798 1.58,11.099 2.973,8.078C4.25,5.232 6.895,3.046 9.933,2.335ZM7.726,6.488C6.753,6.835 6.243,7.893 6.333,8.888C6.346,11.339 6.295,13.79 6.359,16.238C6.346,17.339 7.345,18.329 8.446,18.308C11.039,18.355 13.636,18.355 16.233,18.308C17.343,18.325 18.337,17.313 18.312,16.203C18.35,13.623 18.355,11.039 18.308,8.459C18.346,7.148 17.03,6.17 15.779,6.338C13.1,6.415 10.383,6.14 7.726,6.488Z" />

<path
android:fillColor="#0F9D58"
android:pathData="M7.974,7.97C8.883,7.97 9.791,7.97 10.7,7.97C11.313,9.736 11.544,11.656 12.41,13.314C12.95,11.54 13.447,9.753 13.965,7.97C14.874,7.97 15.783,7.97 16.691,7.97C16.7,10.876 16.695,13.786 16.695,16.692C16.284,16.696 15.47,16.696 15.063,16.696C15.054,14.369 15.058,12.042 15.058,9.715C14.407,11.866 13.713,14.005 13.053,16.152C12.573,16.152 12.093,16.152 11.608,16.152C10.953,14.005 10.258,11.866 9.607,9.715C9.607,12.042 9.611,14.369 9.603,16.696C9.196,16.696 8.381,16.696 7.97,16.692C7.97,13.786 7.966,10.876 7.974,7.97Z" />

</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24h-24z"/>
<path
android:pathData="M9.639,1.114C13.282,0.296 17.285,1.478 19.899,4.144C23.533,7.684 24.202,13.787 21.39,18.017C19.192,21.54 14.893,23.593 10.77,23.083C7.363,22.736 4.179,20.695 2.439,17.743C0.433,14.473 0.347,10.148 2.16,6.78C3.66,3.913 6.476,1.783 9.639,1.114ZM9.647,1.988C6.587,2.691 3.917,4.886 2.636,7.753C1.414,10.406 1.414,13.585 2.636,16.243C4.05,19.427 7.192,21.771 10.659,22.191C13.577,22.594 16.646,21.651 18.836,19.676C21.12,17.666 22.427,14.601 22.269,11.558C22.166,8.494 20.58,5.537 18.107,3.728C15.724,1.941 12.545,1.303 9.647,1.988Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M9.163,6.253C10.925,5.897 12.763,5.918 14.542,6.184C15.532,6.325 16.642,6.968 16.667,8.083C16.744,10.388 16.77,12.703 16.654,15.004C16.62,16.024 15.66,16.568 14.803,16.847C15.129,17.224 15.455,17.601 15.776,17.978C13.26,18.013 10.74,18.013 8.224,17.978C8.546,17.597 8.872,17.22 9.197,16.847C8.344,16.568 7.38,16.028 7.346,15.012C7.23,12.72 7.256,10.414 7.329,8.121C7.333,7.118 8.25,6.424 9.163,6.253ZM8.396,8.46C8.396,9.458 8.396,10.457 8.392,11.455C10.787,11.472 13.187,11.451 15.583,11.477C15.592,10.47 15.6,9.463 15.613,8.46C13.209,8.46 10.804,8.46 8.396,8.46ZM11.276,13.324C9.827,14.155 11.465,16.47 12.733,15.385C14.165,14.545 12.54,12.261 11.276,13.324Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M9.647,1.989C12.544,1.303 15.724,1.942 18.107,3.729C20.58,5.537 22.166,8.494 22.269,11.559C22.427,14.601 21.12,17.666 18.836,19.676C16.646,21.652 13.577,22.594 10.659,22.191C7.192,21.771 4.05,19.427 2.636,16.243C1.414,13.586 1.414,10.406 2.636,7.753C3.917,4.886 6.587,2.692 9.647,1.989ZM9.163,6.253C8.25,6.424 7.333,7.119 7.329,8.122C7.256,10.414 7.23,12.72 7.346,15.013C7.38,16.029 8.344,16.569 9.197,16.847C8.872,17.22 8.546,17.597 8.224,17.979C10.74,18.013 13.26,18.013 15.776,17.979C15.454,17.601 15.129,17.224 14.803,16.847C15.66,16.569 16.62,16.024 16.654,15.004C16.77,12.703 16.744,10.389 16.667,8.083C16.642,6.969 15.531,6.326 14.542,6.184C12.763,5.919 10.924,5.897 9.163,6.253Z"
android:fillColor="#0F9D58"/>
<path
android:pathData="M8.396,8.46C10.804,8.46 13.209,8.46 15.613,8.46C15.6,9.463 15.592,10.47 15.583,11.477C13.187,11.451 10.787,11.473 8.392,11.456C8.396,10.457 8.396,9.459 8.396,8.46Z"
android:fillColor="#0F9D58"/>
<path
android:pathData="M11.276,13.324C12.54,12.262 14.165,14.546 12.733,15.386C11.465,16.47 9.827,14.156 11.276,13.324Z"
android:fillColor="#0F9D58"/>
</group>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24h-24z"/>
<path
android:pathData="M11.243,1.253C12.763,1.118 14.319,1.403 15.687,2.081C16.987,2.72 18.114,3.705 18.925,4.905C19.91,6.353 20.417,8.121 20.34,9.871C20.283,10.63 20.086,11.37 19.829,12.084C19.404,13.269 18.822,14.39 18.187,15.474C17.547,16.563 16.837,17.608 16.083,18.621C15.274,19.697 14.42,20.743 13.473,21.702C13.22,21.953 12.962,22.2 12.685,22.424C12.501,22.566 12.314,22.714 12.093,22.793C11.93,22.858 11.767,22.754 11.63,22.674C11.212,22.41 10.859,22.059 10.506,21.717C9.611,20.812 8.799,19.828 8.028,18.816C6.895,17.311 5.854,15.731 4.996,14.053C4.517,13.103 4.093,12.12 3.828,11.087C3.721,10.667 3.65,10.237 3.621,9.804C3.587,8.698 3.776,7.585 4.177,6.553C4.66,5.304 5.453,4.177 6.461,3.295C7.785,2.13 9.485,1.401 11.243,1.253ZM11.373,3.297C10.061,3.425 8.796,3.994 7.834,4.896C7.012,5.655 6.408,6.647 6.112,7.725C5.817,8.797 5.822,9.951 6.133,11.019C6.582,12.603 7.715,13.974 9.179,14.725C10.51,15.42 12.103,15.588 13.552,15.201C14.727,14.891 15.804,14.218 16.596,13.295C17.38,12.394 17.885,11.254 18.025,10.067C18.207,8.61 17.835,7.088 16.989,5.886C16.193,4.731 14.984,3.865 13.63,3.494C12.899,3.282 12.129,3.233 11.373,3.297Z"
android:fillColor="#5F6368"/>
<path
android:pathData="M9.527,5.168C9.634,5.059 9.772,4.953 9.934,4.961C11.299,4.96 12.664,4.96 14.028,4.961C14.205,4.955 14.358,5.073 14.467,5.201C14.619,5.399 14.731,5.632 14.771,5.88C14.82,6.163 14.764,6.451 14.791,6.736C14.791,8.32 14.791,9.904 14.792,11.488C14.792,11.618 14.739,11.748 14.635,11.829C14.543,11.912 14.416,11.927 14.297,11.933C14.541,12.434 14.777,12.94 15.012,13.446C14.613,13.446 14.213,13.444 13.814,13.447C13.749,13.227 13.689,13.005 13.622,12.785C12.528,12.786 11.435,12.785 10.341,12.786C10.274,13.005 10.222,13.229 10.149,13.447C9.749,13.444 9.35,13.447 8.951,13.446C9.191,12.942 9.421,12.434 9.666,11.933C9.55,11.923 9.422,11.913 9.33,11.83C9.216,11.743 9.171,11.595 9.172,11.456C9.173,9.673 9.172,7.891 9.173,6.108C9.177,5.767 9.303,5.427 9.527,5.168ZM11.396,5.353C11.397,5.47 11.397,5.586 11.396,5.703C11.787,5.706 12.177,5.706 12.568,5.703C12.567,5.586 12.567,5.47 12.566,5.353C12.176,5.353 11.786,5.353 11.396,5.353ZM9.954,6.13C9.86,6.186 9.798,6.291 9.801,6.402C9.794,6.744 9.797,7.086 9.796,7.428C9.785,7.599 9.923,7.772 10.102,7.765C11.322,7.762 12.543,7.764 13.763,7.763C13.865,7.757 13.983,7.769 14.061,7.691C14.146,7.619 14.169,7.503 14.168,7.397C14.167,7.066 14.171,6.734 14.164,6.402C14.169,6.243 14.029,6.085 13.864,6.096C12.61,6.097 11.355,6.097 10.1,6.096C10.05,6.096 9.999,6.105 9.954,6.13ZM10.152,9.534C9.849,9.625 9.705,10.026 9.882,10.288C10.025,10.542 10.4,10.606 10.626,10.426C10.815,10.29 10.873,10.02 10.782,9.81C10.682,9.573 10.394,9.45 10.152,9.534ZM13.637,9.511C13.411,9.506 13.195,9.681 13.152,9.903C13.09,10.157 13.247,10.44 13.502,10.509C13.785,10.601 14.114,10.399 14.152,10.102C14.212,9.801 13.945,9.488 13.637,9.511ZM10.583,11.929C10.548,12.054 10.515,12.18 10.476,12.303C11.48,12.301 12.485,12.305 13.489,12.301C13.449,12.177 13.412,12.053 13.379,11.927C12.447,11.928 11.515,11.925 10.583,11.929Z"
android:fillColor="#5F6368"/>
</group>
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<string name="uttaraSouth">উত্তরা দক্ষিণ</string>
<string name="uttaraCenter">উত্তরা কেন্দ্র</string>
<string name="uttaraNorth">উত্তরা উত্তর</string>
<string name="diabari">ঢাকা মেট্রোরেল ডিপো, দিয়াবাড়ী</string>

<string name="jan">জানুয়ারি</string>
<string name="feb">ফেব্রুয়ারি</string>
Expand Down Expand Up @@ -98,6 +99,11 @@
<string name="autoSaveCardDetails">স্বয়ংক্রিয় কার্ড সংরক্ষণ</string>
<string name="autoSaveCardDetailsDescription">স্ক্যান করার সময় স্বয়ংক্রিয়ভাবে কার্ডের তথ্য সংরক্ষণ করুন</string>

<!-- Others screen -->
<string name="others">অন্যান্য</string>
<string name="station">স্টেশন</string>
<string name="stationMap">মেট্রো স্টেশন ম্যাপ</string>

<!-- Time ago strings -->
<string name="justNow">এইমাত্র</string>
<string name="minuteAgo">মিনিট আগে</string>
Expand Down
6 changes: 6 additions & 0 deletions composeApp/src/commonMain/composeResources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<string name="uttaraSouth">Uttara South</string>
<string name="uttaraCenter">Uttara Center</string>
<string name="uttaraNorth">Uttara North</string>
<string name="diabari">Dhaka Metro Rail Depot, Diabari</string>

<string name="jan">Jan</string>
<string name="feb">Feb</string>
Expand Down Expand Up @@ -98,6 +99,11 @@
<string name="autoSaveCardDetails">Auto-save card details</string>
<string name="autoSaveCardDetailsDescription">Automatically save card details when scanning</string>

<!-- Others screen -->
<string name="others">Others</string>
<string name="station">Station</string>
<string name="stationMap">Metro Station Map</string>

<!-- Time ago strings -->
<string name="justNow">Just now</string>
<string name="minuteAgo">minute ago</string>
Expand Down
5 changes: 5 additions & 0 deletions composeApp/src/commonMain/kotlin/net/adhikary/mrtbuddy/Osm.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package net.adhikary.mrtbuddy

import ovh.plrapps.mapcompose.core.TileStreamProvider

expect fun makeOsmTileStreamProvider(): TileStreamProvider
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
package net.adhikary.mrtbuddy.data.model


data class MarkerInfo(
val name: String,
val lat: Double,
val lon: Double,
)

object StationMapData {

val depot = listOf(
Pair(23.875330, 90.368135),
Pair(23.876254, 90.368319),
Pair(23.879849, 90.358013),
Pair(23.877771, 90.355232),
Pair(23.877571, 90.355215),
Pair(23.877571, 90.355215),
Pair(23.877302, 90.355341),
Pair(23.877071, 90.355551),
Pair(23.876948, 90.355846),
Pair(23.875349, 90.368030),
)

val routes = listOf(
Pair(23.877568, 90.359824),
Pair(23.876343, 90.367242),
Pair(23.876221, 90.367634),
Pair(23.875732, 90.368262),
Pair(23.875281, 90.368561),
Pair(23.874791, 90.368601),
Pair(23.867912, 90.367341),
Pair(23.867097, 90.367031),
Pair(23.866262, 90.366360),
Pair(23.865747, 90.366091),
Pair(23.860887, 90.365316),
Pair(23.853781, 90.364229),
Pair(23.846382, 90.363100),
Pair(23.844108, 90.363260),
Pair(23.844108, 90.363260),
Pair(23.842757, 90.363355),
Pair(23.840997, 90.363951),
Pair(23.840496, 90.364096),
Pair(23.839953, 90.364144),
Pair(23.839373, 90.364120),
Pair(23.838731, 90.363974),
Pair(23.837406, 90.363566),
Pair(23.829356, 90.363862),
Pair(23.827455, 90.364206),
Pair(23.822896, 90.364334),
Pair(23.819320, 90.365213),
Pair(23.812695, 90.366960),
Pair(23.806717, 90.368657),
Pair(23.798089, 90.372521),
Pair(23.784445, 90.378252),
Pair(23.776793, 90.380532),
Pair(23.770610, 90.382522),
Pair(23.765166, 90.383254),
Pair(23.762875, 90.383375),
Pair(23.761508, 90.383097),
Pair(23.760655, 90.382973),
Pair(23.760376, 90.382952),
Pair(23.760134, 90.383003),
Pair(23.759815, 90.383183),
Pair(23.759508, 90.383430),
Pair(23.759373, 90.383588),
Pair(23.759176, 90.383907),
Pair(23.759049, 90.384197),
Pair(23.758950, 90.384712),
Pair(23.758933, 90.385262),
Pair(23.759080, 90.388260),
Pair(23.759046, 90.388679),
Pair(23.758928, 90.389033),
Pair(23.758756, 90.389398),
Pair(23.758412, 90.389789),
Pair(23.758079, 90.390009),
Pair(23.753836, 90.391678),
Pair(23.753066, 90.391978),
Pair(23.751357, 90.392740),
Pair(23.748858, 90.393705),
Pair(23.744939, 90.395057),
Pair(23.742789, 90.395787),
Pair(23.741207, 90.396119),
Pair(23.740481, 90.396152),
Pair(23.738094, 90.395948),
Pair(23.736130, 90.395626),
Pair(23.734018, 90.395583),
Pair(23.733066, 90.395701),
Pair(23.732712, 90.395851),
Pair(23.732616, 90.395945),
Pair(23.731696, 90.396860),
Pair(23.728572, 90.399891),
Pair(23.728332, 90.400330),
Pair(23.728165, 90.400824),
Pair(23.728111, 90.401232),
Pair(23.728236, 90.403300),
Pair(23.728341, 90.403715),
Pair(23.728452, 90.403957),
Pair(23.728638, 90.404225),
Pair(23.729471, 90.405062),
Pair(23.729726, 90.405365),
Pair(23.729891, 90.405711),
Pair(23.730011, 90.406301),
Pair(23.730009, 90.407481),
Pair(23.730043, 90.408672),
Pair(23.730166, 90.410179),
Pair(23.730149, 90.412231),
Pair(23.730276, 90.414498),
Pair(23.730188, 90.415163),
Pair(23.730080, 90.415463),
Pair(23.727300, 90.420291),
Pair(23.726657, 90.421402),
Pair(23.726672, 90.421815),
Pair(23.727320, 90.422872),
Pair(23.727840, 90.424508),
Pair(23.728135, 90.425087),
Pair(23.728503, 90.425323),
Pair(23.732260, 90.425264),
)

val markers = listOf(
MarkerInfo("Dhaka Metro Rail Depot, Diabari", 23.877568, 90.359824),
MarkerInfo("Uttara North", 23.869147, 90.367491),
MarkerInfo("Uttara Center", 23.859583, 90.365067),
MarkerInfo("Uttara South", 23.845789, 90.363076),
MarkerInfo("Pallabi", 23.826163, 90.364206),
MarkerInfo("Mirpur 11", 23.819105, 90.365249),
MarkerInfo("Mirpur 10", 23.808359, 90.368214),
MarkerInfo("Kazipara", 23.799249, 90.371969),
MarkerInfo("Shewrapara", 23.790966, 90.375476),
MarkerInfo("Agargaon", 23.778439, 90.380049),
MarkerInfo("Bijoy Sarani", 23.766569, 90.383082),
MarkerInfo("Farmgate", 23.759056, 90.387059),
MarkerInfo("Karwan Bazar", 23.751312, 90.392715),
MarkerInfo("Shahbagh", 23.739303, 90.395976),
MarkerInfo("Dhaka University", 23.731802, 90.396646),
MarkerInfo("Bangladesh Secretariat", 23.730028, 90.407903),
MarkerInfo("Motijheel", 23.728068, 90.419082),
MarkerInfo("Kamalapur", 23.7319519, 90.4252219),
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import net.adhikary.mrtbuddy.ui.screens.home.MainScreenAction
import net.adhikary.mrtbuddy.ui.screens.home.MainScreenState
import net.adhikary.mrtbuddy.ui.screens.home.MainScreenViewModel
import net.adhikary.mrtbuddy.ui.screens.more.MoreScreenViewModel
import net.adhikary.mrtbuddy.ui.screens.stationmap.StationMapViewModel
import net.adhikary.mrtbuddy.ui.screens.transactionlist.TransactionListViewModel
import org.koin.core.module.dsl.viewModel
import org.koin.dsl.module
Expand Down Expand Up @@ -70,5 +71,9 @@ val appModule = module {
onAction(MainScreenAction.OnInit)
}
}

factory {
StationMapViewModel()
}
}

Loading