<Marker
location={{ longitude: 116.327805, latitude: 39.900988 }}>
<MarkerIcon style={{ backgroundColor: 'blue', width: 100, height: 40}}>
<TouchableOpacity onPress={()=>{
console.log('444444444');
}}>
<Text>北京西站</Text>
</TouchableOpacity>
</MarkerIcon>
<InfoWindow style={{ backgroundColor: 'red', width: 50, height: 50,top: -50}}>
<TouchableOpacity onPress={()=>{
console.log('点击弹框');
}}>
<Text>北京西站pop</Text>
</TouchableOpacity>
</InfoWindow>
</Marker>
问题(react-native-baidu-map 1.0.37)
1.android:无法显示MarkerIcon
2. android:InfoWindow
中 TouchableOpacity
无法响应onPress
方法
3. android:InfoWindow
设置style
中的width
和height
与实际的相差很大(width:200 显示的很小)
4.android:Marker
的 onClick
无法回调
希望知道的人帮忙回答下~~