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

No value provided error #141

Closed
yostrokon opened this issue Oct 24, 2018 · 3 comments
Closed

No value provided error #141

yostrokon opened this issue Oct 24, 2018 · 3 comments
Labels
bug This issue reports broken functionality or another error

Comments

@yostrokon
Copy link

Using https://cartodb-basemaps-{s}.global.ssl.fastly.net/rastertiles/voyager/{z}/{x}/{y}{r}.png for the tile layer provider i have an error
I/flutter ( 4079): The following message was thrown building TileLayer(dirty, state: _TileLayerState#fec9d):
I/flutter ( 4079): No value provided for variable r
I/flutter ( 4079):
I/flutter ( 4079): When the exception was thrown, this was the stack:
I/flutter ( 4079): #0 template. (package:flutter_map/src/core/util.dart:8:7)
I/flutter ( 4079): #1 _StringBase.replaceAllMapped (dart:core/runtime/libstring_patch.dart:716:35)
I/flutter ( 4079): #2 template (package:flutter_map/src/core/util.dart:5:14)
I/flutter ( 4079): #3 _TileLayerState.getTileUrl (package:flutter_map/src/layer/tile_layer.dart:155:12)
I/flutter ( 4079): #4 _TileLayerState._createTileWidget (package:flutter_map/src/layer/tile_layer.dart:434:36)
I/flutter ( 4079): #5 _TileLayerState.build (package:flutter_map/src/layer/tile_layer.dart:373:23)

As i remember "r" in the template was for the retina displays indication and switching resolution twice.

@johnpryan johnpryan added the bug This issue reports broken functionality or another error label Nov 19, 2018
@johnpryan
Copy link
Collaborator

did you provide a variable for r in the additionalOptions map?

@yostrokon
Copy link
Author

After reading cartodb issues on the github replaced {r} with @2x.png
https://cartodb-basemaps-{s}.global.ssl.fastly.net/rastertiles/voyager/{z}/{x}/{y}@2x.png.png

@johnpryan
Copy link
Collaborator

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error
Projects
None yet
Development

No branches or pull requests

2 participants