Skip to content

Commit

Permalink
Update style examples to match API.md (#1099) (h/t @carderne)
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne authored Jan 25, 2023
1 parent 8cc76e2 commit cff9fe4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ With this style, all Point features are blue and have a black halo when active.
No other features are rendered, even if they are present.

```js
mapbox.Draw({
var draw = new MapboxDraw({
// other draw options here
// ...
styles: [
{
'id': 'highlight-active-points',
Expand Down Expand Up @@ -45,7 +47,9 @@ mapbox.Draw({
With this style, all line and polygon features are have dashed red outline and transparent fill while being drawn, including the point vertices. When the Draw mode is changed the 'static', these features will be drawn with solid black outline and transparent fill. Point vertices use the same point filter, and render these points twice: once as a larger-radius halo, and again as the vertex inset point.

```js
mapbox.Draw({
var draw = new MapboxDraw({
// other draw options here
// ...
styles: [
// ACTIVE (being drawn)
// line stroke
Expand Down

0 comments on commit cff9fe4

Please sign in to comment.