Ali Zaidi
Ali Zaidi

Reputation: 317

Google Map Android API mapTypeControl options over map

Is there an option available out of the box to display map type controls in google map android API like enter image description here

as there is an option in javascript API where while initializing map by passing this mapTypeControl: true, map type controls are displayed automatically like thisenter image description here

Upvotes: 2

Views: 1086

Answers (1)

Neji
Neji

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

Related Questions