Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FEATURE] Simplify background colouring when specifying multiple TileLayers #1577

Closed
JaffaKetchup opened this issue Jul 6, 2023 · 0 comments · Fixed by #1578
Closed

[FEATURE] Simplify background colouring when specifying multiple TileLayers #1577

JaffaKetchup opened this issue Jul 6, 2023 · 0 comments · Fixed by #1578
Labels
feature [DEPRECATED] This issue requests a new feature P: 2 (soon™?)

Comments

@JaffaKetchup
Copy link
Member

What do you want implemented?

At the moment, every TileLayer has a backgroundColor property that defaults to a grey color. This means that, to layer multiple TileLayers on top of each other (for example, one with a base map, and one with some hiking trails), the user must manually set the backgroundColor property on the top layer to Colors.transparent.

Instead, a simpler interaction might be to remove the backgroundColor property from the TileLayer (replacing it's internal usage with Colors.transparent), and add it to MapOptions. A standard ColoredBox can then be inserted internally as the lowest layer, with its color as backgroundColor.

What other alternatives are available?

No response

Can you provide any other information?

No response

Severity

Annoying: Currently have to use workarounds

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature [DEPRECATED] This issue requests a new feature P: 2 (soon™?)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant