|
48 | 48 | "doc": "Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",
|
49 | 49 | "example": 50
|
50 | 50 | },
|
| 51 | + "state": { |
| 52 | + "type": "state", |
| 53 | + "default": {}, |
| 54 | + "doc": "An object used to define default values when using the [`global-state`](https://maplibre.org/maplibre-style-spec/expressions/#global-state) expression.", |
| 55 | + "example": { |
| 56 | + "chargerType": { |
| 57 | + "default": ["CCS", "CHAdeMO", "Type2"] |
| 58 | + }, |
| 59 | + "minPreferredChargingSpeed": { |
| 60 | + "default": 50 |
| 61 | + } |
| 62 | + }, |
| 63 | + "sdk-support": { |
| 64 | + "basic functionality": { |
| 65 | + "js": "https://github.com/maplibre/maplibre-gl-js/issues/4964", |
| 66 | + "android": "https://github.com/maplibre/maplibre-native/issues/3302", |
| 67 | + "ios": "https://github.com/maplibre/maplibre-native/issues/3302" |
| 68 | + } |
| 69 | + } |
| 70 | + }, |
51 | 71 | "light": {
|
52 | 72 | "type": "light",
|
53 | 73 | "doc": "The global light source.",
|
|
1293 | 1313 | },
|
1294 | 1314 | {
|
1295 | 1315 | "symbol-placement": [
|
1296 |
| - "line", |
1297 |
| - "line-center" |
| 1316 | + "line", |
| 1317 | + "line-center" |
1298 | 1318 | ]
|
1299 | 1319 | }
|
1300 | 1320 | ],
|
|
1816 | 1836 | "requires": [
|
1817 | 1837 | "text-field",
|
1818 | 1838 | {
|
1819 |
| - "symbol-placement": [ |
1820 |
| - "line", |
1821 |
| - "line-center" |
1822 |
| - ] |
| 1839 | + "symbol-placement": [ |
| 1840 | + "line", |
| 1841 | + "line-center" |
| 1842 | + ] |
1823 | 1843 | }
|
1824 | 1844 | ],
|
1825 | 1845 | "sdk-support": {
|
|
1907 | 1927 | "text-rotation-alignment": "map"
|
1908 | 1928 | },
|
1909 | 1929 | {
|
1910 |
| - "symbol-placement": [ |
1911 |
| - "line", |
1912 |
| - "line-center" |
1913 |
| - ] |
| 1930 | + "symbol-placement": [ |
| 1931 | + "line", |
| 1932 | + "line-center" |
| 1933 | + ] |
1914 | 1934 | }
|
1915 | 1935 | ],
|
1916 | 1936 | "sdk-support": {
|
|
2554 | 2574 | }
|
2555 | 2575 | }
|
2556 | 2576 | },
|
| 2577 | + "global-state": { |
| 2578 | + "doc": "Retrieves a property value from global state that can be set with platform-specific APIs. Defaults can be provided using the [`state`](https://maplibre.org/maplibre-style-spec/root/#state) root property. Returns `null` if no value nor default value is set for the retrieved property.", |
| 2579 | + "group": "Lookup", |
| 2580 | + "example": { |
| 2581 | + "syntax": { |
| 2582 | + "method": ["string"], |
| 2583 | + "result": "value" |
| 2584 | + }, |
| 2585 | + "value": ["global-state", "someProperty"] |
| 2586 | + }, |
| 2587 | + "sdk-support": { |
| 2588 | + "basic functionality": { |
| 2589 | + "js": "https://github.com/maplibre/maplibre-gl-js/issues/4964", |
| 2590 | + "android": "https://github.com/maplibre/maplibre-native/issues/3302", |
| 2591 | + "ios": "https://github.com/maplibre/maplibre-native/issues/3302" |
| 2592 | + } |
| 2593 | + } |
| 2594 | + }, |
2557 | 2595 | "to-string": {
|
2558 | 2596 | "doc": "Converts the input value to a string. If the input is `null`, the result is `\"\"`. If the input is a boolean, the result is `\"true\"` or `\"false\"`. If the input is a number, it is converted to a string as specified by the [\"NumberToString\" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `\"rgba(r,g,b,a)\"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.",
|
2559 | 2597 | "group": "Types",
|
|
3722 | 3760 | },
|
3723 | 3761 | "expression": {
|
3724 | 3762 | "interpolated": false,
|
3725 |
| - "parameters": ["zoom"] |
| 3763 | + "parameters": [ |
| 3764 | + "zoom" |
| 3765 | + ] |
3726 | 3766 | },
|
3727 | 3767 | "property-type": "data-constant"
|
3728 | 3768 | }
|
|
5232 | 5272 | "type": "enum",
|
5233 | 5273 | "values": {
|
5234 | 5274 | "map": {
|
5235 |
| - "doc": "The hillshade illumination is relative to the north direction." |
| 5275 | + "doc": "The hillshade illumination is relative to the north direction." |
5236 | 5276 | },
|
5237 | 5277 | "viewport": {
|
5238 |
| - "doc": "The hillshade illumination is relative to the top of the viewport." |
| 5278 | + "doc": "The hillshade illumination is relative to the top of the viewport." |
5239 | 5279 | }
|
5240 | 5280 | },
|
5241 | 5281 | "default": "viewport",
|
|
0 commit comments