React-native-mapbox-gl: Add support for options.transformRequest

Created on 4 Apr 2018  路  6Comments  路  Source: nitaliano/react-native-mapbox-gl

Transforming the requests for map data is something I'd love to see in the react-native mapbox implementation as it would be very helpful when looking to add headers and such for authentication purposes.

Most helpful comment

@kristfal
Is there any update to add transformRequest with Map object?

All 6 comments

The iOS map SDK does support transforming request _URLs_, but not request headers. mapbox/mapbox-gl-native#12026 mapbox/mapbox-gl-native#11888 tracks a more general request transformation mechanism.

We're looking at this issue too. We don't need headers as query params would suffice.

Native side code was added here: https://github.com/mapbox/mapbox-gl-native/pull/8084/files

Will look into getting a JS side implementation for this as well.

Any updates on this? Really need transformRequest supporting...

@kristfal
Is there any update to add transformRequest with Map object?

@kristfal
Is there any update to add transformRequest with Map object?

Hi, any update ?

Was this page helpful?
0 / 5 - 0 ratings