Reputation: 317
Is there an option available out of the box to display map type controls in google map android API like
as there is an option in javascript API where while initializing map by passing this mapTypeControl: true,
map type controls are displayed automatically like this
Upvotes: 2
Views: 1086
Reputation: 6839
Google has provided api to set MapType runtime programatically but i guess there is no API to invoke dialog like interface for user to choose map type as shown in image. To solve this devs have been constructing their own dialog with for eg radio buttons to choose map type and on user selection they are changing the property to desired one.
API - map.setMapType(GoogleMap.MAP_TYPE_HYBRID);
You can check similar implementation Here
Upvotes: 2