小编Ric*_* He的帖子

从 firebase 存储中获取干净的 URL(无令牌)

我正在开发一个项目,我需要将图像 url 发送到 Shopify 管理 API,我遇到的问题是由于尾随参数,shopify 无法将 URL 识别为有效

image.jpg?alt=media&token=9dab5705-351c-44f2-81a6-fc1b4b6eaf56

我的问题是:

  1. 有没有办法用 firebase 存储生成干净的 URL?

  2. 如果没有,是否有解决方法?就像以某种方式创建一个代理脚本www.scripturl.com/fakeimageurl.jpgfirebasestorageurl.com/realimage.jpg?alt=media&token=9dab5705-351c-44f2-81a6-fc1b4b6eaf56用它检索?

该项目与nodejs.

node.js shopify firebase firebase-storage

5
推荐指数
1
解决办法
2051
查看次数

如何使用Mapbox以编程方式添加标记/注释并进行本机反应

我是本机的新手,无法找到有关如何使用mapbox以编程方式向地图添加标记/注释的任何文档。

我们正在使用geofire查询,该查询会在兴趣点处于范围内时触发。

在触发器内,我想插入标记。

我发现的所有文档都是这样的:https : //www.mapbox.com/help/first-steps-react-native-sdk/ 在初始化和渲染期间添加标记。

到目前为止,这是我的代码

    render () {
        const {navigate} = this.props.navigation;
        return (
          <View style ={{flex: 1, position: 'relative'}}>
            <Mapbox.MapView
                styleURL={Mapbox.StyleURL.Dark}
                zoomLevel={15}
                centerCoordinate={[11.256, 43.770]}
                ref={map => { this.map = map; }}
                style={{flex: 1}}>
                {this.renderAnnotations([11.256, 43.770])}
            </Mapbox.MapView>


            <View style={styles.menuMainContainer}>

                {this.state.menuStatus ? <Animatable.View style={styles.menuSubcontainer}  animation={"bounceIn"}>
                    <View style={{justifyContent: 'space-between', justifyContent: 'center', flex: 1, marginBottom: 50}}>
                      <View style={{flexDirection: 'row', justifyContent: 'space-around'}}>
                        <MenuOptions imageSource={Images.lightIcon} menuTag="trash" name="Basureros"/>
                        <MenuOptions imageSource={Images.lightIcon} menuTag="holes" name="Huecos"/>
                      </View>
                      <View style={{flexDirection: 'row', justifyContent: 'space-around'}}>
                        <MenuOptions imageSource={Images.lightIcon} menuTag="hydrants" name="Hidrantes"/> …
Run Code Online (Sandbox Code Playgroud)

react-native react-native-mapbox-gl

4
推荐指数
1
解决办法
3685
查看次数