开发者

Android - Map View Controller

开发者 https://www.devze.com 2023-01-12 07:40 出处:网络
I am first time implementing Google Map in Android and troubling to show \"View Controller\" in Android.

I am first time implementing Google Map in Android and troubling to show "View Controller" in Android.

Let me clear about my problem: I want to display the "View Controller" which shows different view button, such as Satellite, street View, Hybrid,开发者_运维技巧 etc. So how do i show the "View controller" in Google map with Android.


You can set the following options to your MapView to define which mode to display.

mapView.setSatellite(true);
mapView.setStreetView(true);

But there are no buttons by default as part of the MapView that you can display to the user. This you could implement with embedding the MapView and the buttons into a FrameLayout, so that the buttons are floating on top of the map.

0

精彩评论

暂无评论...
验证码 换一张
取 消