Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Support for Scroll Wheel #519

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion gmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ var GMaps = (function(global) {
markerClustererFunction = options.markerClusterer,
mapType = google.maps.MapTypeId[options.mapType.toUpperCase()],
map_center = new google.maps.LatLng(options.lat, options.lng),
scrollwheel = valueOrDefault(options.scrollwheel, true),
fullScreenControl = valueOrDefault(options.fullScreenControl, true),
zoomControl = valueOrDefault(options.zoomControl, true),
zoomControlOpt = options.zoomControlOpt || {
style: 'DEFAULT',
Expand All @@ -223,6 +225,7 @@ var GMaps = (function(global) {
mapTypeId: mapType
},
map_controls_options = {
scrollwheel: scrollwheel,
panControl: panControl,
zoomControl: zoomControl,
zoomControlOptions: {
Expand All @@ -232,7 +235,8 @@ var GMaps = (function(global) {
mapTypeControl: mapTypeControl,
scaleControl: scaleControl,
streetViewControl: streetViewControl,
overviewMapControl: overviewMapControl
overviewMapControl: overviewMapControl,
fullscreenControl: fullScreenControl
};

if (typeof(options.el) === 'string' || typeof(options.div) === 'string') {
Expand Down