谷歌静态地图,而无需使用谷歌地图API [英] Google Static Map without using google Map API
问题描述
我采用了android 2.9或东西为我的项目。
I am using android 2.9 or something for my project.
现在该项目的主要活动图像按钮,当用户点击它,用户将看到一个谷歌的静态地图。
Now the project is an image button on the main activity and when a user clicks on it, the user will see a google static map.
问题是,每个教程中,我已经看到到现在为止使用项目中,我认为这是不可能的,我GOOGLE MAP API,因为我采用了android 2.9,而不是谷歌的API,
我不知道如何添加,因为它只是给选项只有一个。
Problem is, each tutorial I have seen until now uses GOOGLE MAP API in the project, which I think is not possible for me, as am using android 2.9, not Google APIs, and I don't know how to add as it just gives option for one only.
那么,这可能只显示一个静态的地图,而在那些应用程序中使用谷歌地图?
So is it possible to show just a static map without using google maps in ones application?
非常感谢。
推荐答案
这就是是完全可能的,但在这种情况下,你只会得到一个静态图像而不放大/缩小选项...ü也可以在其上添加标记..
yes thats quite possible but in that case you will only get a static image without zoom in/out options... u can also add markers on it...
只是发送一个HTTP请求/没有你的标记的http:/ /$c$c.google.com/apis/maps/documentation/staticmaps/
just send a Http request with/without your markers to http://code.google.com/apis/maps/documentation/staticmaps/
保存在一个文件的答复,这将是地图。
save the reply in a file and that would be the map.
这篇关于谷歌静态地图,而无需使用谷歌地图API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!