You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i was trying to using BitmapDescriptorFactory.defaultMarker and its getting red,
any references?
if (Build.VERSION.SDK_INT >= 23) {
val geoLocator = GeoLocator(this@BerangkatKerjaActivity, this@BerangkatKerjaActivity)
val origin = LatLng(geoLocator.lattitude, geoLocator.longitude) //lokasi terapis sekarang
val destination = LatLng(-7.781200, 110.349709) //lokasi tujuan
DrawRouteMaps.getInstance(this)
.draw(origin, destination, mMap)
DrawMarker.getInstance(this).draw(mMap, origin, BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE), "Origin Location") //getting red in this line
DrawMarker.getInstance(this).draw(mMap, destination, BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE), "Destination Location") //getting red in this line
} else {
val service = getSystemService(FragmentActivity.LOCATION_SERVICE) as LocationManager
val criteria = Criteria()
val provider = service.getBestProvider(criteria, false)
val location = service.getLastKnownLocation(provider)
val userLocation = LatLng(location.latitude, location.longitude)
val origin = LatLng(userLocation.latitude, userLocation.longitude) //lokasi terapis sekarang
val destination = LatLng(-7.781200, 110.349709) //lokasi tujuan
DrawRouteMaps.getInstance(this)
.draw(origin, destination, mMap)
DrawMarker.getInstance(this).draw(mMap, origin, BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE), "Origin Location") //getting red in this line
DrawMarker.getInstance(this).draw(mMap, destination, BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE), "Destination Location") //getting red in this line
}
The text was updated successfully, but these errors were encountered:
i was trying to using BitmapDescriptorFactory.defaultMarker and its getting red,
any references?
The text was updated successfully, but these errors were encountered: