change the location of zoom buttons (+-) in Xamarin.Forms.Maps

I want to change the location of Zoom button controls (+)(-) on the map in Xamarin.Forms. Is it Possible?

Answers

  • XamEnXamEn USMember ✭✭

    need to make use of custom buttons and handle the zoom using Messaging center

  • AswathyAswathy Member ✭✭✭

    @faisalazeem20 did you get the answer

  • sudhulasudhula INMember ✭✭

    [assembly: ExportRenderer(typeof(GEMap), typeof(GEMapRenderer))]
    namespace WD.EMP.APP.Droid.Renderer
    {
    public class GEMapRenderer : MapRenderer

    {
     protected override void OnMapReady(Android.Gms.Maps.GoogleMap googleMap)
        {
            base.OnMapReady(googleMap);
    
            NativeMap.SetPadding(0,0,0,500 );
        }
    

    }
    }

    NativeMap.SetPadding(0,0,0,500 );

    setting padding google map will solve your problem, place NativeMap.SetPadding(0,0,0,500 ); in renderer file onmapready function

Sign In or Register to comment.