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

Enable text-offset with variable label placement #8642

Merged
merged 8 commits into from
Aug 30, 2019
Prev Previous commit
Next Next commit
Update specification
  • Loading branch information
pozdnyakov committed Aug 29, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 59afffbcf9cd5638e455e99f2f52e497d5425e0e
7 changes: 2 additions & 5 deletions src/style-spec/reference/v8.json
Original file line number Diff line number Diff line change
@@ -1855,7 +1855,7 @@
"type": "number",
"units": "ems",
"default": 0,
"doc": "Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which doesn't support the two-dimensional `text-offset`.",
"doc": "Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which otherwise uses the two-dimensional `text-offset`.",
pozdnyakov marked this conversation as resolved.
Show resolved Hide resolved
"sdk-support": {
"basic functionality": {
"js": "0.54.0",
@@ -2214,7 +2214,7 @@
},
"text-offset": {
"type": "array",
"doc": "Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.",
"doc": "Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. Note that in combination with `text-variable-anchor` only positive values are allowed and they indicate radial offsets along x- and y-axis accordingly.",
"value": "number",
"units": "ems",
"length": 2,
@@ -2226,9 +2226,6 @@
"text-field",
{
"!": "text-radial-offset"
},
{
"!": "text-variable-anchor"
}
],
"sdk-support": {