WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / Technical how to | Custom Code Required / Technical: Enable Map Zoom In and Zoom Out on mouse scroll

Technical: Enable Map Zoom In and Zoom Out on mouse scroll

4246 views 0

Technical how to Enable Map Mouse Zoom In and Zoom Out

For Google Maps

To enable map mouse zoom in and zoom out edit the following files

In  mapbase.js change false to true  for  scrollwheel  and   change  ‘cooperative’   with  ‘greedy‘   for gestureHandling.  Do this change at line 245 and 981.

 

For map from agency or developer page make the same change also in function wpestate_agency_map_function from mapfunctions.js file – In mapfunctions.js at line 48 and 216

Change false to true  for  scrollwheel  and   change ‘cooperative’   with  ‘greedy’    for gestureHandling

For the map from front end submit property page make the same change in google_map_submit.js file

Change false to true  for  scrollwheel  and  add  gestureHandling: ‘greedy’

 

 

For OpenStreet Maps

To enable zoom on mouse scroll for open street maps just delete/comment this line of code

   map.scrollWheelZoom.disable();
from js\google_js\maps_base.js file – line 111,and 950
and from js\openstreet\google_map_code_listing_openstreet.js line 24
Technical how to | Custom Code Required

Related Articles

  • Technical: Change the Schedule Tour Email Text and the Form Default Message
  • Property list filter customization
  • Technical – How to Change the Minimum Image Dimensions for Property Uploads in WPResidence
  • Introduction to WPResidence Header Customization

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 39Elementor Shortcodes Built-In
  • 46FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 24Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language - Third Party Plugins
  • 6Other Third party Plugins
  • 21Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 37Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 7Translations & Languages
  • 16WPBakery Shortcodes
  • 50WPEstate / WPResidence Translate Plugin
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 9WPResidence Elementor Studio

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API