Skip to content

Commit d14a705

Browse files
adi carmelmourner
adi carmel
andauthored
fix(docs): add missing midpoints styles docs (#1048)
Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
1 parent ce122fb commit d14a705

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/EXAMPLES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ mapbox.Draw({
7474
"fill-opacity": 0.1
7575
}
7676
},
77+
// polygon mid points
78+
{
79+
'id': 'gl-draw-polygon-midpoint',
80+
'type': 'circle',
81+
'filter': ['all',
82+
['==', '$type', 'Point'],
83+
['==', 'meta', 'midpoint']],
84+
'paint': {
85+
'circle-radius': 3,
86+
'circle-color': '#fbb03b'
87+
},
7788
// polygon outline stroke
7889
// This doesn't style the first edge of the polygon, which uses the line stroke styling instead
7990
{

0 commit comments

Comments
 (0)