amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 349 forks source link

Add Map Projection property to offset the center of the map #474

Closed rizaanlakay closed 6 years ago

rizaanlakay commented 6 years ago

I know that map.padding can be used to offset the centre of the map. Any idea how I can offset the center of map when I am using the camera? Padding doesnt offset properly when using a Camera with a tilt.

eg. map.AnimateCamera(CameraUpdateFactory.NewCameraPosition(new CameraPosition(new Xamarin.Forms.GoogleMaps.Position(pos1.Value.Latitude, pos1.Value.Longitude), 17d, bearing, 80d)));

I'm trying to get a view with a 80d tilt, but offset the centre point a bit further down the screen. Kind of like a navigation app does. whatsapp image 2018-04-10 at 12 50 47

amay077 commented 6 years ago

Could you try Map.Padding property?