Closed tasomaniac closed 8 years ago
2nd screenshot is not taken with Telescope.
In the first one, shadow below the TabLayout
is not shown. Do you think it is related to my code or does it happen in all canvas screenshots?
Yeah, shadows aren't captured using the canvas method. Not related to your code at all!
I don't really care about the missing callbacks or the API key best practices. This is a Telescope sample, not MapView 101 :smile:
Thanks for submitting this! I'll take a closer look over the weekend hopefully.
This is awesome! It works great. I made some formatting changes and merged manually. Thanks again!
Thank you for merging it. I hope it would be a useful example for others.
Example tab with Google Maps canvas screenshot is added.
Google works so hard for people to use
MapFragment
. Docs say that if we are usingMapView
we have to call 6 lifecycle callbacks manually. Which I am not doing here. I didn't take time to do it cleanly. For demo purposes I think it is fine. What do you think?For maps to work, we need API key. So I included a
debug.keystore
into the source code with a API key taken from Google Developers Cloud Console. It is not the best practice to put this API key into source control but for demo purposes I think it is fine. You may want to change that.Here is a screenshot taken in the sample using Telescope:
Here is one from an emulator w/o Google Play Services:
Fixes #21