Title: [Plugin: Comprehensive Google Map Plugin] Utilizing the google maps v3 maps api with plugin
Last modified: August 20, 2016

---

# [Plugin: Comprehensive Google Map Plugin] Utilizing the google maps v3 maps api with plugin

 *  Resolved [Aaron Ware](https://wordpress.org/support/users/aware/)
 * (@aware)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-comprehensive-google-map-plugin-utilizing-the-google-maps-v3-maps-api-with-plugin/)
 * What I am trying to do may potentially be a feature request.
 * I am trying to reference the google maps v3 api from a map that is rendered from
   the plugins shortcode. I looked in the DOM using firebug but didn’t actually 
   see the “map” object that I was expecting.
 * The site I am building is following a responsive webdesign pattern.
    My map is
   set to 100% width (from the shortcode generator). When dynamically resizing my
   browser to test my responsive layout. The map coordinates get a little bit mucked
   up.
 * This is a pretty easy fix in the v3 of the api
 *     ```
       var center = map.get_center();
       google.maps.event.trigger(map, 'resize');
       map.set_center(center);
       ```
   
 * But it appears that the map object isn’t defined
 * Before I go digging into the javascript you guys are utilizing I just wanted 
   to ask if you are using a different element other than “map” to reference the
   map object? Or maybe you possibly have it scoped within another object or function.
 * Thanks in advance. Great plugin btw.
 * [http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/](http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Aaron Ware](https://wordpress.org/support/users/aware/)
 * (@aware)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-comprehensive-google-map-plugin-utilizing-the-google-maps-v3-maps-api-with-plugin/#post-2724323)
 * Saw that you had the map defined within your closure. Ended up for the time being
   just adding in a global var for now. It’d be great to either get a reference 
   to the map instead of me making a global. I guess throw that in the feature request
   bin. Again kudos on the plugin

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Comprehensive Google Map Plugin] Utilizing the google maps v3
maps api with plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comprehensive-google-map-plugin_e2e4ef.
   svg)
 * [Comprehensive Google Map Plugin](https://wordpress.org/plugins/comprehensive-google-map-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comprehensive-google-map-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comprehensive-google-map-plugin/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Aaron Ware](https://wordpress.org/support/users/aware/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-comprehensive-google-map-plugin-utilizing-the-google-maps-v3-maps-api-with-plugin/#post-2724323)
 * Status: resolved