开发者

Panning Google Maps Static Image API

I am trying to implement panning using Google's stati开发者_运维百科c image api, but don't really know where to start.

Given: lat,lng = 36.059534,-94.171257 of the center of the image zoom level = 19 image size = 400x400

Question: How do I calculate the lat,lng of the upper left and lower right corners of the image?


I should have searched better. This is exactly what I needed.


Google uses the same numbering format as OpenStreetMap and in their wiki there is a very detailed description about the tile numbering scheme and how to use it. If it works with OSM you simply have to change the url a bit.

http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜