You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
I need to integrate the Bing Maps datasource into the styleURL, however instead of /z/x/y.png it uses quadKey indexing, where quadKey can be defined as:
How can I make the styleURL eat a custom parameter in iOS and Android SDK? say for example something like: https://somedatasource.com/{quadKey}.png
The styleURL property takes a URL to a Mapbox GL stylesheet, not a tile URL template. It is possible to craft a stylesheet that includes a raster tile layer, but raster tile layers currently only support a limited set of tokens such as {x}, {y}, and {z}. There’s no API for extending that tokenization – the relevant code lives deep down in src/mbgl/util/mapbox.cpp.
mapbox/mapbox-gl-js#2805 proposes adding support for {quadkey} specifically in Mapbox GL JS. I don’t know whether or not that’s the right approach, but the equivalent code in the mapbox-gl-native codebase would be located in Resource::tile().
Activity
1ec5 commentedon Jun 27, 2016
The
styleURLproperty takes a URL to a Mapbox GL stylesheet, not a tile URL template. It is possible to craft a stylesheet that includes a raster tile layer, but raster tile layers currently only support a limited set of tokens such as{x},{y}, and{z}. There’s no API for extending that tokenization – the relevant code lives deep down in src/mbgl/util/mapbox.cpp.ambientlight commentedon Jun 27, 2016
@1ec5 Thank you.
Ok I guess I therefore need to setup the apache server with request redirecting...
1ec5 commentedon Jun 30, 2016
mapbox/mapbox-gl-js#2805 proposes adding support for
{quadkey}specifically in Mapbox GL JS. I don’t know whether or not that’s the right approach, but the equivalent code in the mapbox-gl-native codebase would be located inResource::tile().[core] Quadkey tokens in tile URL templates
1ec5 commentedon Jul 9, 2016
#5628 implements
{quadkey}support in tile URLs, as requested.Quadkey tokens in tile URL templates, limited WMS support (#5628)