I have created a custom map styling following this tutorial
https://www.youtube.com/watch?v=sLZxAB1el6w
The issue i am facing now is that i want to display the Map in 2D view rather than the earth 3D view by default i don't want to enable compass using which i believe you can switch between 2 views.
It would be really helpful if you could share any information regarding this.
Thanks
Turn on 3D imageryfeature to choose between 2D and 3D modes. To switch between 3D and 2D buildings: On your computer, open Google Earth.
As far as I know, there is no option to restrict as only 2D view in just one option.
However you can change the settings like this.
GoogleMapOptions options = new GoogleMapOptions();
options.compassEnabled(false);
options.tiltGesturesEnabled(false);
options.rotateGesturesEnabled(false);
MapView mapView = new MapView(context, options);
mapView.getMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(GoogleMap map) {
}
});
More options, check out the document https://developers.google.com/android/reference/com/google/android/gms/maps/GoogleMapOptions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With