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.
精彩评论