Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin.Forms.Maps Disable / Hide Info window but still keep default actions

$
0
0

Hi everyone,

I'm pretty new to Xamarin and I'm pretty stuck on this...

Can someone please help me find a solution to just disabling the info window from showing?

I followed the tutorials for creating a custom renderer and so far have managed to disabled the default action by returning true on a marker click however this disabled clicks altogether ... I still need the data being passed on from the click so that I can show a window / panel at the bottom of the screen.

Here's a sample:

public void OnMapready(GoogleMap googleMap){
    map = googleMap;
    map.SetOnMarkerClickEventListener(this);
}

public bool OnMarkerClick(Marker marker){
    return true; //disables info window from showing but now I can't check for clicks on the map and get the data from the marker
}

I have tried marker.HideInfoWindow() but it does nothing at all :neutral:


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>