I'm looking at writing a function that when called will fetch an instance of a Google Maps object on the page if there is one present, using JQuery.
For instance if there is indeed a Map on the page, it would look something like this:
div with a "map" class wouldn't necessarily be fruitful because the map's DOM element can have arbitrary class names and ID.)
Snazzymaps.com is an example I know of where the Google Map object has been added to the global namespace. In the map editor, it's accessible as
window.editor.map. However, you absolutely cannot count on every Google Map in the wild being this accessible. They might be a private variable, inside a closure or anonymous function, etc. So don't bet on it.