@@ -117,7 +117,7 @@ class MapFragment : Fragment(), MapHandler {
117
117
placeSearchViewModel.bookmarks.forEachIndexed { index, location ->
118
118
tMap.makeMarker(
119
119
index.toString(),
120
- R .drawable.ic_baseline_stars_32 ,
120
+ BOOKMARK_MARKER_IMG ,
121
121
TMapPoint (location.latitude, location.longitude)
122
122
)
123
123
}
@@ -142,8 +142,8 @@ class MapFragment : Fragment(), MapHandler {
142
142
setPanel(clickTMapPoint)
143
143
144
144
tMap.makeMarker(
145
- MARKER ,
146
- R .drawable.ic_baseline_location_on_32 ,
145
+ PLACE_MARKER ,
146
+ PLACE_MARKER_IMG ,
147
147
clickTMapPoint
148
148
)
149
149
}
@@ -164,8 +164,8 @@ class MapFragment : Fragment(), MapHandler {
164
164
setPanel(currentTMapPoint)
165
165
166
166
tMap.makeMarker(
167
- MARKER ,
168
- R .drawable.ic_baseline_location_on_32 ,
167
+ PLACE_MARKER ,
168
+ PLACE_MARKER_IMG ,
169
169
currentTMapPoint
170
170
)
171
171
}
@@ -196,7 +196,7 @@ class MapFragment : Fragment(), MapHandler {
196
196
override fun setOnDisableScrollWIthZoomLevelListener () {
197
197
if (binding.layoutPanel.visibility == View .VISIBLE ) {
198
198
binding.layoutPanel.visibility = View .GONE
199
- tMap.tMapView.removeTMapMarkerItem(MARKER )
199
+ tMap.tMapView.removeTMapMarkerItem(PLACE_MARKER )
200
200
} else {
201
201
setViewVisibility()
202
202
mapUIVisibility = mapUIVisibility.xor(View .GONE )
@@ -208,9 +208,14 @@ class MapFragment : Fragment(), MapHandler {
208
208
}
209
209
210
210
companion object {
211
- private const val MARKER = " marker"
211
+ private const val PLACE_MARKER = " place_marker"
212
+ private const val PLACE_MARKER_IMG = R .drawable.ic_baseline_location_on_32
213
+
212
214
private const val PERSON_MARKER = " marker_person_pin"
213
215
private const val PERSON_MARKER_IMG = R .drawable.ic_person_pin
216
+
214
217
val PERMISSIONS = arrayOf(permission.ACCESS_FINE_LOCATION , permission.ACCESS_COARSE_LOCATION )
218
+
219
+ private const val BOOKMARK_MARKER_IMG = R .drawable.ic_baseline_stars_32
215
220
}
216
221
}
0 commit comments