[FEATURE] Add TileLayer
urlTemplate
placeholder for tileSize
#1664
Labels
feature
[DEPRECATED] This issue requests a new feature
P: 3 (low)
(Default priority for feature requests)
What do you want implemented?
TileLayer
accepts atileSize
as well as aurlTemplate
. Mapbox supports Static Tile URLs of the formhttps://api.mapbox.com/styles/v1/{username}/{style_id}/tiles/{tilesize}/{z}/{x}/{y}{@2x}
When using Mapbox you need to specify the tileSize twice, e.g
This can be error prone.
My proposal is a new placeholder,
{d}
(for dimension) that is replaced with the tile size, so I can now provide a url like'https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/{d}/{z}/{x}/{y}{r}?access_token={accessToken}'
and not worry about ensuring I write 512 twice.What other alternatives are available?
A little bit of duplication
Can you provide any other information?
Happy to send a very modest (one-line) patch.
Severity
Annoying: Currently have to use workarounds
The text was updated successfully, but these errors were encountered: