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

Example for MapView in ViewRenderer?

$
0
0

Does anyone have an example of how create a MapView in an Android ViewRenderer and set it as the native control? Or just an example of how to setup and configure a MapView on Android? I've found a few docs on the site that talk about the MapView but I can't find any good examples of how to get it setup correctly. My current code looks like:

MapView mapView = new MapView();
mapView.GetMapAsync();
SetNativeControl(mapView);

but the map just appears blank. I have all my permissions configured according to Xamarin's guidelines. There must be something I am missing...


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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