RippleMapView allows to implement ripple effect to google map easily.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.serhatleventyavas:RippleMapView:1.0.0'
}
val rippleMapView = this.googleMap?.let {
RippleMapView.Builder(this, it)
.fillColor(resources.getColor(R.color.colorPrimaryDark))
.strokeColor(resources.getColor(R.color.colorPrimaryDark))
.latLng(LatLng(41.009146, 29.034022))
.numberOfRipples(3)
.build()
}
rippleMapView?.startRippleMapAnimation()
rippleMapView?.withLatLng(location);
RippleMapView is released under the MIT license. See LICENSE for details.