Google maps Xamarin.Forms.GoogleMaps不显示街道背景
我正在用xamarin测试Google地图。Android平台还可以,但在iOS中我看不到地图背景。我在Google maps Xamarin.Forms.GoogleMaps不显示街道背景,google-maps,xamarin.forms,xamarin.ios,maps,ios-simulator,Google Maps,Xamarin.forms,Xamarin.ios,Maps,Ios Simulator,我正在用xamarin测试Google地图。Android平台还可以,但在iOS中我看不到地图背景。我在AppDelegate.cs 测试仅显示pin地址。问题仅限于背景(街道或卫星) 在Android上测试OK 此对象接收有关位置的所有信息 readonly Pin _pinCBC = new Pin() { Icon = BitmapDescriptorFactory.DefaultMarker(Color.Red), Type
AppDelegate.cs
测试仅显示pin地址。问题仅限于背景(街道或卫星)
在Android上测试OK
此对象接收有关位置的所有信息
readonly Pin _pinCBC = new Pin()
{
Icon = BitmapDescriptorFactory.DefaultMarker(Color.Red),
Type = PinType.Place,
Label = "61CBC",
Address = "Washington Avenue",
Position = new Position(-3.777777, -38.488888),
ZIndex = 1
};
这种方法在屏幕上打印地图。初始化组件,然后添加对象并将销定位到中心
public MapsPage()
{
InitializeComponent();
map.MyLocationEnabled = true;
map.UiSettings.MyLocationButtonEnabled = true;
_pinCBC.IsDraggable = true;
map.Pins.Add(_pinCBC);
map.SelectedPin = _pinCBC;
map.MoveToRegion(MapSpan.FromCenterAndRadius(_pinCBC.Position, Distance.FromMeters(5000)), true);
}
How could I show background map. Maybe there is any missing property to inform?
这可能是由于按键设置不正确造成的。瞧,我已经有钥匙了。但我的api密钥仅限于Android应用程序。谢谢,android和iOS的关键是不同的。