Google地图未显示-无法解码图块 [英] Google Maps not displaying - Failed to decode tile

查看:142
本文介绍了Google地图未显示-无法解码图块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难显示GMSMapView.我看到的是空白地图,如下所示.

I'm having a hard time trying to display a GMSMapView. I'm seeing a blank map as shown below.

我已经看到很多答案,表明API密钥无效或未在Google控制台中启用Maps iOS SDK.但就我而言,关键适用于示例项目.我什至创建了一个基本项目,并且在显示地图时没有任何问题.

I've seen plenty of answers indicating API Key was not valid or Maps iOS SDK not enable in Google console. But in my case, key works on sample projects. I even created a basic project and had no issues displaying the map.

这是我在控制台中看到的:

This is what I see in the console:

2018-09-28 10:54:37.946703+0200 XXXXX[53857:723015] ((null)) was false: 

GMSStyledVectorMapTileService failed to decode tile [4,2,5], +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638
2018-09-28 10:54:38.063481+0200 XXXXX[53857:723015] +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638
2018-09-28 10:54:38.063666+0200 XXXXX[53857:723015] ((null)) was false: GMSStyledVectorMapTileService failed to decode tile [3,1,3], +[GMSx_GMPCClientVectorTileExtensionsRoot indoorBuildingMetadata]: unrecognized selector sent to class 0x10a9af638

请帮助,我在这里死了

推荐答案

好的,所以这对我的项目来说是特定的.我的工作区项目的多个目标之间共享了Google Maps Pod.似乎该密钥未在目标之间共享.现在,maps pod仅用于主要目标,并且可以正常工作.

Ok so it's was kind of specific to my project. Google maps pod was shared among several target of my workspace project. It looks like the key wasn't shared among targets. Now maps pod is only used on main target and it's working fine.

这篇关于Google地图未显示-无法解码图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆