I was wondering how to do the map display just like Pokemon Go! Game does. Let’s check how it looks from the below screenshot.
Pokemon Go Screenshot
You can see Google Maps in this game is not vertical. It uses a bearing angle to display the map. Let’s see what I’ve done now.
Hey, what do you think? It looks very similar. I use Github office’s Latlng as the center point. So, you can see the Github building marker point in the center part of the whole screen. Then, the next question is, how do I show the map with an angle. Talk is cheap, show me the code.
Let’s check the UI layout first. As you can see, there’re two parts of the screen. The top part is the cloud background, it’s pretty obvious, just an ImageView. The bottom part is the MapFragment.
It would be a little bit weird if we directly separate the screen into two different parts. It would look like this.
Uh-hmm, it’s not what we thought. (Let’s ignore the map angle and focus on the layout first.) We’re going to do more in our layout file. Let’s add some drawables to make it better.
I was wondering how to do the map display just like Pokemon Go! Game does. Let’s check how it looks from the below screenshot.
Pokemon Go Screenshot
You can see Google Maps in this game is not vertical. It uses a bearing angle to display the map. Let’s see what I’ve done now.
Hey, what do you think? It looks very similar. I use Github office’s Latlng as the center point. So, you can see the Github building marker point in the center part of the whole screen. Then, the next question is, how do I show the map with an angle. Talk is cheap, show me the code.
Let’s check the UI layout first. As you can see, there’re two parts of the screen. The top part is the cloud background, it’s pretty obvious, just an ImageView. The bottom part is the MapFragment.
It would be a little bit weird if we directly separate the screen into two different parts. It would look like this.
Uh-hmm, it’s not what we thought. (Let’s ignore the map angle and focus on the layout first.) We’re going to do more in our layout file. Let’s add some drawables to make it better.