diff --git a/android/src/main/java/org/lovebing/reactnative/baidumap/BaiduMapViewManager.java b/android/src/main/java/org/lovebing/reactnative/baidumap/BaiduMapViewManager.java index 4a6f9f37..1eba12d3 100644 --- a/android/src/main/java/org/lovebing/reactnative/baidumap/BaiduMapViewManager.java +++ b/android/src/main/java/org/lovebing/reactnative/baidumap/BaiduMapViewManager.java @@ -240,6 +240,7 @@ public boolean onMarkerClick(Marker marker) { if(marker.getTitle().length() > 0) { mMarkerText.setText(marker.getTitle()); InfoWindow infoWindow = new InfoWindow(mMarkerText, marker.getPosition(), -80); + mMarkerText.setVisibility(View.GONE); mapView.getMap().showInfoWindow(infoWindow); } else { diff --git a/demo/package.json b/demo/package.json index 05d2507e..24353479 100644 --- a/demo/package.json +++ b/demo/package.json @@ -8,6 +8,6 @@ "dependencies": { "react": "15.2.1", "react-native": "^0.30.0", - "react-native-baidu-map": "^0.4.6" + "react-native-baidu-map": "^0.4.7" } } diff --git a/package.json b/package.json index 46c543e9..15066fd1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-baidu-map", - "version": "0.4.6", + "version": "0.4.7", "description": "Baidu Map SDK modules and view for React Native(Android & IOS), support react native 0.30+.", "main": "index.js", "scripts": {