You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.5 KiB

  1. #### Unicode Icons
  2. Unicode defines many icons which can be used either directly or via their HTML codes, e.g.:
  3. ```html
  4. 🎂 🎂 🎂
  5. ```
  6. A drawback of Unicode icons is, that the display will differ from system to system as they depend on the available Fonts.
  7. #### Self defined icons
  8. You may upload images to your repository and use them via a relative image link:
  9. ```html
  10. <img src='img/foobar.svg'>
  11. ```
  12. This will include the image from your repository (when uploaded to your 'img' directory).
  13. #### Font Awesome Icons
  14. Font Awesome 4 is included in OpenStreetBrowser, therefore you can use, e.g.:
  15. ```html
  16. <i class="fa fa-compass" aria-hidden="true"></i>
  17. ```
  18. You can use normal CSS to modify its look, e.g.
  19. ```html
  20. <i style="color: red;" class="fa fa-compass" aria-hidden="true"></i>
  21. ```
  22. #### Mapbox Maki Icons
  23. Mapbox Maki Icons 4 are also included in OpenStreetBrowser. They can be accessed as images with protocol 'maki', e.g.:
  24. ```html
  25. <img src="maki:park">
  26. ```
  27. This will include the park-15.svg icon. Mapbox Maki icons come in two sizes: 11 and 15. Default is 15, if you want to use 11 pass the size parameter with value 11:
  28. ```html
  29. <img src="maki:park?size=11">
  30. ```
  31. You can pass URL options to the icon to modify its look. Note that every icon is a [SVG path](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths) and all [style options](https://developer.mozilla.org/de/docs/Web/SVG/Tutorial/Fills_and_Strokes) are available:
  32. ```html
  33. <img src="maki:park?size=11&amp;fill=red&amp;stroke=black&amp;stroke-width=0.5">
  34. ```