I need to show world map on my application. I tried to use MapView and set liteMode= true and zoomLevel=1 but its not working as i need. Also groundOverlay not supported in liteMode and i need to show multiple groundOverlay on WorldMap. can anyone know about it?
Please refere below link i need to show full world map like this.
https://upload.wikimedia.org/wikipedia/commons/b/b0/World_location_map_%28equirectangular_180%29.svg
Below code i done :
<com.google.android.gms.maps.MapView
android:id="@id/mapView"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_180"
map:liteMode="true"
map:cameraZoom="1"
map:mapType="normal"
/>
In my Java Class
@Override
public void onMapReady(GoogleMap googleMap) {
if (googleMap != null) {
this.googleMap = googleMap;
this.googleMap.getUiSettings().setCompassEnabled(false);
this.googleMap.getUiSettings().setAllGesturesEnabled(false);
this.googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
this.googleMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.style_json));
this.googleMap.getUiSettings().setMapToolbarEnabled(false);
this.googleMap.getUiSettings().setCompassEnabled(false);
this.googleMap.getUiSettings().setScrollGesturesEnabled(false);
}
In this is added zoomLevel=1 but in google map its not showing world map as like above image link i shared.