To get my tiles I do:
style(styleUri = Style.MAPBOX_STREETS) {
+vectorSource(id = "parcel-source") {
url("http://example.com/{z}/{x}/{y}.png")
}
But I need to provide a token to a tile provider, with an HTTP header like Authorization: bearer [token]
.
The documentation shows a skeleton for an HTTP interceptor, but give little clue on how to implement the 5 functions of the interface to be implemented. I can't find the involved interface in the API reference neither. There is an open issue logged for a similar problem.
Also, a solution working for v9.5 seems not available anymore in v10 (HttpRequestUtil missing).