开发者

google maps - open on appropriate appropriately sized map

I want to use google maps in such a way that if user asks for "United States", then the map will open with setCenter of 2 0r 3.

but if he asks for "West开发者_如何学C Broadway NY" then the map will automatically zoom into the neighborhood.

This works on google site, but it not obvious how the API works.


Using this URL, you'll directly go to "West Broadway NY". You can set the size and the zoom of the map.

In order to get this URL, go to maps.google.com and click on the "link" button on the top right. Then click on the "customize..." link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜