ol 9.2.4-dev.1716820833845 → 9.2.4-dev.1716829795912
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/expr/expression.js +2 -2
- package/package.json +1 -1
- package/source/Google.d.ts +10 -0
- package/source/Google.d.ts.map +1 -1
- package/source/Google.js +5 -0
- package/util.js +1 -1
package/expr/expression.js
CHANGED
|
@@ -951,7 +951,7 @@ function parseInterpolateArgs(encoded, context, parsedArgs, typeHint) {
|
|
|
951
951
|
* @type ArgValidator
|
|
952
952
|
*/
|
|
953
953
|
function parseCaseArgs(encoded, context, parsedArgs, typeHint) {
|
|
954
|
-
const fallback = parse(encoded[encoded.length - 1], context);
|
|
954
|
+
const fallback = parse(encoded[encoded.length - 1], context, typeHint);
|
|
955
955
|
let outputType =
|
|
956
956
|
typeHint !== undefined ? typeHint & fallback.type : fallback.type;
|
|
957
957
|
|
|
@@ -959,7 +959,7 @@ function parseCaseArgs(encoded, context, parsedArgs, typeHint) {
|
|
|
959
959
|
const args = new Array(encoded.length - 1);
|
|
960
960
|
for (let i = 0; i < args.length - 1; i += 2) {
|
|
961
961
|
const condition = parse(encoded[i + 1], context);
|
|
962
|
-
const output = parse(encoded[i + 2], context);
|
|
962
|
+
const output = parse(encoded[i + 2], context, typeHint);
|
|
963
963
|
if (!overlapsType(BooleanType, condition.type)) {
|
|
964
964
|
throw new Error(
|
|
965
965
|
`Expected all conditions in the case operation to be of type boolean` +
|
package/package.json
CHANGED
package/source/Google.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ export type Options = {
|
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
69
|
tileLoadFunction?: import("../Tile.js").LoadFunction | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* An array of values specifying additional options to apply.
|
|
72
|
+
*/
|
|
73
|
+
apiOptions?: string[] | undefined;
|
|
70
74
|
/**
|
|
71
75
|
* Wrap the world horizontally.
|
|
72
76
|
*/
|
|
@@ -119,6 +123,10 @@ export type SessionTokenRequest = {
|
|
|
119
123
|
* The styles.
|
|
120
124
|
*/
|
|
121
125
|
styles?: any[] | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* An array of values specifying additional options to apply.
|
|
128
|
+
*/
|
|
129
|
+
apiOptions?: string[] | undefined;
|
|
122
130
|
};
|
|
123
131
|
export type SessionTokenResponse = {
|
|
124
132
|
/**
|
|
@@ -166,6 +174,7 @@ export type SessionTokenResponse = {
|
|
|
166
174
|
* imageTile.getImage().src = src;
|
|
167
175
|
* };
|
|
168
176
|
* ```
|
|
177
|
+
* @property {Array<string>} [apiOptions] An array of values specifying additional options to apply.
|
|
169
178
|
* @property {boolean} [wrapX=true] Wrap the world horizontally.
|
|
170
179
|
* @property {number} [transition] Duration of the opacity transition for rendering.
|
|
171
180
|
* To disable the opacity transition, pass `transition: 0`.
|
|
@@ -184,6 +193,7 @@ export type SessionTokenResponse = {
|
|
|
184
193
|
* @property {Array<string>} [layerTypes] The layer types.
|
|
185
194
|
* @property {boolean} [overlay] The overlay.
|
|
186
195
|
* @property {Array<Object>} [styles] The styles.
|
|
196
|
+
* @property {Array<string>} [apiOptions] An array of values specifying additional options to apply.
|
|
187
197
|
*/
|
|
188
198
|
/**
|
|
189
199
|
* @typedef {Object} SessionTokenResponse
|
package/source/Google.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["Google.js"],"names":[],"mappings":";;;;;SAiBc,MAAM
|
|
1
|
+
{"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["Google.js"],"names":[],"mappings":";;;;;SAiBc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiCN,MAAM;;;;cACN,MAAM;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM;;AArDpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EA8FjB;IAxEC;;;OAGG;IACH,gBAA0B;IAE1B;;OAEG;IACH,QAFU,KAAK,GAAC,IAAI,CAEF;IAgClB;;;OAGG;IACH,6BAA+C;IAE/C;;;OAGG;IACH,2BAAuB;IAEvB;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,qCAAiC;IAEjC;;;OAGG;IACH,gCAA4B;IAK9B;;;;;;;;;;;OAWG;IACH,YAXY,KAAK,GAAC,IAAI,CAarB;IAED;;;;;OAKG;IACH,uBAJW,MAAM,UACN,WAAW,GACV,QAAQ,QAAQ,CAAC,CAI5B;IAED;;;OAGG;IACH,uBAyDC;IAED;;;;OAIG;IACH,2BAmCC;CAMF;sBApTqB,gBAAgB"}
|
package/source/Google.js
CHANGED
|
@@ -37,6 +37,7 @@ const maxZoom = 22;
|
|
|
37
37
|
* imageTile.getImage().src = src;
|
|
38
38
|
* };
|
|
39
39
|
* ```
|
|
40
|
+
* @property {Array<string>} [apiOptions] An array of values specifying additional options to apply.
|
|
40
41
|
* @property {boolean} [wrapX=true] Wrap the world horizontally.
|
|
41
42
|
* @property {number} [transition] Duration of the opacity transition for rendering.
|
|
42
43
|
* To disable the opacity transition, pass `transition: 0`.
|
|
@@ -56,6 +57,7 @@ const maxZoom = 22;
|
|
|
56
57
|
* @property {Array<string>} [layerTypes] The layer types.
|
|
57
58
|
* @property {boolean} [overlay] The overlay.
|
|
58
59
|
* @property {Array<Object>} [styles] The styles.
|
|
60
|
+
* @property {Array<string>} [apiOptions] An array of values specifying additional options to apply.
|
|
59
61
|
*/
|
|
60
62
|
|
|
61
63
|
/**
|
|
@@ -136,6 +138,9 @@ class Google extends TileImage {
|
|
|
136
138
|
if (options.overlay === true) {
|
|
137
139
|
sessionTokenRequest.overlay = true;
|
|
138
140
|
}
|
|
141
|
+
if (options.apiOptions) {
|
|
142
|
+
sessionTokenRequest.apiOptions = options.apiOptions;
|
|
143
|
+
}
|
|
139
144
|
|
|
140
145
|
/**
|
|
141
146
|
* @type {SessionTokenRequest}
|
package/util.js
CHANGED