【问题标题】:Android Google Maps V2 shows blurry image on Android 2.3.3 - TitaniumAndroid Google Maps V2 在 Android 2.3.3 - Titanium 上显示模糊图像
【发布时间】:2013-05-04 17:10:15
【问题描述】:

我已经在 SDK 3.1 上实现了 ti.map 模块。我运行此代码以显示地图:

var mapObject = require("ti.map");
var map = mapObject.createView({
    width:Ti.UI.FILL,
    height:Ti.UI.FILL,
    annotations:annotations,
    userLocation:true,
    regionFit:true,
    mapType:mapObject.NORMAL_TYPE
});

这是模糊地图的图像:

http://goo.gl/QKZNv

取自 Android 2.3.3 的设备。

在 Android > 4 上运行良好。

我已经设置了正确的谷歌地图 v2 密钥。因为当我没有钥匙的时候,它根本没有显示地图,而只是一个灰色区域。

有谁知道问题出在哪里?

【问题讨论】:

    标签: android google-maps titanium blurry


    【解决方案1】:

    如果这是针对您的具体情况的解决方案,我不知道。

    混合使用 Google Maps Android API 调试和发布密钥时遇到了一些问题。当我使用释放键在调试模式下运行我的应用程序时。它显示缓存中的地图,但永远不会从谷歌地图服务器加载它,因为密钥不正确。这会在缩放时导致图像模糊或丢失。

    您的应用在启动时会显示如下错误:

    05-13 13:51:22.053: E/Google Maps Android API(29198): Ensure that the following correspond to what is   in the API Console: Package Name: com.<YOUR PACKAGE>, API Key: <KEY>, Certificate Fingerprint:   <FINGERPRINT>
    

    【讨论】:

      猜你喜欢
      • 2015-10-13
      • 1970-01-01
      • 2014-07-11
      • 1970-01-01
      • 2012-11-25
      • 2013-09-26
      • 2019-01-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多