Xamarin Maps/Google Maps place custom Pin on centre point

79 views Asked by At

I'm trying to place the centre of a custom pin onto my map. Xamarin and GoogleMaps nuget packages automatically place the bottom centre of the pin on the Location (lat/long) property.

Standard Pin

I want to place the centre of my marker on the location property, like so:

Centred Pin

I've tried modifying the Pin Location value based on the zoom level of the map, making the image larger (with 1/3 whitespace above), but all that does is make my markers too big to use as the OnTapEvent covers a large area.

Ideally I'd just offset the x,y position of the marker to the centre, but due to the fact you can zoom in and out of a map I'm unfamiliar with the logic (therefore can no code to show).

Thanks in advance.

0

There are 0 answers