Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps Xamarin.Forms.GoogleMaps不显示街道背景_Google Maps_Xamarin.forms_Xamarin.ios_Maps_Ios Simulator - Fatal编程技术网

Google maps Xamarin.Forms.GoogleMaps不显示街道背景

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

我正在用xamarin测试Google地图。Android平台还可以,但在iOS中我看不到地图背景。我在
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的关键是不同的。