Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击地图带有文字描述地点无法获取到 onPress 回调,点击其他区域可以 #823

Open
Eureka321go opened this issue May 11, 2024 · 1 comment

Comments

@Eureka321go
Copy link

<MapView ref={map} mounted={false} onPress={e => { clickMap(e.nativeEvent); }} mapType={MapType.Standard} initialCameraPosition={{ target: { latitude: 40.91095, longitude: 116.37296, }, zoom: 12, }}> <Marker position={{ latitude: coordinate.latitude, longitude: coordinate.longitude, }} icon={require('./../../assets/common/dw.png')} /> </MapView>
android12 机型荣耀 X40 GT
react-native: 0.71.0 => 0.71.0

@Eureka321go Eureka321go changed the title 点击地图带有文字描述无法获取到 onPress 回调,点击其他区域可以 点击地图带有文字描述地点无法获取到 onPress 回调,点击其他区域可以 May 11, 2024
@qiuxiang
Copy link
Owner

/**
* 标注点击事件
*/
onPressPoi?: (event: NativeSyntheticEvent<MapPoi>) => void;

点文字用这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants