Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #385086

    Found this code on the forum that works great when accessing the page on desktop devices. But it doesn’t seem to prevent scrolling on mobile devices. How can I solve this?

    var myOptions = {
    scrollwheel: false,
    zoom:”.$zoom.”,
    mapTypeControl:true,
    mapTypeId:google.maps.MapTypeId.”.$type.”,
    mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},
    navigationControl:true,
    navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},
    center:latlng
    };

    #385088

    I want to prevent any accidental movement on the map when accessing it on a mobile device.

    #385743

    Hi!

    Please edit your Google Maps element and check “Map dragging on mobile” – http://i.imgur.com/02sJxXN.png

    Cheers!
    Yigit

    #385771

    Thanks Yigit! Works great!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Prevent map scroll on mobile devices?’ is closed to new replies.