Understanding fully interactive mode and lite mode
The Google Maps android API can static as light mode maps.
Adding Lite mode to Android Maps is similar to configuring the normal maps, because it will use the same classes and interfaces. We can set Google Maps to the Lite mode in the following two ways:
- As an XML attribute to your
MapView
orMapFrgament
- Using the
GoogleMapOptions
object
<fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:map="http://schemas.android.com/apk/res-auto" android:name="com.google.android.gms.maps.MapFragment" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" map:cameraZoom="13" map:mapType="normal" map:liteMode="true"/>
Or, using the GoogleMapOptions
object as follows:
GoogleMapOptions options = new GoogleMapOptions().liteMode(true);
Interactive mode allows the to use all the methods, including onCreate()
, onDestroy()
, onResume()
, and onPause()
, and all the...