weixin_39654245
weixin_39654245
2020-12-01 18:11

Add support for options.transformRequest

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.

该提问来源于开源项目:nitaliano/react-native-mapbox-gl

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39549312 weixin_39549312 5月前

    Hi, any update ?

    点赞 评论 复制链接分享
  • weixin_39657125 weixin_39657125 5月前

    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.

    点赞 评论 复制链接分享
  • weixin_39884738 weixin_39884738 5月前

    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.

    点赞 评论 复制链接分享
  • weixin_39537049 weixin_39537049 5月前

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

    点赞 评论 复制链接分享
  • weixin_39851918 weixin_39851918 5月前

    Is there any update to add transformRequest with Map object?

    点赞 评论 复制链接分享
  • weixin_39917718 weixin_39917718 5月前

    Is there any update to add transformRequest with Map object?

    点赞 评论 复制链接分享

相关推荐