谷歌静态地图图像不在Tizen设备上工作,但在模拟器上



我正在为我的Tizen应用程序从谷歌下载静态地图图像。该代码与模拟器配合得很好,但与实际设备配合得不好。显示空白图像

我们使用的示例URL:

http://maps.googleapis.com/maps/api/staticmap?center=38.215,35.3454&zoom=13&size=450x250&markers=icon:<markerURL>|shadow:false|38.215,35.3454&sensor=true&style=feature:water|visibility:on|hue:0x0091ff|saturation:39|lightness:-4|gamma:0.84&style=feature:poi|saturation:19|lightness:-5|gamma:0.94&style=feature:road|gamma:0.83|weight:1.1&style=feature:transit|saturation:39|gamma:0.78|hue:0xffcc00|lightness:-16&style=feature:administrative|gamma:0.5&style=feature:road.highway|visibility:on|saturation:-18&style=feature:poi.park|gamma:1.22|lightness:-4|saturation:-43&style=feature:road.arterial|saturation:-49|lightness:42|gamma:0.6.jpg

请注意,密钥不与此URL一起使用。

当我转到您问题中的URL时,我看到一个"空白图像"。然而,当我将缩放级别调整为稍微缩小一点,从13降低到10时,我会看到一些地图。我想你只是放大了这些坐标,所以看到了一张完全空白的地图。

例如。http://maps.googleapis.com/maps/api/staticmap?center=38.215,35.3454&缩放=10&尺寸=450x250&marks=图标:%3MarkerURL%3E|阴影:false | 38.215,35.3454&传感器=真&style=feature:水|能见度:开|色调:0x0091ff|饱和度:39 |亮度:-4 |伽玛:0.84&style=feature:poi|饱和度:19|亮度:-5|伽玛:0.94&style=feature:road|gamma:0.83|weight:1.1&style=feature:过渡|饱和度:39|伽玛:0.78|色调:0xffcc00|亮度:-16&style=feature:管理|gamma:0.5&style=feature:道路。高速公路|能见度:开启|饱和度:-18&style=feature:poi.park|gamma:1.22|亮度:-4|饱和度:-43&style=feature:道路.动脉|饱和度:-49|亮度:42|伽玛:0.6.jpg

最新更新