-
I have some code that retrieves GeoJSON from a server, but the thing is, the server requires Bearer authentication. How can I set the Authentication header? it.getStyle { style ->
try {
style.addSource(GeoJsonSource(ID_GEOJSON_SOURCE, URI(URL_GEOJSON_SOURCE)))
} catch (malformedUriException: URISyntaxException) {
Log.e("MyLog", "Invalid URL $malformedUriException")
}
val layer = FillLayer(ID_GEOJSON_LAYER, ID_GEOJSON_SOURCE)
style.addLayer(layer)
} |
Beta Was this translation helpful? Give feedback.
Answered by
louwers
Feb 26, 2025
Replies: 1 comment
-
You can modify arbitrary HTTP requests with a module provider: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MAXBAF1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can modify arbitrary HTTP requests with a module provider:
#2231