我正在开发一个项目,我需要将图像 url 发送到 Shopify 管理 API,我遇到的问题是由于尾随参数,shopify 无法将 URL 识别为有效
image.jpg?alt=media&token=9dab5705-351c-44f2-81a6-fc1b4b6eaf56
我的问题是:
有没有办法用 firebase 存储生成干净的 URL?
如果没有,是否有解决方法?就像以某种方式创建一个代理脚本www.scripturl.com/fakeimageurl.jpg并firebasestorageurl.com/realimage.jpg?alt=media&token=9dab5705-351c-44f2-81a6-fc1b4b6eaf56用它检索?
该项目与nodejs.
我是本机的新手,无法找到有关如何使用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)