Title: Resize the Google Map dynamically?
Last modified: August 22, 2016

---

# Resize the Google Map dynamically?

 *  Resolved [pamelahui](https://wordpress.org/support/users/pamelahui/)
 * (@pamelahui)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/resize-the-google-map-dynamically/)
 * Is there a way to dynamically resize Google Map?
    I want to show all events on
   a map which should take up the full-page width. At the same time, when a map 
   is displayed on a single event page, it would be much smaller.
 * However, if I change the Default map width settings to 100%, the map is not being
   shown. If I change it to use px, it will be either too small to display all events
   or too big to display a single event.
 * Is there a file or shortcode e.g. css or function file that I can change to have
   the map resized conditionally?
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/resize-the-google-map-dynamically/#post-5921433)
 * If you use the [locations_map] shortcode, you can set the width and height of
   the map:
 * [http://wp-events-plugin.com/documentation/shortcodes/](http://wp-events-plugin.com/documentation/shortcodes/)
 *  Thread Starter [pamelahui](https://wordpress.org/support/users/pamelahui/)
 * (@pamelahui)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/resize-the-google-map-dynamically/#post-5921484)
 * Thanks for the quick response! Problem resolved.
 *  [Al262](https://wordpress.org/support/users/al262/)
 * (@al262)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/resize-the-google-map-dynamically/#post-5921500)
 * Using only the #_LOCATIONMAP place holder, is there a way to allow the map to
   resize based on the device width?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Resize the Google Map dynamically?’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Al262](https://wordpress.org/support/users/al262/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/resize-the-google-map-dynamically/#post-5921500)
 * Status: resolved