Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEOT-6494] MBStyle extension #2743

Merged
merged 11 commits into from
Feb 13, 2020
Prev Previous commit
Next Next commit
break spec into pages
Signed-off-by: Jody Garnett <jody.garnett@gmail.com>
  • Loading branch information
jodygarnett committed Feb 9, 2020
commit fd6541da0a696c10912131a197e22db8b049d939
2,112 changes: 2,112 additions & 0 deletions docs/user/extension/mbstyle/spec/expressions.rst

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions docs/user/extension/mbstyle/spec/glyphs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. _glyphs:

Glyphs
------

A style's ``glyphs`` property provides a URL template for loading
signed-distance-field glyph sets in PBF format.

::

"glyphs": "{fontstack}/{range}.pbf"


This URL template should include two tokens:

- ``{fontstack}`` When requesting glyphs, this token is replaced with a
comma separated list of fonts from a font stack specified in the
```text-font`` <#layout-symbol-text-font>`__ property of a symbol
layer.
- ``{range}`` When requesting glyphs, this token is replaced with a
range of 256 Unicode code points. For example, to load glyphs for the
`Unicode Basic Latin and Basic Latin-1 Supplement
blocks <https://en.wikipedia.org/wiki/Unicode_block>`__, the range
would be ``0-255``. The actual ranges that are loaded are determined
at runtime based on what text needs to be displayed.

.. include:: footer.txt
8 changes: 7 additions & 1 deletion docs/user/extension/mbstyle/spec/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Feature support is provided for the `Mapbox GL JS <https://www.mapbox.com/mapbox
root
light
sources
spec
sprite
glyphs
transition
layers
types
expressions
other

.. include:: footer.txt
Loading