react-native-mapbox-gl icon indicating copy to clipboard operation
react-native-mapbox-gl copied to clipboard

Add support for options.transformRequest

Open ludwigbacklund opened this issue 6 years ago • 7 comments

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.

ludwigbacklund avatar Apr 03 '18 22:04 ludwigbacklund

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.

1ec5 avatar Jul 03 '18 18:07 1ec5

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.

kristfal avatar Nov 16 '18 11:11 kristfal

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

liangkai210 avatar Dec 10 '18 10:12 liangkai210

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

rsimbu89 avatar Apr 02 '19 09:04 rsimbu89

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

ReyhaneMasumi avatar May 26 '19 11:05 ReyhaneMasumi

Hi, any update ?

MickaelLEBRET avatar Feb 14 '20 10:02 MickaelLEBRET

Hi! any update? I need this, since I have two different sources and one of them requires Authorization.

RGkevin avatar May 13 '23 14:05 RGkevin