From 6134631cc11f2dd9e98102e1d8d28f225316b966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20=C4=8Cugurovi=C4=87?= Date: Fri, 8 Oct 2021 15:38:09 +0200 Subject: [PATCH] Update EXAMPLES.md Update indentation for some blocks, and add a missing closing brace. --- docs/EXAMPLES.md | 61 ++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/docs/EXAMPLES.md b/docs/EXAMPLES.md index 83f94ecfb..32e4d3d82 100644 --- a/docs/EXAMPLES.md +++ b/docs/EXAMPLES.md @@ -50,18 +50,18 @@ mapbox.Draw({ // ACTIVE (being drawn) // line stroke { - "id": "gl-draw-line", - "type": "line", - "filter": ["all", ["==", "$type", "LineString"], ["!=", "mode", "static"]], - "layout": { - "line-cap": "round", - "line-join": "round" - }, - "paint": { - "line-color": "#D20C0C", - "line-dasharray": [0.2, 2], - "line-width": 2 - } + "id": "gl-draw-line", + "type": "line", + "filter": ["all", ["==", "$type", "LineString"], ["!=", "mode", "static"]], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#D20C0C", + "line-dasharray": [0.2, 2], + "line-width": 2 + } }, // polygon fill { @@ -76,14 +76,13 @@ mapbox.Draw({ }, // polygon mid points { - 'id': 'gl-draw-polygon-midpoint', - 'type': 'circle', - 'filter': ['all', - ['==', '$type', 'Point'], - ['==', 'meta', 'midpoint']], - 'paint': { - 'circle-radius': 3, - 'circle-color': '#fbb03b' + 'id': 'gl-draw-polygon-midpoint', + 'type': 'circle', + 'filter': ['all', ['==', '$type', 'Point'], ['==', 'meta', 'midpoint']], + 'paint': { + 'circle-radius': 3, + 'circle-color': '#fbb03b' + } }, // polygon outline stroke // This doesn't style the first edge of the polygon, which uses the line stroke styling instead @@ -125,17 +124,17 @@ mapbox.Draw({ // INACTIVE (static, already drawn) // line stroke { - "id": "gl-draw-line-static", - "type": "line", - "filter": ["all", ["==", "$type", "LineString"], ["==", "mode", "static"]], - "layout": { - "line-cap": "round", - "line-join": "round" - }, - "paint": { - "line-color": "#000", - "line-width": 3 - } + "id": "gl-draw-line-static", + "type": "line", + "filter": ["all", ["==", "$type", "LineString"], ["==", "mode", "static"]], + "layout": { + "line-cap": "round", + "line-join": "round" + }, + "paint": { + "line-color": "#000", + "line-width": 3 + } }, // polygon fill {