Loading android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() { override fun addView(marker: AMapMarker, view: View, index: Int) { when (view) { is AMapInfoWindow -> marker.infoWindow = view as ReactViewGroup is AMapInfoWindow -> marker.infoWindow = view is AMapOverlay -> marker.setIconView(view) } } Loading android/src/main/java/cn/qiuxiang/react/amap3d/AMapView.kt +4 −4 Original line number Diff line number Diff line Loading @@ -80,13 +80,13 @@ class AMapView(context: ThemedReactContext) : MapView(context) { } map.setInfoWindowAdapter(object : AMap.InfoWindowAdapter { private val paddingTop = context.resources.displayMetrics.density val paddingTop = context.resources.displayMetrics.density override fun getInfoWindow(marker: Marker): View { return markers[marker.id]?.infoWindow as View override fun getInfoWindow(marker: Marker): View? { return markers[marker.id]?.infoWindow } override fun getInfoContents(marker: Marker): View { override fun getInfoContents(marker: Marker): View? { val layout = LinearLayout(context) layout.orientation = LinearLayout.VERTICAL val titleView = TextView(context) Loading Loading
android/src/main/java/cn/qiuxiang/react/amap3d/AMapMarkerManager.kt +1 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ internal class AMapMarkerManager : ViewGroupManager<AMapMarker>() { override fun addView(marker: AMapMarker, view: View, index: Int) { when (view) { is AMapInfoWindow -> marker.infoWindow = view as ReactViewGroup is AMapInfoWindow -> marker.infoWindow = view is AMapOverlay -> marker.setIconView(view) } } Loading
android/src/main/java/cn/qiuxiang/react/amap3d/AMapView.kt +4 −4 Original line number Diff line number Diff line Loading @@ -80,13 +80,13 @@ class AMapView(context: ThemedReactContext) : MapView(context) { } map.setInfoWindowAdapter(object : AMap.InfoWindowAdapter { private val paddingTop = context.resources.displayMetrics.density val paddingTop = context.resources.displayMetrics.density override fun getInfoWindow(marker: Marker): View { return markers[marker.id]?.infoWindow as View override fun getInfoWindow(marker: Marker): View? { return markers[marker.id]?.infoWindow } override fun getInfoContents(marker: Marker): View { override fun getInfoContents(marker: Marker): View? { val layout = LinearLayout(context) layout.orientation = LinearLayout.VERTICAL val titleView = TextView(context) Loading