Title: Static google map
Last modified: August 22, 2016

---

# Static google map

 *  Resolved [armix](https://wordpress.org/support/users/armix/)
 * (@armix)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/static-google-map/)
 * Hi, I was wondering – is there a way to make the google map as “static” so the
   mouse doesn’t get trapped in the map until you click.
 * There is an option to display: “data-static-map-url” for google.
 * Can you point me out in the code where to update this if possible of course.
 * thanks
 * [https://wordpress.org/plugins/wp-store-locator/](https://wordpress.org/plugins/wp-store-locator/)

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

 *  [jamroller](https://wordpress.org/support/users/jamroller/)
 * (@jamroller)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/static-google-map/#post-5781530)
 * This would be handy as I often find myself attempting to scroll the page and 
   inadvertently zooming the map by mistake.
 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/static-google-map/#post-5781600)
 * You will be able to disable the scroll wheel action on the map through the settings
   page in 2.0. But until then you will have to edit the code to disable it.
 * Open the /js/wpsl-gmap.js file and look or ‘myOptions =’, this is near the top
   of the file inside then ‘function initializeGmap()’.
 * Replace the myOptions with this, I added ‘scrollwheel: false’.
 *     ```
       myOptions = {
             zoom: zoomLevel,
             center: startLatLng,
             mapTypeId: mapType,
             mapTypeControl: false,
             panControl: false,
             scrollwheel: false,
                   streetViewControl: streetViewVisible,
                         zoomControlOptions: {
                               style: zoomControlStyle,
                               position: zoomControlPosition
                         }
          };
       ```
   
 *  Thread Starter [armix](https://wordpress.org/support/users/armix/)
 * (@armix)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/static-google-map/#post-5781628)
 * I’ve made the changes you mentioned (added scrollwheel: false) but still see 
   map traps when scrolling on the site or especially mobile. Any other recommendations?
   I know the website like airbnb.com has a map on a listing that is “static” map
   until you click there.
 * any advice?
 * thanks

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

The topic ‘Static google map’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [armix](https://wordpress.org/support/users/armix/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/static-google-map/#post-5781628)
 * Status: resolved