Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How I make Custom MessageBox of Pin using Xamarin.form.GoogleMap Library

SimpleBoySimpleBoy Member ✭✭
edited October 19 in Xamarin.Forms

Using Xamarin.form.GoogleMap Library

hey guys, how i make custom message box for google map pin in xamarin forms?

like when i tapped on pin the my location and all other details show me ---->> how to make this custom ??


  • LandLuLandLu Member, Xamarin Team Xamurai

    Have you tried this approach:
    Change the info window on each platform.

  • SimpleBoySimpleBoy Member ✭✭

    @LandLu Thank You for this link

    can you send me any other links or references? ,

    In this link , he make pin with google map but i only need message box of pin, my google map is ready in my .Xml file.

    i only need pin message box.

  • LandLuLandLu Member, Xamarin Team Xamurai

    Do you mean the customization on Android?
    Have you taken a look at this method:

    public Android.Views.View GetInfoContents (Marker marker)

    It changes the info window there.

  • SimpleBoySimpleBoy Member ✭✭


    I write this code but could not access the function.(Here, define this function on mainactivity.cs file.)

    how i use this function ? Can you share any working code ?

  • LandLuLandLu Member, Xamarin Team Xamurai

    This code should be put in the maprenderer:

    public class CustomMapRenderer : MapRenderer, GoogleMap.IInfoWindowAdapter

    Did you read the workarounds on iOS and Android?

  • SimpleBoySimpleBoy Member ✭✭

    okay @LandLu

Sign In or Register to comment.