Dynamicly load Google Maps v3

Quite often pages are overloaded with 3rd party APIs or widgets and page loading time becomes a bottleneck in user experience. In my project I need google maps support, but only if user selects one particular tab.

So how to load Google Maps V3 dynamicly, on button click or tab select

Main steps here are load maps API, wait for load, create map and wait for tiles to load.

Load maps API

First step is to load javascript API. One important thing here is callback parameter. That function will be executed after API is fully loaded.

Justin,Thanks for keeping me up to date on haippnengs down there. I miss our weekend ventures. My ears are still ringing from following Ron’s various Lambo’s out to Carlsbad and Laguna!Life up here in Rogue River is at a slower pace. We do have a Cobra in the area, and I saw one Lambo on the freeway last year. The Shrike now has its own garage (will post on the website soon), and perhaps will get an overdue teardown and spruce up this winter.Hullo to all, and Cheers!Dave