index.rst 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. .. _mbstyle_cookbook:
  2. MBStyle Cookbook
  3. ================
  4. The MBStyle Cookbook is a collection of MBStyle "recipes" for creating various types of map styles. Wherever possible, each example is designed to show off a single MBStyle layer so that code can be copied from the examples and adapted when creating MBStyles of your own. While not an exhaustive reference like the :ref:`MBStyle reference <mbstyle_reference>` the MBStyle cookbook is designed to be a practical reference, showing common style templates that are easy to understand.
  5. The MBStyle Cookbook is divided into four sections: the first three for each of the vector types (points, lines, and polygons) and the fourth section for rasters to come. Each example in every section contains a screenshot showing actual GeoServer WMS output, a snippet of the MBStyle code for reference, and a link to download the full MBStyle.
  6. Each section uses data created especially for the MBStyle Cookbook, with shapefiles for vector data and GeoTIFFs for raster data.
  7. .. list-table::
  8. :widths: 20 80
  9. :header-rows: 1
  10. * - Data Type
  11. - Shapefile
  12. * - Point
  13. - :download:`mbstyle_cookbook_point.zip <artifacts/mbstyle_cookbook_point.zip>`
  14. * - Line
  15. - :download:`mbstyle_cookbook_line.zip <artifacts/mbstyle_cookbook_line.zip>`
  16. * - Polygon
  17. - :download:`mbstyle_cookbook_polygon.zip <artifacts/mbstyle_cookbook_polygon.zip>`
  18. .. toctree::
  19. :maxdepth: 2
  20. points
  21. lines
  22. polygons