谷歌地图:直接在谷歌服务器上使用? [英] google maps: use directly on google server?

查看:173
本文介绍了谷歌地图:直接在谷歌服务器上使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常您必须在您的服务器上设置一个小脚本+ htmlpage来运行Google地图,
但我想知道 - 是否可以直接使用Google地图?
i的意思是通过调用带参数的url(gpoint coordinates,zoomfactor ..),并且它可以全屏加载地图而不必使用我自己的服务器?

解决方案

听起来像您可能在。


Usually u have to set up a little script + htmlpage on your server to run google maps, but i was wondering - is it possible to use google maps directly? i mean by just calling an url with parameters (gpoint coordinates, zoomfactor ..) and it loads the map fullscreen without having to use my own server?

解决方案

Sounds like you might be after the static maps api. You can build a URL specifying the properties of the map like:

  • zoom
  • position
  • markers (including custom markers)
  • image size
  • etc

and you will get back a rendered image of the map. Something like:

Obviously this just gives you a fixed image of the map you are after. If you need a dynamic Google map, then you will need to use the Google Maps Javascript API.

这篇关于谷歌地图:直接在谷歌服务器上使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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