Google Maps plugin – possible to integrate with other Google Maps-dependent code?

Hi, we have some existing code on our site where we load Google Maps with a call like this:

wp_enqueue_script( ‘google-maps’, ‘http://maps.googleapis.com/maps/api/js?key=AIzaSyCSveOo32httVbw8xGThaEEWmNUA760lhg&sensor=false’, array(), ‘3.0’, TRUE );

…then we had some other javascript being loaded like this:

wp_enqueue_script( ‘mrt-prop-search’, get_template_directory_uri() . ‘/js/mrt-prop-search.js’, array(‘jquery’, ‘jquery-typewatch’, ‘google-maps’:wink:, ‘1.0’, TRUE );

So it would load after Google Maps loaded. All was well.

We love your Google Maps plugin and are trying to include it on our site, however, with our existing code it of course loads the Google Maps API javascript code twice on the page.

So, we removed our Google Maps call and are trying to set our code to load after yours does (by setting our js dependency to ‘google_maps_api’:wink:… but still no luck. I believe it’s because your code is calling the Google Maps API asynchronously and our code is assuming that the Google Maps API has already loaded.

So, my question =). Is there a way that we can set our code to load after the Google Maps API has really loaded? Would love to know your thoughts on this – thank you!

– Mike