开发者

Using Google Static Maps with API v3 - need an updated reference please!

The guide Using Static Maps to Speed Up Your Dynamic Maps is painfully out of date.

Can you help show me what this should look like with API v3? I'm specifica开发者_JS百科lly interested in the tail end of the process, involving the callback, etc.

I've already got this figured out:

google.maps.event.addListenerOnce(map, 'tilesloaded', removeStaticMap);

EDIT:

Am I correct in that the proper initialization would be using this technique (with the loadScript)?


You shouldn't need a static map - the v3 API actually loads a static map first and then swaps it out when the tiles are loaded.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜