WEBVTT

00:00.080 --> 00:00.920
Welcome back.

00:01.160 --> 00:04.600
Let's make some changes to our application.

00:04.600 --> 00:06.000
Here we have the route.

00:06.040 --> 00:11.480
The route to similar fabs I need to change the name of them.

00:11.480 --> 00:14.120
So go to expandable fabs.

00:14.280 --> 00:17.840
Scroll down draw multi route.

00:17.880 --> 00:18.800
This is good.

00:19.000 --> 00:24.560
Now we have the last fab which is the clear route.

00:24.600 --> 00:27.240
We need to add the functionality to it.

00:27.400 --> 00:32.040
So here let me add on clear route.

00:32.080 --> 00:35.560
Or you can use unclear map.

00:35.560 --> 00:37.800
Name it as clear map.

00:37.960 --> 00:39.200
And this is good.

00:39.240 --> 00:43.000
In the multi route you can set the icons.

00:43.000 --> 00:47.600
For example this build add multi markers.

00:47.720 --> 00:53.440
You can use this icon location in order to refer for the markers.

00:53.440 --> 00:55.040
And this is good.

00:55.080 --> 00:59.040
Now let's pass here on clear map.

00:59.320 --> 01:04.200
Also a lambda expression taking nothing and returning nothing.

01:04.360 --> 01:06.520
Go back to Uber clone map.

01:06.520 --> 01:10.320
Let's add unclear map functionality.

01:10.360 --> 01:13.280
View model dot clear route.

01:13.320 --> 01:20.480
We're going to create it in the next couple of minutes and multiple markers list dot clear.

01:20.480 --> 01:25.350
Here we are clearing the list of multiple markers and removing all markers here.

01:25.550 --> 01:31.310
Um, also the marker position dot clear or set it to null.

01:31.350 --> 01:35.550
Okay, now move to the map view model here.

01:35.710 --> 01:37.870
Create clear route.

01:37.910 --> 01:42.270
The route points value equals to empty list.

01:42.270 --> 01:44.110
Multi route points value.

01:44.150 --> 01:45.070
Empty list.

01:45.190 --> 01:51.310
Also the selected location dot value equals to null.

01:51.350 --> 01:52.710
Run the application.

01:52.710 --> 01:54.470
Let's test our application.

01:54.510 --> 01:55.590
Go to here.

01:55.590 --> 01:57.550
And this is better.

01:57.590 --> 01:58.510
The icons.

01:58.550 --> 02:01.790
Let me start with a request A ride.

02:01.830 --> 02:04.350
I need to go to Bolivia from Argentina.

02:04.550 --> 02:07.070
Drew route and here we go.

02:07.230 --> 02:15.590
Let me draw multi markers in from here to here and make sure to select draw multi route.

02:15.590 --> 02:17.910
And congratulations guys.

02:18.150 --> 02:21.150
This is a perfect app I love it guys.

02:21.150 --> 02:26.870
So um I love to make things like this okay.

02:26.910 --> 02:29.270
Let me check the clear map.

02:29.270 --> 02:30.190
And here we go.

02:30.390 --> 02:32.110
Congratulations guys.

02:32.110 --> 02:34.550
This is um a very important.

02:34.550 --> 02:38.310
And I'm happy to create such an application.
