Re: [Google Maps API v3] Re: Get at Google Maps from a Chrome extension?

2011-06-09 Thread Sam Dutton
I got this working, based on Chris's example -- see Chrome extension content script below. Thanks Chris! Not sure if I'd implement this in a published extension though: I feel uncomfortable (as Rossko suggests) 'hijacking' the constructor, even if my intentions are benevolent. Sam ...

Re: [Google Maps API v3] Re: Get at Google Maps from a Chrome extension?

2011-06-04 Thread Sam Dutton
Hi Chris -- ingenious... I haven't tried your solution yet, but I noticed you can set the content_scripts value for run_at to document_start: see http://code.google.com/chrome/extensions/content_scripts.html. Rossko -- ''I'm reading that as "I want my extension to 'hijack' maps on arbritary we

Re: [Google Maps API v3] Get at Google Maps from a Chrome extension?

2011-06-03 Thread Sam Dutton
Thanks for your reply, Chris. > ... why not just use the debugger, though? For my extension I want to get at the Map object(s) for any page with one or maps on it, using the JavaScript API to access getBounds(), getDiv(), etc, for each map. > You'd wrap the default google maps constructors and

[Google Maps API v3] Get at Google Maps from a Chrome extension?

2011-06-03 Thread Sam Dutton
Is it possible to get the Map object(s) for a page that has one or more Google Maps on it, in Chrome at least? >From a Chrome extension, I would like to access Map objects any Google Maps that are on the current page. ...or is there a reason why this isn't possible? (Also asked this question