I use the PlacePicker
API in my application and want to change its map type from simple to satellite.
PlacePicker is an API offered by Google.
Here is how I use it:
// Construct an intent for the place picker try { PlacePicker.IntentBuilder intentBuilder = new PlacePicker.IntentBuilder(); Intent intent = intentBuilder.build(this); // Start the intent by requesting a result, // identified by a request code. startActivityForResult(intent, PLACE_PICKER_REQUEST); } catch (GooglePlayServicesRepairableException e) { Snackbar snackbar = Snackbar .make(coordinatorLayout, e.getMessage(), Snackbar.LENGTH_SHORT); snackbar.show(); // ... } catch (GooglePlayServicesNotAvailableException e) { Snackbar snackbar = Snackbar .make(coordinatorLayout, e.getMessage(), Snackbar.LENGTH_SHORT); snackbar.show(); // ... }
and then in onActivityResult()
:
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PLACE_PICKER_REQUEST && resultCode == Activity.RESULT_OK) {
It displays only a simple card type. I want to show a satellite type map.
Please let me know how?
source share