File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,9 @@ class WMSTileLayerOptions {
349
349
/// tile transparency flag
350
350
final bool transparent;
351
351
352
+ /// Encode boolean values as uppercase in request
353
+ final bool uppercaseBoolValue;
354
+
352
355
// TODO find a way to implicit pass of current map [Crs]
353
356
final Crs crs;
354
357
@@ -366,6 +369,7 @@ class WMSTileLayerOptions {
366
369
this .format = 'image/png' ,
367
370
this .version = '1.1.1' ,
368
371
this .transparent = true ,
372
+ this .uppercaseBoolValue = false ,
369
373
this .crs = const Epsg3857 (),
370
374
this .otherParameters = const {},
371
375
}) {
@@ -383,7 +387,8 @@ class WMSTileLayerOptions {
383
387
..write ('&format=${Uri .encodeComponent (format )}' )
384
388
..write ('&$projectionKey =${Uri .encodeComponent (crs .code )}' )
385
389
..write ('&version=${Uri .encodeComponent (version )}' )
386
- ..write ('&transparent=$transparent ' );
390
+ ..write (
391
+ '&transparent=${uppercaseBoolValue ? transparent .toString ().toUpperCase () : transparent }' );
387
392
otherParameters
388
393
.forEach ((k, v) => buffer.write ('&$k =${Uri .encodeComponent (v )}' ));
389
394
return buffer.toString ();
You can’t perform that action at this time.
0 commit comments