fill.rst 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. .. list-table::
  2. :class: non-responsive
  3. :header-rows: 1
  4. :stub-columns: 1
  5. :widths: 20 10 50 20
  6. * - Property
  7. - Required?
  8. - Description
  9. - Default value
  10. * - ``fill-color``
  11. - No
  12. - Color of inside of features.
  13. - ``'#808080'`` (gray)
  14. * - ``fill-opacity``
  15. - No
  16. - Opacity of the fill. Valid values are a decimal value between ``0`` (completely transparent) and ``1`` (completely opaque).
  17. - ``1``
  18. * - ``fill-graphic``
  19. - No
  20. - A design or pattern to be used for the fill of the feature. Can either be a mark consisting of a common shape or a URL that points to a graphic. The ``<graphic_options>`` should consist of a mapping containing ``symbols:`` followed by an ``external:`` or ``mark:``, with appropriate parameters as detailed in the :ref:`ysld_reference_symbolizers_point` section.
  21. - None
  22. The use of ``fill-graphic`` allows for the following extra options:
  23. .. list-table::
  24. :class: non-responsive
  25. :header-rows: 1
  26. :stub-columns: 1
  27. :widths: 20 10 50 20
  28. * - Property
  29. - Required?
  30. - Description
  31. - Default value
  32. * - ``x-graphic-margin``
  33. - No
  34. - Used to specify margins (in pixels) around the graphic used in the fill. Possible values are a list of four (``top, right, bottom, left``), a list of three (``top, right and left, bottom``), a list of two (``top and bottom, right and left``), or a single value.
  35. - N/A
  36. * - ``x-random``
  37. - No
  38. - Activates random distribution of symbols. Possible values are ``free`` or ``grid``. ``free`` generates a completely random distribution, and ``grid`` will generate a regular grid of positions, and only randomize the position of the symbol around the cell centers, providing a more even distribution.
  39. - N/A
  40. * - ``x-random-tile-size``
  41. - No
  42. - When used with ``x-random``, determines the size of the grid (in pixels) that will contain the randomly distributed symbols.
  43. - ``256``
  44. * - ``x-random-rotation``
  45. - No
  46. - When used with ``x-random``, activates random symbol rotation. Possible values are ``none`` or ``free``.
  47. - ``none``
  48. * - ``x-random-symbol-count``
  49. - No
  50. - When used tih ``x-random``, determines the number of symbols drawn. Increasing this number will generate a more dense distribution of symbols
  51. - ``16``
  52. * - ``x-random-seed``
  53. - No
  54. - Determines the "seed" used to generate the random distribution. Changing this value will result in a different symbol distribution.
  55. - ``0``
  56. .. todo:: Add examples using random