Created
January 6, 2019 09:26
-
-
Save mizutori/2a6c8c3ec1bc93b1acc8b487710ba756 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private fun zoomMapTo(location: Location) { | |
val latLng = LatLng(location.latitude, location.longitude) | |
try { | |
map.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 17.5f)) | |
this.didInitialZoom = true | |
return | |
} catch (e: Exception) { | |
e.printStackTrace() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment