English 中文(简体)
本地 Google 绘制静态图像
原标题:phonegap cache locally google maps static image

我在做一个程序,通过谷歌的静态图像显示谷歌地图。 如果用户有连接, 地图会与通常的 url “ http:// maps.google.com/maps/ app/ staticmap? sensor=false& center=... ” 连接。 然后我设定它与 File Transfer. download 一起下载, 所以下次用户会拥有有或没有连接的地图 。

问题在于我可以下载许多图像, 但不包括谷歌地图, 它给出了一个“无效的 URL ”, 我猜测它是因为 URL 所有的废话( 参数、 结肠、 管道... ) 。

这是一个错误, 例如 :

{"源码":"http://maps.google.com/maps/map/staticmap?sensor=false&sensor=false&center=42.846452955175835;-1.92139147618164&zoom=6&尺寸=260x260&marks=color:Blus:142848464545454545254529555835,-192391476164&margers=color:240.9713600457963,5.682825444338&path;class=color:0x00ff}重量:542.846454529555835,-12925535,-19239377618164}}#40.97136057963,5.68244338"""""code""""""""""""""""""""""""""",目标:":"/var/mob/mob/ass/Aps/Apprecess/Appres/573717-42B9-C0-9-91-91-

是否有办法解决这个问题?我所见过的唯一选择是在我的服务器上建立一个代理服务器, 处理“ 漂亮的螺旋藻 ”, 但是这将会是许多中层人为简单的事情工作。

谢谢!

问题回答

事实上,我也有同样的问题,我通过在应用程序白列表中添加 < a href=> "http://maps.google.com" rel="nofollow" >http://maps.google.com 解决了这个问题(res/config.xml file in android, *.plist file in iphone I think)





相关问题
How to decide the current point reach on google map?

How to decide the current point reach on google map? I have a list of points (pickup points) of a route that I want to show in my google map with polyline. Now i have to get the current location of ...

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I ve had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as ...

Using maps on Windows Mobile

I m experimenting with maps on different mobile platforms. Getting Google Maps to work on Android was easy, following this tutorial. Getting the same to work on Windows Mobile is a different matter. ...

Adding a custom icon to a google map

I need a hand adding a custom icon to some Google Maps javascript. Code below for your reference: function populateMap() { var map = new GMap2(document.getElementById("map")); map.setCenter(new ...

RSS to KML Overlay

I m want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display ...

开放街道地图管理员

我需要开放Street的标记管理员。 地图,如山角地图。

热门标签