taro3 react Map customCallout如何设置?



  • const customCallout:MapProps.customCallout={
    display:'ALWAYS',
    anchorX:10,
    anchorY:10
    }

    const bj1:MapProps.marker={
    id:1,
    latitude:25.0491531,
    longitude:102.71460114,
    title:"标记点1",
    zIndex:1,
    iconPath:"/icon/location.png",
    width:38,
    height:38,
    customCallout:customCallout
    };
    //这样设置没效果啊,有朋友知道如何设置吗
    <Map longitude={102.71460114}
    latitude={25.0491531}
    className="home_map"
    showLocation={true}
    markers={[bj1]}
    >
    <CoverView marker-id={1}>
    <CoverImage style={{width:40,height:40}} src={require('../../icon/more (1).png')} />
    </CoverView>
    </Map>


登录后回复