WEBVTT

00:00.080 --> 00:08.200
In Google Maps, you can switch between different map types normal, satellite, hybrid, and terrain.

00:08.440 --> 00:15.360
To change how the map is displayed in this video, we're going to learn how to implement this functionality.

00:15.520 --> 00:24.200
Google maps provides these main types the normal default road map view satellite.

00:24.200 --> 00:26.560
Photographic satellite imagery.

00:26.600 --> 00:31.080
Hybrid satellite imagery with roads and labels.

00:31.120 --> 00:36.680
Terrain topographic data with colors and contour lines.

00:36.680 --> 00:41.960
Let's start with the normal, which is the default.

00:41.960 --> 00:46.600
Start with var map type if by.

00:46.880 --> 00:54.520
Remember mutable state of map type dot normal alt plus.

00:54.520 --> 01:02.480
Enter to import operator state dot get value and alt plus enter to import the mutable state dot set

01:02.520 --> 01:05.680
value here inside the Google map.

01:05.720 --> 01:07.360
Composable function.

01:07.360 --> 01:14.080
In order to control the map type, we need to set inside the properties here.

01:14.120 --> 01:15.240
Properties.

01:15.280 --> 01:18.480
Parameter map properties.

01:18.720 --> 01:23.640
Set the map type equals to my map type.

01:23.680 --> 01:33.120
If hover the mouse or Ctrl and left click we have those parameters of the map properties is building

01:33.120 --> 01:35.080
enabled indoor enabled.

01:35.080 --> 01:36.200
Location enabled.

01:36.240 --> 01:37.280
Traffic enabled.

01:37.280 --> 01:45.840
Net long bounce from camera, target map style options map type, maximum zoom preference and minimum

01:45.840 --> 01:47.360
zoom preference.

01:47.400 --> 01:50.200
Okay, we need the map type.

01:50.360 --> 01:51.520
Let me run.

01:51.560 --> 01:56.080
This is the map type which is normal and this is the default.

01:56.080 --> 01:59.520
Let me choose another type.

01:59.560 --> 02:06.120
Set it to hybrid or set it to terrain then run again.

02:06.320 --> 02:09.760
Notice we have terrains displayed.

02:09.760 --> 02:19.680
Also, if we choose to set it to satellite run again, we have the satellite view of Singapore.

02:19.840 --> 02:21.680
Okay this is the satellite.

02:21.760 --> 02:23.880
We can use hybrid.

02:23.920 --> 02:33.880
You can notice that mixing of roads and the hybrid the satellite view and the terrain view.

02:34.000 --> 02:34.480
Okay.

02:34.680 --> 02:40.080
Those are the types different types of maps in Google Maps.
