Last active
February 24, 2020 01:31
-
-
Save wangyung/e4fddcef5034eb45b2f29a3693cc2d61 to your computer and use it in GitHub Desktop.
The example of how to animate the tile overlay on google maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun animateTileOverlay() { | |
overlay?.remove() // Remove previous overlay | |
overlay = map.addTileOverlay( | |
TileOverlayOptions() | |
.tileProvider(tileProvider) | |
.fadeIn(false) | |
.zIndex(zIndex) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment