WEBVTT

00:00.080 --> 00:02.840
Let's continue customizing our marker.

00:02.840 --> 00:12.400
For example, if I need to display an icon instead of this default marker, you can go and uh, download

00:12.400 --> 00:14.720
an icon, for example like this.

00:14.840 --> 00:18.000
Navigate to drawable folder, then paste.

00:18.000 --> 00:24.480
Make sure the name of the image starting with small letters and no numbers.

00:24.480 --> 00:26.840
The name is target png.

00:26.920 --> 00:29.480
Now I want from you to focus with me.

00:29.520 --> 00:32.720
It's, uh like complicated.

00:32.720 --> 00:40.400
But don't worry, I need to use the bitmap factory dot decode resource.

00:40.440 --> 00:46.880
And here I need to pass two parameters the context and the drawable itself.

00:46.880 --> 00:49.200
Let's start by context.

00:49.240 --> 00:58.920
You can use application context dot resources and r dot drawable dot target the name of the file.

00:59.080 --> 01:03.140
You can notice the thumbnail of the icon appears here.

01:03.180 --> 01:10.900
The second thing we need to do is in the marker instead of custom icon, we need to use custom icon

01:10.900 --> 01:11.300
too.

01:11.460 --> 01:17.540
So here bitmap descriptor factory dot from bitmap.

01:17.540 --> 01:24.540
And here pass the custom icon to okay custom icon to Let's Run.

01:24.540 --> 01:26.020
And here we go.

01:26.180 --> 01:28.300
This is our lovely icon.

01:28.300 --> 01:37.140
You can notice the icon is like enlarging and but actually it's size still the same.

01:37.140 --> 01:40.900
But we are uh we are zooming in okay.

01:41.140 --> 01:46.340
And here you can notice okay this is for the PNG assets.

01:46.660 --> 01:51.740
But for simplicity I'll keep it a custom icon to icon one.

01:51.740 --> 01:58.620
So instead of using this I'm gonna use custom icon one okay.

01:58.940 --> 02:04.100
In order to lecture about the info window and other concepts okay.

02:04.140 --> 02:05.620
And continue with our app.
