WEBVTT

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

00:01.080 --> 00:07.000
Similar to what we've done with dynamic Polylines, I'm going to create dynamic polygons.

00:07.120 --> 00:15.680
So here create a new dynamic Polylines or polygons mutable state of lat long.

00:15.800 --> 00:23.640
Then scroll down and instead of on map click I'll create dynamic polygons on map long click.

00:23.800 --> 00:26.800
But don't worry, it's the same logic.

00:27.040 --> 00:31.720
So here create a new dynamic polygon.

00:31.760 --> 00:40.760
Dynamic polygon polygons equals to dynamic polygons plus the newly created lat long.

00:40.880 --> 00:48.040
Okay, this is how we add markers to the newly created or the newly created marker to that dynamic polygon.

00:48.280 --> 00:54.080
The third step, as we did before, is to create the polygon itself.

00:54.160 --> 00:59.520
Scroll up and here representing the dynamic polygon.

00:59.560 --> 01:03.040
But there is a very important notice here.

01:03.040 --> 01:13.220
You should mention that this note is that the dynamic polygons should size should be greater than three

01:13.380 --> 01:21.580
because in order to create any shape, you should have three points, which is the triangle for squared,

01:21.580 --> 01:22.420
and so on.

01:22.460 --> 01:24.980
Okay, so this is that dynamic polygons.

01:24.980 --> 01:29.780
The size should be more than three dynamic polygons.

01:29.900 --> 01:37.340
Color would be for example magenta and others which is a polygon okay.

01:37.540 --> 01:38.660
Remove the color.

01:38.900 --> 01:43.980
Set the content color fill color color dot magenta.

01:44.020 --> 01:44.860
That's good.

01:44.860 --> 01:49.420
Let me run and see the dynamic polygons on long.

01:49.420 --> 01:50.860
Click on the map.

01:50.860 --> 01:52.380
Long click on the map.

01:52.500 --> 01:54.380
This is the first point.

01:54.420 --> 01:58.780
Go to the Christmas island, the second point and the third point.

01:58.780 --> 02:03.780
Here you can see that dynamic polygon is created.

02:04.060 --> 02:08.260
Let's add the fourth, the fifth, the sixth.

02:08.300 --> 02:10.940
And here we go guys.

02:11.220 --> 02:15.140
This is our lovely created polygon.

02:15.180 --> 02:19.140
This is how we create dynamic polygons and polylines.
