|
|
@ -77,8 +77,8 @@ class FirstFragment: Fragment(R.layout.fragment_map_page) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun findAndPutRestaurant(){
|
|
|
|
private fun findAndPutRestaurant(){
|
|
|
|
Log.e("Debug","${locationListener.latitude},${locationListener.latitude}")
|
|
|
|
Log.e("Debug","${locationListener.latitude},${locationListener.longitude}")
|
|
|
|
listRestaurant = getRestaurants(locationListener.latitude,locationListener.latitude,1000000)
|
|
|
|
listRestaurant = getRestaurants(locationListener.latitude,locationListener.longitude,1000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(listRestaurant.isEmpty()){
|
|
|
|
if(listRestaurant.isEmpty()){
|
|
|
@ -87,9 +87,7 @@ class FirstFragment: Fragment(R.layout.fragment_map_page) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mapView?.getMapAsync { map ->
|
|
|
|
mapView?.getMapAsync { map ->
|
|
|
|
|
|
|
|
map.animateCamera(CameraUpdateFactory.newLatLngZoom(LatLng(locationListener.latitude, locationListener.longitude), 11.0))
|
|
|
|
map.animateCamera(CameraUpdateFactory.newLatLngZoom(
|
|
|
|
|
|
|
|
LatLng(locationListener.latitude, locationListener.longitude), 11.0))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map.setStyle(makeStyleUrl()) { style ->
|
|
|
|
map.setStyle(makeStyleUrl()) { style ->
|
|
|
|
map.uiSettings.setAttributionMargins(15, 0, 0, 15)
|
|
|
|
map.uiSettings.setAttributionMargins(15, 0, 0, 15)
|
|
|
|