Osclass Support Forums
Osclass plugin support => Radius Search Plugin => Topic started by: siken on June 26, 2018, 01:33:35 PM
-
Hello, how can I do so that when I mouse over the map with the scroll wheel, the map will not move and I can do it with the Ctrl key ?. I leave the official information of google maps, but it has not worked ...
https://developers.google.com/maps/documentation/javascript/interaction#gestureHandling (https://developers.google.com/maps/documentation/javascript/interaction#gestureHandling)
-
@alexandromt
It's generated by google maps api itself.
-
In oc-content\plugins\listings_map.php
// SETTINGS FOR MAP
var myOptions = {
minZoom: 2,
maxZoom: 16,
center: { lat: center_lat, lng: center_long},
mapTypeId: google.maps.MapTypeId.<?php echo $map_type; ?>,
navigationControl: false,
mapTypeControl: true,
scaleControl: true,
fullscreenControl: true,
gestureHandling: 'cooperative'
So when you scroll over the map, it does not zoom, it keeps scrolling the page.
If you want to zoom, you must press the Ctrl key.
;-)
Greetings