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

CustomMap renderer and map interactions

$
0
0

Hi,

I have a custom map in my UI (I need an image instead of a pin). This works fine. I also have on my UI an arrow that should move you to the users current location. The image is on the map and when I tap the image, the command is hit. Only issue is that the map doesn't move at all. Not a single millimetre. Nada. Zero. Zilch. Not a (well you get the idea).

The code I'm using to move is this

map.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(coords.latitude, coords.longitude), Distance.FromMiles(.05)));

not rocket science but not working. Also the show user position on map is not showing on the custom view but not the XF Map view.

As a test, I've also added them natively to the Renderer, but they still don't show.

I'm guessing I'm doing something wrong. Do I need to implement the native equivalents of move to or should these be picked up using the XF MoveToRegion method?

Thanks

PFJ


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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