I hope this is possible (It's occurred to me that I am assuming you use the javascript approach I link to below):
This would instantly allow a lot of flexibility to your google maps support.
Specifically, I'd like an ability to add a .kml file which will let me use polygon backgrounds on my google maps, to visually define regions on a map. (but KML files can do lots of different things). I'd personally be happy with a
select 'dbr.googlemaps.kml', 'http://example.org/regions.kml';
command, but adding the ability to add extra javascript to the google maps callback function instead might fit other people's use cases too. (usually called 'initMap' in their examples) would also let people do a number of other things to mashup data stored locally and data which is not.
Yours hopefully!