Skip to content

Commit

Permalink
a few extra pieces of text
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgryan committed Jul 14, 2024
1 parent 817315d commit 00220f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/articles/divicon.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ it is best to use the JS attribute `className` by using the `class-name` equival

## Mark-up

```html
The usual rules for converting from JS to HTML apply.

```html,hl_lines=6 9,linenos
<l-map zoom="5" center="[45, 0]">
<l-tile-layer
url-template="https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png"
Expand All @@ -68,6 +70,8 @@ it is best to use the JS attribute `className` by using the `class-name` equival
</l-map>
```

Line 6 and 9 above show how to use a div icon to create a pink and blue circle icon.

# Conclusion

Div icons enable a front-end developer to craft amazing visualisations.

0 comments on commit 00220f3

Please sign in to comment.