diff options
| author | Jakub Hampl <kopomir@gmail.com> | 2019-05-20 15:11:57 +0100 | 
|---|---|---|
| committer | Jakub Hampl <kopomir@gmail.com> | 2019-05-20 15:11:57 +0100 | 
| commit | cdb097cb83548fee0778d4040dd35fc2dd0f3464 (patch) | |
| tree | ebc7e1b18b8af4c1ac8cae015991664df9bc0632 | |
| parent | 707ee1c39efa6e49fa5b0869af79bb241c2e0216 (diff) | |
Upgrades to mapbox 544.1.0
| -rw-r--r-- | elm.json | 2 | ||||
| -rw-r--r-- | generate-elm.js | 3 | ||||
| -rw-r--r-- | package-lock.json | 625 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | src/Mapbox/Layer.elm | 52 | 
5 files changed, 621 insertions, 65 deletions
| @@ -3,7 +3,7 @@      "name": "gampleman/elm-mapbox",      "summary": "An advanced mapping library",      "license": "MIT", -    "version": "4.0.0", +    "version": "4.1.0",      "exposed-modules": [          "Mapbox.Element",          "Mapbox.Cmd.Template", diff --git a/generate-elm.js b/generate-elm.js index 1d1a712..181c4c1 100644 --- a/generate-elm.js +++ b/generate-elm.js @@ -59,7 +59,7 @@ Paint properties are applied later in the rendering process. Changes to a paint  ${Object.keys(docs)      .map(        (section) => -        `- [${section} Attributes](#${section.toLowerCase()}-attibutes)` +        `- [${section} Attributes](#${section.toLowerCase()}-attributes)`      )      .join("\n")} @@ -297,6 +297,7 @@ function generateElmProperty(name, prop, layerType, position) {      throw "Constant property type not supported";    const elmName = camelCase(name);    const exprKind = +    prop["sdk-support"] &&      prop["sdk-support"]["data-driven styling"] &&      prop["sdk-support"]["data-driven styling"].js        ? "any" diff --git a/package-lock.json b/package-lock.json index 710af02..fd92a3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -748,6 +748,535 @@              "supports-color": "^4.0.0"            }          }, +        "fsevents": { +          "version": "1.2.4", +          "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", +          "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", +          "dev": true, +          "optional": true, +          "requires": { +            "nan": "^2.9.2", +            "node-pre-gyp": "^0.10.0" +          }, +          "dependencies": { +            "abbrev": { +              "version": "1.1.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "ansi-regex": { +              "version": "2.1.1", +              "bundled": true, +              "dev": true +            }, +            "aproba": { +              "version": "1.2.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "are-we-there-yet": { +              "version": "1.1.4", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "delegates": "^1.0.0", +                "readable-stream": "^2.0.6" +              } +            }, +            "balanced-match": { +              "version": "1.0.0", +              "bundled": true, +              "dev": true +            }, +            "brace-expansion": { +              "version": "1.1.11", +              "bundled": true, +              "dev": true, +              "requires": { +                "balanced-match": "^1.0.0", +                "concat-map": "0.0.1" +              } +            }, +            "chownr": { +              "version": "1.0.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "code-point-at": { +              "version": "1.1.0", +              "bundled": true, +              "dev": true +            }, +            "concat-map": { +              "version": "0.0.1", +              "bundled": true, +              "dev": true +            }, +            "console-control-strings": { +              "version": "1.1.0", +              "bundled": true, +              "dev": true +            }, +            "core-util-is": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "debug": { +              "version": "2.6.9", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "ms": "2.0.0" +              } +            }, +            "deep-extend": { +              "version": "0.5.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "delegates": { +              "version": "1.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "detect-libc": { +              "version": "1.0.3", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "fs-minipass": { +              "version": "1.2.5", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "minipass": "^2.2.1" +              } +            }, +            "fs.realpath": { +              "version": "1.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "gauge": { +              "version": "2.7.4", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "aproba": "^1.0.3", +                "console-control-strings": "^1.0.0", +                "has-unicode": "^2.0.0", +                "object-assign": "^4.1.0", +                "signal-exit": "^3.0.0", +                "string-width": "^1.0.1", +                "strip-ansi": "^3.0.1", +                "wide-align": "^1.1.0" +              } +            }, +            "glob": { +              "version": "7.1.2", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "fs.realpath": "^1.0.0", +                "inflight": "^1.0.4", +                "inherits": "2", +                "minimatch": "^3.0.4", +                "once": "^1.3.0", +                "path-is-absolute": "^1.0.0" +              } +            }, +            "has-unicode": { +              "version": "2.0.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "iconv-lite": { +              "version": "0.4.21", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "safer-buffer": "^2.1.0" +              } +            }, +            "ignore-walk": { +              "version": "3.0.1", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "minimatch": "^3.0.4" +              } +            }, +            "inflight": { +              "version": "1.0.6", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "once": "^1.3.0", +                "wrappy": "1" +              } +            }, +            "inherits": { +              "version": "2.0.3", +              "bundled": true, +              "dev": true +            }, +            "ini": { +              "version": "1.3.5", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "is-fullwidth-code-point": { +              "version": "1.0.0", +              "bundled": true, +              "dev": true, +              "requires": { +                "number-is-nan": "^1.0.0" +              } +            }, +            "isarray": { +              "version": "1.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "minimatch": { +              "version": "3.0.4", +              "bundled": true, +              "dev": true, +              "requires": { +                "brace-expansion": "^1.1.7" +              } +            }, +            "minimist": { +              "version": "0.0.8", +              "bundled": true, +              "dev": true +            }, +            "minipass": { +              "version": "2.2.4", +              "bundled": true, +              "dev": true, +              "requires": { +                "safe-buffer": "^5.1.1", +                "yallist": "^3.0.0" +              } +            }, +            "minizlib": { +              "version": "1.1.0", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "minipass": "^2.2.1" +              } +            }, +            "mkdirp": { +              "version": "0.5.1", +              "bundled": true, +              "dev": true, +              "requires": { +                "minimist": "0.0.8" +              } +            }, +            "ms": { +              "version": "2.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "needle": { +              "version": "2.2.0", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "debug": "^2.1.2", +                "iconv-lite": "^0.4.4", +                "sax": "^1.2.4" +              } +            }, +            "node-pre-gyp": { +              "version": "0.10.0", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "detect-libc": "^1.0.2", +                "mkdirp": "^0.5.1", +                "needle": "^2.2.0", +                "nopt": "^4.0.1", +                "npm-packlist": "^1.1.6", +                "npmlog": "^4.0.2", +                "rc": "^1.1.7", +                "rimraf": "^2.6.1", +                "semver": "^5.3.0", +                "tar": "^4" +              } +            }, +            "nopt": { +              "version": "4.0.1", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "abbrev": "1", +                "osenv": "^0.1.4" +              } +            }, +            "npm-bundled": { +              "version": "1.0.3", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "npm-packlist": { +              "version": "1.1.10", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "ignore-walk": "^3.0.1", +                "npm-bundled": "^1.0.1" +              } +            }, +            "npmlog": { +              "version": "4.1.2", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "are-we-there-yet": "~1.1.2", +                "console-control-strings": "~1.1.0", +                "gauge": "~2.7.3", +                "set-blocking": "~2.0.0" +              } +            }, +            "number-is-nan": { +              "version": "1.0.1", +              "bundled": true, +              "dev": true +            }, +            "object-assign": { +              "version": "4.1.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "once": { +              "version": "1.4.0", +              "bundled": true, +              "dev": true, +              "requires": { +                "wrappy": "1" +              } +            }, +            "os-homedir": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "os-tmpdir": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "osenv": { +              "version": "0.1.5", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "os-homedir": "^1.0.0", +                "os-tmpdir": "^1.0.0" +              } +            }, +            "path-is-absolute": { +              "version": "1.0.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "process-nextick-args": { +              "version": "2.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "rc": { +              "version": "1.2.7", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "deep-extend": "^0.5.1", +                "ini": "~1.3.0", +                "minimist": "^1.2.0", +                "strip-json-comments": "~2.0.1" +              }, +              "dependencies": { +                "minimist": { +                  "version": "1.2.0", +                  "bundled": true, +                  "dev": true, +                  "optional": true +                } +              } +            }, +            "readable-stream": { +              "version": "2.3.6", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "core-util-is": "~1.0.0", +                "inherits": "~2.0.3", +                "isarray": "~1.0.0", +                "process-nextick-args": "~2.0.0", +                "safe-buffer": "~5.1.1", +                "string_decoder": "~1.1.1", +                "util-deprecate": "~1.0.1" +              } +            }, +            "rimraf": { +              "version": "2.6.2", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "glob": "^7.0.5" +              } +            }, +            "safe-buffer": { +              "version": "5.1.1", +              "bundled": true, +              "dev": true +            }, +            "safer-buffer": { +              "version": "2.1.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "sax": { +              "version": "1.2.4", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "semver": { +              "version": "5.5.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "set-blocking": { +              "version": "2.0.0", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "signal-exit": { +              "version": "3.0.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "string-width": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true, +              "requires": { +                "code-point-at": "^1.0.0", +                "is-fullwidth-code-point": "^1.0.0", +                "strip-ansi": "^3.0.0" +              } +            }, +            "string_decoder": { +              "version": "1.1.1", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "safe-buffer": "~5.1.0" +              } +            }, +            "strip-ansi": { +              "version": "3.0.1", +              "bundled": true, +              "dev": true, +              "requires": { +                "ansi-regex": "^2.0.0" +              } +            }, +            "strip-json-comments": { +              "version": "2.0.1", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "tar": { +              "version": "4.4.1", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "chownr": "^1.0.1", +                "fs-minipass": "^1.2.5", +                "minipass": "^2.2.4", +                "minizlib": "^1.1.0", +                "mkdirp": "^0.5.0", +                "safe-buffer": "^5.1.1", +                "yallist": "^3.0.2" +              } +            }, +            "util-deprecate": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true, +              "optional": true +            }, +            "wide-align": { +              "version": "1.1.2", +              "bundled": true, +              "dev": true, +              "optional": true, +              "requires": { +                "string-width": "^1.0.2" +              } +            }, +            "wrappy": { +              "version": "1.0.2", +              "bundled": true, +              "dev": true +            }, +            "yallist": { +              "version": "3.0.2", +              "bundled": true, +              "dev": true +            } +          } +        },          "glob": {            "version": "7.1.1",            "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.1.tgz", @@ -1013,14 +1542,14 @@        "dev": true      },      "fsevents": { -      "version": "1.2.4", -      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", -      "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", +      "version": "1.2.9", +      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", +      "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==",        "dev": true,        "optional": true,        "requires": { -        "nan": "^2.9.2", -        "node-pre-gyp": "^0.10.0" +        "nan": "^2.12.1", +        "node-pre-gyp": "^0.12.0"        },        "dependencies": {          "abbrev": { @@ -1041,7 +1570,7 @@            "optional": true          },          "are-we-there-yet": { -          "version": "1.1.4", +          "version": "1.1.5",            "bundled": true,            "dev": true,            "optional": true, @@ -1065,7 +1594,7 @@            }          },          "chownr": { -          "version": "1.0.1", +          "version": "1.1.1",            "bundled": true,            "dev": true,            "optional": true @@ -1092,16 +1621,16 @@            "optional": true          },          "debug": { -          "version": "2.6.9", +          "version": "4.1.1",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "ms": "2.0.0" +            "ms": "^2.1.1"            }          },          "deep-extend": { -          "version": "0.5.1", +          "version": "0.6.0",            "bundled": true,            "dev": true,            "optional": true @@ -1150,7 +1679,7 @@            }          },          "glob": { -          "version": "7.1.2", +          "version": "7.1.3",            "bundled": true,            "dev": true,            "optional": true, @@ -1170,12 +1699,12 @@            "optional": true          },          "iconv-lite": { -          "version": "0.4.21", +          "version": "0.4.24",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "safer-buffer": "^2.1.0" +            "safer-buffer": ">= 2.1.2 < 3"            }          },          "ignore-walk": { @@ -1236,16 +1765,16 @@            "dev": true          },          "minipass": { -          "version": "2.2.4", +          "version": "2.3.5",            "bundled": true,            "dev": true,            "requires": { -            "safe-buffer": "^5.1.1", +            "safe-buffer": "^5.1.2",              "yallist": "^3.0.0"            }          },          "minizlib": { -          "version": "1.1.0", +          "version": "1.2.1",            "bundled": true,            "dev": true,            "optional": true, @@ -1262,35 +1791,35 @@            }          },          "ms": { -          "version": "2.0.0", +          "version": "2.1.1",            "bundled": true,            "dev": true,            "optional": true          },          "needle": { -          "version": "2.2.0", +          "version": "2.3.0",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "debug": "^2.1.2", +            "debug": "^4.1.0",              "iconv-lite": "^0.4.4",              "sax": "^1.2.4"            }          },          "node-pre-gyp": { -          "version": "0.10.0", +          "version": "0.12.0",            "bundled": true,            "dev": true,            "optional": true,            "requires": {              "detect-libc": "^1.0.2",              "mkdirp": "^0.5.1", -            "needle": "^2.2.0", +            "needle": "^2.2.1",              "nopt": "^4.0.1",              "npm-packlist": "^1.1.6",              "npmlog": "^4.0.2", -            "rc": "^1.1.7", +            "rc": "^1.2.7",              "rimraf": "^2.6.1",              "semver": "^5.3.0",              "tar": "^4" @@ -1307,13 +1836,13 @@            }          },          "npm-bundled": { -          "version": "1.0.3", +          "version": "1.0.6",            "bundled": true,            "dev": true,            "optional": true          },          "npm-packlist": { -          "version": "1.1.10", +          "version": "1.4.1",            "bundled": true,            "dev": true,            "optional": true, @@ -1388,12 +1917,12 @@            "optional": true          },          "rc": { -          "version": "1.2.7", +          "version": "1.2.8",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "deep-extend": "^0.5.1", +            "deep-extend": "^0.6.0",              "ini": "~1.3.0",              "minimist": "^1.2.0",              "strip-json-comments": "~2.0.1" @@ -1423,16 +1952,16 @@            }          },          "rimraf": { -          "version": "2.6.2", +          "version": "2.6.3",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "glob": "^7.0.5" +            "glob": "^7.1.3"            }          },          "safe-buffer": { -          "version": "5.1.1", +          "version": "5.1.2",            "bundled": true,            "dev": true          }, @@ -1449,7 +1978,7 @@            "optional": true          },          "semver": { -          "version": "5.5.0", +          "version": "5.7.0",            "bundled": true,            "dev": true,            "optional": true @@ -1500,17 +2029,17 @@            "optional": true          },          "tar": { -          "version": "4.4.1", +          "version": "4.4.8",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "chownr": "^1.0.1", +            "chownr": "^1.1.1",              "fs-minipass": "^1.2.5", -            "minipass": "^2.2.4", -            "minizlib": "^1.1.0", +            "minipass": "^2.3.4", +            "minizlib": "^1.1.1",              "mkdirp": "^0.5.0", -            "safe-buffer": "^5.1.1", +            "safe-buffer": "^5.1.2",              "yallist": "^3.0.2"            }          }, @@ -1521,12 +2050,12 @@            "optional": true          },          "wide-align": { -          "version": "1.1.2", +          "version": "1.1.3",            "bundled": true,            "dev": true,            "optional": true,            "requires": { -            "string-width": "^1.0.2" +            "string-width": "^1.0.2 || 2"            }          },          "wrappy": { @@ -1535,16 +2064,16 @@            "dev": true          },          "yallist": { -          "version": "3.0.2", +          "version": "3.0.3",            "bundled": true,            "dev": true          }        }      },      "fstream": { -      "version": "1.0.11", -      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", -      "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", +      "version": "1.0.12", +      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", +      "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",        "dev": true,        "requires": {          "graceful-fs": "^4.1.2", @@ -2175,9 +2704,9 @@        "dev": true      },      "nan": { -      "version": "2.12.1", -      "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", -      "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==", +      "version": "2.14.0", +      "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", +      "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==",        "dev": true,        "optional": true      }, @@ -3865,13 +4394,13 @@        }      },      "tar": { -      "version": "2.2.1", -      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", -      "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", +      "version": "2.2.2", +      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz", +      "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",        "dev": true,        "requires": {          "block-stream": "*", -        "fstream": "^1.0.2", +        "fstream": "^1.0.12",          "inherits": "2"        }      }, diff --git a/package.json b/package.json index 45ba9a9..0a6a116 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@  {    "name": "elm-mapbox", -  "version": "4.0.0", +  "version": "4.1.0",    "description": "A custom element designed for use with elm-mapbox",    "main": "dist/elm-mapbox.cjs.js",    "module": "dist/elm-mapbox.esm.js", @@ -13,7 +13,7 @@      "dev": "rollup -c -w",      "test": "elm make --output=/dev/null src/**/*.elm && cd examples && elm make --output=/dev/null ./*.elm",      "pretest": "npm run build", -    "generate": "curl https://raw.githubusercontent.com/mapbox/mapbox-gl-js/v0.53.0/src/style-spec/reference/v8.json | node generate-elm.js | elm-format --stdin --output src/Mapbox/Layer.elm" +    "generate": "curl https://raw.githubusercontent.com/mapbox/mapbox-gl-js/v0.54.0/src/style-spec/reference/v8.json | node generate-elm.js | elm-format --stdin --output src/Mapbox/Layer.elm"    },    "repository": {      "type": "git", diff --git a/src/Mapbox/Layer.elm b/src/Mapbox/Layer.elm index 1eb4509..dea484c 100644 --- a/src/Mapbox/Layer.elm +++ b/src/Mapbox/Layer.elm @@ -9,7 +9,7 @@ module Mapbox.Layer exposing      , circleBlur, circleColor, circleOpacity, circlePitchAlignment, circlePitchScale, circleRadius, circleStrokeColor, circleStrokeOpacity, circleStrokeWidth, circleTranslate, circleTranslateAnchor      , heatmapColor, heatmapIntensity, heatmapOpacity, heatmapRadius, heatmapWeight      , fillExtrusionBase, fillExtrusionColor, fillExtrusionHeight, fillExtrusionOpacity, fillExtrusionPattern, fillExtrusionTranslate, fillExtrusionTranslateAnchor, fillExtrusionVerticalGradient -    , iconAllowOverlap, iconAnchor, iconColor, iconHaloBlur, iconHaloColor, iconHaloWidth, iconIgnorePlacement, iconImage, iconKeepUpright, iconOffset, iconOpacity, iconOptional, iconPadding, iconPitchAlignment, iconRotate, iconRotationAlignment, iconSize, iconTextFit, iconTextFitPadding, iconTranslate, iconTranslateAnchor, symbolAvoidEdges, symbolPlacement, symbolSortKey, symbolSpacing, symbolZOrder, textAllowOverlap, textAnchor, textColor, textField, textFont, textHaloBlur, textHaloColor, textHaloWidth, textIgnorePlacement, textJustify, textKeepUpright, textLetterSpacing, textLineHeight, textMaxAngle, textMaxWidth, textOffset, textOpacity, textOptional, textPadding, textPitchAlignment, textRotate, textRotationAlignment, textSize, textTransform, textTranslate, textTranslateAnchor +    , iconAllowOverlap, iconAnchor, iconColor, iconHaloBlur, iconHaloColor, iconHaloWidth, iconIgnorePlacement, iconImage, iconKeepUpright, iconOffset, iconOpacity, iconOptional, iconPadding, iconPitchAlignment, iconRotate, iconRotationAlignment, iconSize, iconTextFit, iconTextFitPadding, iconTranslate, iconTranslateAnchor, symbolAvoidEdges, symbolPlacement, symbolSortKey, symbolSpacing, symbolZOrder, textAllowOverlap, textAnchor, textColor, textField, textFont, textHaloBlur, textHaloColor, textHaloWidth, textIgnorePlacement, textJustify, textKeepUpright, textLetterSpacing, textLineHeight, textMaxAngle, textMaxWidth, textOffset, textOpacity, textOptional, textPadding, textPitchAlignment, textRadialOffset, textRotate, textRotationAlignment, textSize, textTransform, textTranslate, textTranslateAnchor, textVariableAnchor      , rasterBrightnessMax, rasterBrightnessMin, rasterContrast, rasterFadeDuration, rasterHueRotate, rasterOpacity, rasterResampling, rasterSaturation      , hillshadeAccentColor, hillshadeExaggeration, hillshadeHighlightColor, hillshadeIlluminationAnchor, hillshadeIlluminationDirection, hillshadeShadowColor      , backgroundColor, backgroundOpacity, backgroundPattern @@ -28,15 +28,15 @@ Paint properties are applied later in the rendering process. Changes to a paint  #### Skip to: -  - [Fill Attributes](#fill-attibutes) -  - [Line Attributes](#line-attibutes) -  - [Circle Attributes](#circle-attibutes) -  - [Heatmap Attributes](#heatmap-attibutes) -  - [FillExtrusion Attributes](#fillextrusion-attibutes) -  - [Symbol Attributes](#symbol-attibutes) -  - [Raster Attributes](#raster-attibutes) -  - [Hillshade Attributes](#hillshade-attibutes) -  - [Background Attributes](#background-attibutes) +  - [Fill Attributes](#fill-attributes) +  - [Line Attributes](#line-attributes) +  - [Circle Attributes](#circle-attributes) +  - [Heatmap Attributes](#heatmap-attributes) +  - [FillExtrusion Attributes](#fillextrusion-attributes) +  - [Symbol Attributes](#symbol-attributes) +  - [Raster Attributes](#raster-attributes) +  - [Hillshade Attributes](#hillshade-attributes) +  - [Background Attributes](#background-attributes)  ### Working with layers @@ -83,7 +83,7 @@ Paint properties are applied later in the rendering process. Changes to a paint  ### Symbol Attributes -@docs iconAllowOverlap, iconAnchor, iconColor, iconHaloBlur, iconHaloColor, iconHaloWidth, iconIgnorePlacement, iconImage, iconKeepUpright, iconOffset, iconOpacity, iconOptional, iconPadding, iconPitchAlignment, iconRotate, iconRotationAlignment, iconSize, iconTextFit, iconTextFitPadding, iconTranslate, iconTranslateAnchor, symbolAvoidEdges, symbolPlacement, symbolSortKey, symbolSpacing, symbolZOrder, textAllowOverlap, textAnchor, textColor, textField, textFont, textHaloBlur, textHaloColor, textHaloWidth, textIgnorePlacement, textJustify, textKeepUpright, textLetterSpacing, textLineHeight, textMaxAngle, textMaxWidth, textOffset, textOpacity, textOptional, textPadding, textPitchAlignment, textRotate, textRotationAlignment, textSize, textTransform, textTranslate, textTranslateAnchor +@docs iconAllowOverlap, iconAnchor, iconColor, iconHaloBlur, iconHaloColor, iconHaloWidth, iconIgnorePlacement, iconImage, iconKeepUpright, iconOffset, iconOpacity, iconOptional, iconPadding, iconPitchAlignment, iconRotate, iconRotationAlignment, iconSize, iconTextFit, iconTextFitPadding, iconTranslate, iconTranslateAnchor, symbolAvoidEdges, symbolPlacement, symbolSortKey, symbolSpacing, symbolZOrder, textAllowOverlap, textAnchor, textColor, textField, textFont, textHaloBlur, textHaloColor, textHaloWidth, textIgnorePlacement, textJustify, textKeepUpright, textLetterSpacing, textLineHeight, textMaxAngle, textMaxWidth, textOffset, textOpacity, textOptional, textPadding, textPitchAlignment, textRadialOffset, textRotate, textRotationAlignment, textSize, textTransform, textTranslate, textTranslateAnchor, textVariableAnchor  ### Raster Attributes @@ -1013,7 +1013,7 @@ iconOffset =  {-| Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. Layout property. -Units in ems. Defaults to `0,0`. Requires `textField`. +Units in ems. Defaults to `0,0`. Requires `textField`. Disabled by `textRadialOffset`.  -}  textOffset : Expression any (Array Float) -> LayerAttr Symbol  textOffset = @@ -1080,6 +1080,14 @@ textAnchor =      Expression.encode >> Layout "text-anchor" +{-| Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `textVariableAnchor`, which doesn't support the two-dimensional `textOffset`. Layout property. +Units in ems. Defaults to `0`. Disabled by `textOffset`. +-} +textRadialOffset : Expression CameraExpression Float -> LayerAttr Symbol +textRadialOffset = +    Expression.encode >> Layout "text-radial-offset" + +  {-| Rotates the icon clockwise. Layout property.  Units in degrees. Defaults to `0`. Requires `iconImage`.  -} @@ -1150,7 +1158,7 @@ textPadding =      Expression.encode >> Layout "text-padding" -{-| Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key wehn they overlap. Features with a lower sort key will have priority over other features when doing placement. Layout property. +{-| Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key when they overlap. Features with a lower sort key will have priority over other features when doing placement. Layout property.  -}  symbolSortKey : Expression CameraExpression Float -> LayerAttr Symbol  symbolSortKey = @@ -1267,6 +1275,24 @@ textOpacity =      Expression.encode >> Paint "text-opacity" +{-| To increase the chance of placing high-priority labels on the map, you can provide an array of `textAnchor` locations: the render will attempt to place the label at each location, in order, before moving onto the next label. Use `textJustify:Auto` to choose justification based on anchor position. To apply an offset, use the `textRadialOffset` instead of the two-dimensional `textOffset`. Layout property. Disabled by `textAnchor`. Disabled by `textOffset`. Requires `symbolPlacement` to be `point`. + +  - `center`: The center of the text is placed closest to the anchor. +  - `left`: The left side of the text is placed closest to the anchor. +  - `right`: The right side of the text is placed closest to the anchor. +  - `top`: The top of the text is placed closest to the anchor. +  - `bottom`: The bottom of the text is placed closest to the anchor. +  - `topLeft`: The top left corner of the text is placed closest to the anchor. +  - `topRight`: The top right corner of the text is placed closest to the anchor. +  - `bottomLeft`: The bottom left corner of the text is placed closest to the anchor. +  - `bottomRight`: The bottom right corner of the text is placed closest to the anchor. + +-} +textVariableAnchor : Expression any (Array { center : Supported, left : Supported, right : Supported, top : Supported, bottom : Supported, topLeft : Supported, topRight : Supported, bottomLeft : Supported, bottomRight : Supported }) -> LayerAttr Symbol +textVariableAnchor = +    Expression.encode >> Layout "text-variable-anchor" + +  {-| Value to use for a text label. Layout property. Defaul | 
